diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-10 17:37:13 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-10 17:37:13 +0100 |
commit | e8499c6d33d09f6d8b42df72da1661be0ef0f088 (patch) | |
tree | 577caaba6912f8f88f8bc29b4105eafe44fd4024 /runtime/rsyslog.h | |
parent | f67cf99ee5cd88bda499aa52d6008bb7d4afe483 (diff) | |
download | rsyslog-e8499c6d33d09f6d8b42df72da1661be0ef0f088.tar.gz rsyslog-e8499c6d33d09f6d8b42df72da1661be0ef0f088.tar.xz rsyslog-e8499c6d33d09f6d8b42df72da1661be0ef0f088.zip |
initial implementation of RainerScript functions & strlen()
- implemented function support in RainerScript. That means the engine
parses and compile functions, as well as executes a few build-in
ones. Dynamic loading and registration of functions is not yet
supported - but we now have a good foundation to do that later on.
NOTE: nested function calls are not yet supported due to a design
issue with the function call VM instruction set design.
- implemented the strlen() RainerScript function
Diffstat (limited to 'runtime/rsyslog.h')
-rw-r--r-- | runtime/rsyslog.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h index 00290ee5..899f5e13 100644 --- a/runtime/rsyslog.h +++ b/runtime/rsyslog.h @@ -254,6 +254,10 @@ enum rsRetVal_ /** return value. All methods return this if not specified oth RS_RET_INVLD_TIME = -2107, /**< invalid timestamp (e.g. could not be parsed) */ RS_RET_NO_ZIP = -2108, /**< ZIP functionality is not present */ RS_RET_CODE_ERR = -2109, /**< program code (internal) error */ + RS_RET_FUNC_NO_LPAREN = -2110, /**< left parenthesis missing after function call (rainerscript) */ + RS_RET_FUNC_MISSING_EXPR = -2111, /**< no expression after comma in function call (rainerscript) */ + RS_RET_INVLD_NBR_ARGUMENTS = -2112, /**< invalid number of arguments for function call (rainerscript) */ + RS_RET_INVLD_FUNC = -2113, /**< invalid function name for function call (rainerscript) */ /* RainerScript error messages (range 1000.. 1999) */ RS_RET_SYSVAR_NOT_FOUND = 1001, /**< system variable could not be found (maybe misspelled) */ |