#include <stdlib.h>
Include dependency graph for occCommon.cpp:
Functions | |
void | setCleanupFunction (void(*_cleanupFunction)(int)) |
void | exitProgram (int errorCode) |
Variables | |
bool | showParseErrors = 1 |
bool | showMopWarnings = 1 |
bool | showWarnings = 1 |
bool | stopOnParseErrors = 1 |
bool | ignoreNamespaceAliases = 0 |
bool | deleteTemporaryFiles = 1 |
char | occFatalErrorPrefix [256] = "OpenC++: " |
char | occParseErrorPrefix [256] = "OpenC++: " |
char | occWarningPrefix [256] = "OpenC++: " |
bool | occParseErrorOccured = 0 |
char | occFirstParseErrorComment [1024] = "" |
char | occParseErrorCountMessage [256] = " parse error(s). Program stops.\n" |
char | mopErrorPrefix [256] = "MOP error: " |
char | mopWarningPrefix [256] = "MOP warning: " |
void(* | cleanupFunction )(int)=NULL |
|
Sets the cleanup function that is called before IOPC SP / OpenC++ terminates.
|
|
This function is used instead of standard exit() to terminate the program. It calls cleanup function (see setCleanupFunction()) before the exit() call.
|
|
Should messages about parse error be shown?
|
|
Should metaobject protocol warnings be shown?
|
|
Should common warnings be shown?
|
|
Should the parsing / translation stop if some parse error is encountered?
|
|
Flag that activates a hack (by JT) that suppresses error message when definition of namespace alias is found.
|
|
Should IOPC SP / OpenC++ temporary files be deleted?
|
|
String used as error message prefix if some fatal error is encountered. Something like "Error: ".
|
|
String used as error message prefix if some parse error is encountered. Something like "Error: ".
|
|
String used as warning message prefix. Something like "Warning: ".
|
|
Variable that is true if some parse error had been found.
|
|
Message displayed when first parse error is encountered. This message is displayed before the message decribing the error. |
|
Message used to tell user how many parse errors had been found. The number of the errors is prepended to the message.
|
|
String used as error message prefix if some metaobject protocol error is encountered. Something like "Error: ".
|
|
String used as warning message prefix if displaying some metaobject protocol warning. Something like "Warning: ".
|
|
Pointer to the cleanup function. See setCleanupFunction().
|