]> rtime.felk.cvut.cz Git - opencv.git/blobdiff - opencv/doc/cxcore_utilities_system_functions.tex
Many fixes for problems found by latex2sphinx. Turn citations into cite{}.
[opencv.git] / opencv / doc / cxcore_utilities_system_functions.tex
index 558d1bccda6514fccc00c435383175f5712a103b..f195c6890d34112f7cf9a84e4a1cb61f02f8be00 100644 (file)
@@ -256,10 +256,6 @@ returns a NULL pointer.
 \cvCPyFunc{RedirectError}
 Sets a new error handler.
 
-\begin{lstlisting}
-typedef int (CV_CDECL *CvErrorCallback)( int status, const char* func_name,
-                    const char* err_msg, const char* file_name, int line );
-\end{lstlisting}
 
 \cvdefC{CvErrorCallback cvRedirectError( \par CvErrorCallback error\_handler,\par void* userdata=NULL,\par void** prevUserdata=NULL );}
 
@@ -269,6 +265,11 @@ typedef int (CV_CDECL *CvErrorCallback)( int status, const char* func_name,
 \cvarg{prevUserdata}{Pointer to the previously assigned user data pointer}
 \end{description}
 
+\begin{lstlisting}
+typedef int (CV_CDECL *CvErrorCallback)( int status, const char* func_name,
+                    const char* err_msg, const char* file_name, int line );
+\end{lstlisting}
+
 The function sets a new error handler that
 can be one of the standard handlers or a custom handler
 that has a specific interface. The handler takes the same parameters
@@ -284,19 +285,19 @@ check the current error mode with \cvCPyCross{GetErrMode} to make a decision.
 
 Provide standard error handling.
 
-\begin{lstlisting}
-int cvNulDevReport( int status, const char* func_name,
-                    const char* err_msg, const char* file_name,
-                    int line, void* userdata );
+\cvdefC{
+int cvNulDevReport( int status, const char* func\_name,
+                    const char* err\_msg, const char* file\_name,
+                    int line, void* userdata ); \newline
 
-int cvStdErrReport( int status, const char* func_name,
-                    const char* err_msg, const char* file_name,
-                    int line, void* userdata );
+int cvStdErrReport( int status, const char* func\_name,
+                    const char* err\_msg, const char* file\_name,
+                    int line, void* userdata ); \newline
 
-int cvGuiBoxReport( int status, const char* func_name,
-                    const char* err_msg, const char* file_name,
+int cvGuiBoxReport( int status, const char* func\_name,
+                    const char* err\_msg, const char* file\_name,
                     int line, void* userdata );
-\end{lstlisting}
+}
 
 \begin{description}
 \cvarg{status}{The error status}