|
rpm
5.4.10
|

Go to the source code of this file.
Macros | |
| #define | _RPMRUBY_INTERNAL 1 |
Functions | |
| static void | rpmrubyFini (void *_ruby) |
| Finalizes a Ruby interpreter instance/pool item. | |
| static rpmruby | rpmrubyGetPool (rpmioPool pool) |
| Returns the current rpmio pool responsible for Ruby interpreter instances. | |
| static rpmruby | rpmrubyI () |
| rpmruby | rpmrubyNew (char **av, uint32_t flags) |
| Creates and initializes a Ruby interpreter. | |
| rpmRC | rpmrubyRun (rpmruby ruby, const char *str, const char **resultp) |
| Evaluates Ruby code stored in a string. | |
Variables | |
| int | _rpmruby_debug = 0 |
| Triggers printing of debugging information. | |
| rpmruby | _rpmrubyI = NULL |
| Current (global) interpreter instance. | |
| rpmioPool | _rpmrubyPool |
| The pool of Ruby interpreter instances. | |
|
static |
Finalizes a Ruby interpreter instance/pool item.
Definition at line 38 of file rpmruby.c.
Referenced by rpmrubyGetPool().
Returns the current rpmio pool responsible for Ruby interpreter instances.
This is a wrapper function that returns the current rpmio pool responsible for embedded Ruby interpreters. It creates and initializes a new pool when there is no current pool.
Definition at line 67 of file rpmruby.c.
References _rpmruby_debug, _rpmrubyPool, rpmioGetPool(), rpmioNewPool(), and rpmrubyFini().
Referenced by rpmrubyNew().
|
static |
Definition at line 91 of file rpmruby.c.
References _rpmrubyI, and rpmrubyNew().
Referenced by rpmrubyNew(), and rpmrubyRun().
| rpmruby rpmrubyNew | ( | char ** | av, |
| uint32_t | flags | ||
| ) |
Creates and initializes a Ruby interpreter.
| av | Arguments to the Ruby interpreter (may be NULL) |
| flags | Ruby interpreter flags: ((1<<31): use global interpreter) |
Definition at line 125 of file rpmruby.c.
References _rpmrubyI, rpmrubyGetPool(), rpmrubyI(), rpmrubyLink(), and rpmrubyRun().
Referenced by expandMacro(), and rpmrubyI().
Evaluates Ruby code stored in a string.
| ruby | The Ruby interpreter that is to be used (NULL uses global interpreter) |
| str | Ruby code to evaluate (NULL forces return of RPMRC_FAIL) |
| *resultp | Result of the evaluation |
Definition at line 163 of file rpmruby.c.
References _rpmruby_debug, RPMRC_FAIL, RPMRC_OK, and rpmrubyI().
Referenced by expandMacro(), rpmrbLoadClasses(), rpmrbLoadFile(), and rpmrubyNew().
| int _rpmruby_debug = 0 |
Triggers printing of debugging information.
Definition at line 30 of file rpmruby.c.
Referenced by main(), rpmrubyGetPool(), and rpmrubyRun().
| rpmruby _rpmrubyI = NULL |
Current (global) interpreter instance.
At the moment, this variable is merely a safeguard against initializing the Ruby interpreter over and over again. In the future, when there is Ruby support for multiple interpreter instances, a flag given to rpmrubyNew() will use this variable and return the global interpreter instance.
Definition at line 33 of file rpmruby.c.
Referenced by rpmcliFini(), rpmioClean(), rpmrbLoadClasses(), rpmrubyI(), and rpmrubyNew().
| rpmioPool _rpmrubyPool |
The pool of Ruby interpreter instances.
Definition at line 55 of file rpmruby.c.
Referenced by rpmcliFini(), rpmioClean(), and rpmrubyGetPool().
1.8.1.2