|
rpm
5.4.4
|

Go to the source code of this file.
Defines | |
| #define | _RPMRUBY_INTERNAL 1 |
| Allows access to the gory details of rpmruby pool items. | |
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. | |
| #define _RPMRUBY_INTERNAL 1 |
| static void rpmrubyFini | ( | void * | _ruby | ) | [static] |
Finalizes a Ruby interpreter instance/pool item.
Definition at line 41 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 72 of file rpmruby.c.
References _rpmruby_debug, _rpmrubyPool, rpmioGetPool(), rpmioNewPool(), and rpmrubyFini().
Referenced by rpmrubyNew().
| static rpmruby rpmrubyI | ( | ) | [static] |
Definition at line 100 of file rpmruby.c.
References _rpmrubyI, and rpmrubyNew().
Referenced by 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 111 of file rpmruby.c.
References _rpmrubyI, rpmrubyGetPool(), 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 145 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 31 of file rpmruby.c.
Referenced by main(), rpmrubyGetPool(), and rpmrubyRun().
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 34 of file rpmruby.c.
Referenced by rpmcliFini(), rpmioClean(), rpmrbLoadClasses(), rpmrubyI(), and rpmrubyNew().
The pool of Ruby interpreter instances.
Definition at line 59 of file rpmruby.c.
Referenced by rpmcliFini(), rpmioClean(), and rpmrubyGetPool().
1.7.5.1