mpf_format.c File Reference

#include "qs_config.h"
#include "mpf_format.h"
#include "mpf_qsopt.h"
#include "mpf_iqsutil.h"

Include dependency graph for mpf_format.c:

Go to the source code of this file.

Functions

int mpf_ILLadd_error_to_memory (void *dest, const mpf_qsformat_error *error)
void mpf_ILLerror_collector_free (mpf_qserror_collector *c)
mpf_qserror_collectormpf_ILLerror_collector_new (mpf_qsadd_error_fct fct, void *dest)
mpf_qserror_collectormpf_ILLerror_memory_collector_new (mpf_qserror_memory *dest)
mpf_qserror_memorympf_ILLerror_memory_create (int takeErrorLines)
void mpf_ILLerror_memory_free (mpf_qserror_memory *mem)
int mpf_ILLformat_error_create (mpf_qsformat_error *error, int mode, const char *desc, int lineNum, const char *theLine, int atPos)
void mpf_ILLformat_error_delete (mpf_qsformat_error *error)
void mpf_ILLformat_error_print (EGioFile_t *out, mpf_qsformat_error *error)


Function Documentation

int mpf_ILLadd_error_to_memory ( void *  dest,
const mpf_qsformat_error error 
)

Definition at line 192 of file mpf_format.c.

References mpf_qsformat_error::at, mpf_qsformat_error::desc, mpf_qserror_memory::error_list, mpf_qserror_memory::has_error, mpf_qserror_memory::hasErrorLines, ILL_CHECKnull, ILL_CLEANUP_IF, ILL_IFFREE, ILL_SAFE_MALLOC, mpf_qsformat_error::lineNumber, mpf_ILLformat_error_create(), mpf_ILLformat_error_delete(), mpf_qserror_memory::nerror, mpf_qsformat_error::next, NULL, mpf_qsformat_error::theLine, and mpf_qsformat_error::type.

Referenced by mpf_ILLerror_memory_collector_new().

Here is the call graph for this function:

void mpf_ILLerror_collector_free ( mpf_qserror_collector c  ) 

Definition at line 150 of file mpf_format.c.

References ILL_IFFREE.

Referenced by mpf_QSerror_collector_free().

mpf_qserror_collector* mpf_ILLerror_collector_new ( mpf_qsadd_error_fct  fct,
void *  dest 
)

Definition at line 125 of file mpf_format.c.

References mpf_qserror_collector::add_error, mpf_qserror_collector::dest, ILL_IFFREE, ILL_SAFE_MALLOC, and NULL.

Referenced by mpf_ILLerror_memory_collector_new(), and mpf_QSerror_collector_new().

mpf_qserror_collector* mpf_ILLerror_memory_collector_new ( mpf_qserror_memory dest  ) 

Definition at line 144 of file mpf_format.c.

References mpf_ILLadd_error_to_memory(), and mpf_ILLerror_collector_new().

Referenced by mpf_QSerror_memory_collector_new().

Here is the call graph for this function:

mpf_qserror_memory* mpf_ILLerror_memory_create ( int  takeErrorLines  ) 

Definition at line 156 of file mpf_format.c.

References mpf_qserror_memory::error_list, mpf_qserror_memory::has_error, mpf_qserror_memory::hasErrorLines, ILL_SAFE_MALLOC, mpf_qserror_memory::nerror, NULL, and QS_INPUT_NERROR.

Referenced by mpf_QSerror_memory_create().

void mpf_ILLerror_memory_free ( mpf_qserror_memory mem  ) 

Definition at line 174 of file mpf_format.c.

References mpf_qserror_memory::error_list, ILL_IFFREE, mpf_qsformat_error::next, and NULL.

Referenced by mpf_QSerror_memory_free().

int mpf_ILLformat_error_create ( mpf_qsformat_error error,
int  mode,
const char *  desc,
int  lineNum,
const char *  theLine,
int  atPos 
)

Definition at line 30 of file mpf_format.c.

References mpf_qsformat_error::at, mpf_qsformat_error::desc, ILL_FAILtrue, ILL_SAFE_MALLOC, mpf_qsformat_error::lineNumber, mpf_ILLformat_error_delete(), mpf_qsformat_error::next, NULL, QS_INPUT_NERROR, mpf_qsformat_error::theLine, and mpf_qsformat_error::type.

Referenced by mpf_ILLadd_error_to_memory(), mpf_ILLmsg(), mpf_lp_err(), and mpf_mps_err().

Here is the call graph for this function:

void mpf_ILLformat_error_delete ( mpf_qsformat_error error  ) 

Definition at line 75 of file mpf_format.c.

References mpf_qsformat_error::desc, ILL_IFFREE, and mpf_qsformat_error::theLine.

Referenced by mpf_ILLadd_error_to_memory(), mpf_ILLformat_error_create(), mpf_ILLmsg(), mpf_lp_err(), and mpf_mps_err().

void mpf_ILLformat_error_print ( EGioFile_t *  out,
mpf_qsformat_error error 
)

Definition at line 82 of file mpf_format.c.

References mpf_qsformat_error::at, mpf_QSerror_get_desc(), mpf_QSerror_get_line(), mpf_QSerror_get_line_number(), mpf_QSformat_error_type_string(), NULL, and mpf_qsformat_error::type.

Referenced by mpf_QSerror_print().

Here is the call graph for this function:


Generated on Thu Mar 29 09:42:02 2012 for QSopt_ex by  doxygen 1.4.7