#include "common.h"
#include "eval.h"
#include "atoms.h"
#include "misc.h"
#include "override.h"
Defines | |
#define | MAX_STRING 1024 /**< Max length for substitution */ |
Max length for substitution. | |
Functions | |
RCSID ("$Id:eval.c, v 1.10 2005/10/01 17:13:43 cbiere Exp $") | |
gchar * | get_home (void) |
Compute the user's home directory. | |
gchar * | get_variable (gchar *s, gchar **end) |
Extract variable name from string `s', then fetch value from environment. | |
gchar * | constant_make (gchar *s) |
Create a constant string, or reuse an existing one if possible. | |
void | eval_init (void) |
Initialize string evaluation. | |
void | constants_free_kv (gpointer key, gpointer unused_val, gpointer unused_x) |
void | eval_close (void) |
Cleanup local structures at shutdown time. | |
gchar * | insert_value (gchar *val, gchar *start, gint off, gint len, gint maxlen) |
Insert value `val' at beginning of string `start'. | |
gchar * | eval_subst (const gchar *str) |
Needs brief description here. | |
Variables | |
guint32 | common_dbg = 0 |
XXX -- need to init lib's props --RAM. | |
GHashTable * | constants |
gchar * | home |
|
Max length for substitution.
|
|
Create a constant string, or reuse an existing one if possible.
|
|
|
|
Cleanup local structures at shutdown time.
|
|
Initialize string evaluation.
|
|
Needs brief description here. Substitutes variables from string:
If given a NULL input, we return NULL.
|
|
Compute the user's home directory. Uses the HOME environment variable first, then the entry from /etc/passwd.
|
|
Extract variable name from string `s', then fetch value from environment.
|
|
Insert value `val' at beginning of string `start'. The string `start' is held in a buffer capable of holding a string of `maxlen' bytes, and the string is currently `len' bytes long, with `start' being at the offset `off' within buffer.
|
|
|
|
XXX -- need to init lib's props --RAM.
|
|
|
|
|