![]() |
![]() |
![]() |
cpg-network Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define CPG_COMPILE_ERROR_CONST (obj) struct CpgCompileError; struct CpgCompileErrorClass; #define CPG_COMPILE_ERROR_TYPE enum CpgCompileErrorCode; CpgCompileError * cpg_compile_error_new (void
); GQuark cpg_compile_error_type_quark (void
); void cpg_compile_error_set (CpgCompileError *error
,GError *gerror
,CpgObject *object
,CpgProperty *property
,CpgLinkAction *action
,gint pos
); GError * cpg_compile_error_get_error (CpgCompileError *error
); CpgObject * cpg_compile_error_get_object (CpgCompileError *error
); CpgProperty * cpg_compile_error_get_property (CpgCompileError *error
); CpgLinkAction * cpg_compile_error_get_link_action (CpgCompileError *error
); const gchar * cpg_compile_error_string (CpgCompileError *error
); const gchar * cpg_compile_error_code_string (gint code
); gint cpg_compile_error_get_code (CpgCompileError *error
); const gchar * cpg_compile_error_get_message (CpgCompileError *error
); gint cpg_compile_error_get_pos (CpgCompileError *error
); gchar * cpg_compile_error_get_formatted_string (CpgCompileError *error
); CpgCompileErrorPrivate;
#define CPG_COMPILE_ERROR_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_COMPILE_ERROR, CpgCompileError const))
typedef enum { CPG_COMPILE_ERROR_PROPERTY_NOT_FOUND, CPG_COMPILE_ERROR_FUNCTION_NOT_FOUND, CPG_COMPILE_ERROR_OPERATOR_NOT_FOUND, CPG_COMPILE_ERROR_INVALID_TOKEN, CPG_COMPILE_ERROR_MAXARG, CPG_COMPILE_ERROR_INVALID_STACK, CPG_COMPILE_ERROR_PROPERTY_RECURSE, CPG_COMPILE_ERROR_NUM_ERRORS } CpgCompileErrorCode;
Enum used to indicate the type of compile error
property not found | |
function not found | |
operator not found | |
invalid token | |
maximum number of arguments exceeded | |
invalid stack produced | |
property recurses on itself | |
num errors |
CpgCompileError * cpg_compile_error_new (void
);
Create new empty compile error
Returns : |
a new CpgCompileError |
void cpg_compile_error_set (CpgCompileError *error
,GError *gerror
,CpgObject *object
,CpgProperty *property
,CpgLinkAction *action
,gint pos
);
Set compile error information.
|
A CpgCompileError |
|
A GError |
|
A CpgObject |
|
A CpgProperty |
|
A CpgLinkAction |
GError * cpg_compile_error_get_error (CpgCompileError *error
);
Get the associated GError
|
a CpgCompileError |
Returns : |
the associated GError. [transfer none] |
CpgObject * cpg_compile_error_get_object (CpgCompileError *error
);
Get the associated CpgObject
|
a CpgCompileError |
Returns : |
the associated CpgObject. [transfer none] |
CpgProperty * cpg_compile_error_get_property (CpgCompileError *error
);
Get the associated CpgProperty
|
a CpgCompileError |
Returns : |
the associated CpgProperty. [transfer none] |
CpgLinkAction * cpg_compile_error_get_link_action (CpgCompileError *error
);
Get the associated CpgLinkAction
|
a CpgCompileError |
Returns : |
the associated CpgLinkAction. [transfer none] |
const gchar * cpg_compile_error_string (CpgCompileError *error
);
Get the string describing error
|
a CpgCompileError |
Returns : |
the error string message |
const gchar * cpg_compile_error_code_string (gint code
);
Get the string describing an error with error code error
|
the error code |
Returns : |
the error string message |
gint cpg_compile_error_get_code (CpgCompileError *error
);
Get the error code
|
a CpgCompileError |
Returns : |
the error code |
const gchar * cpg_compile_error_get_message (CpgCompileError *error
);
Get the error message
|
a CpgCompileError |
Returns : |
the error message |
gint cpg_compile_error_get_pos (CpgCompileError *error
);
Get the character position of the compile error in the expression.
|
A CpgCompileError |
Returns : |
The character position of the compile error in the expression |
gchar * cpg_compile_error_get_formatted_string
(CpgCompileError *error
);