tuple_compiler.h File Reference

#include <glib.h>
#include <mowgli.h>
#include "tuple.h"

Go to the source code of this file.

Classes

struct  TupleEvalVar
struct  TupleEvalFunc
struct  TupleEvalNode
struct  TupleEvalContext

Defines

#define TUPLEZ_MAX_VARS   (4)

Enumerations

enum  {
  OP_RAW = 0, OP_FIELD, OP_EXISTS, OP_DEF_STRING,
  OP_DEF_INT, OP_EQUALS, OP_NOT_EQUALS, OP_GT,
  OP_GTEQ, OP_LT, OP_LTEQ, OP_IS_EMPTY,
  OP_FUNCTION, OP_EXPRESSION
}
enum  { TUPLE_VAR_FIELD = 0, TUPLE_VAR_CONST, TUPLE_VAR_DEF }

Functions

TupleEvalContexttuple_evalctx_new (void)
void tuple_evalctx_reset (TupleEvalContext *ctx)
void tuple_evalctx_free (TupleEvalContext *ctx)
gint tuple_evalctx_add_var (TupleEvalContext *ctx, const gchar *name, const gboolean istemp, const gint type, const TupleValueType ctype)
void tuple_evalnode_free (TupleEvalNode *expr)
gint tuple_formatter_print (FILE *f, gint *level, TupleEvalContext *ctx, TupleEvalNode *expr)
TupleEvalNodetuple_formatter_compile (TupleEvalContext *ctx, gchar *expr)
gchar * tuple_formatter_eval (TupleEvalContext *ctx, TupleEvalNode *expr, const Tuple *tuple)

Define Documentation

#define TUPLEZ_MAX_VARS   (4)

Definition at line 29 of file tuple_compiler.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
OP_RAW 
OP_FIELD 
OP_EXISTS 
OP_DEF_STRING 
OP_DEF_INT 
OP_EQUALS 
OP_NOT_EQUALS 
OP_GT 
OP_GTEQ 
OP_LT 
OP_LTEQ 
OP_IS_EMPTY 
OP_FUNCTION 
OP_EXPRESSION 

Definition at line 32 of file tuple_compiler.h.

anonymous enum
Enumerator:
TUPLE_VAR_FIELD 
TUPLE_VAR_CONST 
TUPLE_VAR_DEF 

Definition at line 51 of file tuple_compiler.h.


Function Documentation

gint tuple_evalctx_add_var ( TupleEvalContext ctx,
const gchar *  name,
const gboolean  istemp,
const gint  type,
const TupleValueType  ctype 
)

Definition at line 125 of file tuple_compiler.c.

Referenced by tc_get_variable().

void tuple_evalctx_free ( TupleEvalContext ctx  ) 

Definition at line 102 of file tuple_compiler.c.

Referenced by tuple_formatter_process_string().

TupleEvalContext* tuple_evalctx_new ( void   ) 

Definition at line 76 of file tuple_compiler.c.

Referenced by tuple_formatter_process_string().

void tuple_evalctx_reset ( TupleEvalContext ctx  ) 

Definition at line 84 of file tuple_compiler.c.

Referenced by tuple_formatter_process_string().

void tuple_evalnode_free ( TupleEvalNode expr  ) 
TupleEvalNode* tuple_formatter_compile ( TupleEvalContext ctx,
gchar *  expr 
)

Definition at line 549 of file tuple_compiler.c.

Referenced by tuple_formatter_process_string().

gchar* tuple_formatter_eval ( TupleEvalContext ctx,
TupleEvalNode expr,
const Tuple tuple 
)

Definition at line 819 of file tuple_compiler.c.

Referenced by tuple_formatter_process_string().

gint tuple_formatter_print ( FILE *  f,
gint level,
TupleEvalContext ctx,
TupleEvalNode expr 
)

Definition at line 861 of file tuple_compiler.c.

Referenced by tuple_formatter_print(), and tuple_formatter_process_string().


Generated on 27 Aug 2011 for Audacious by  doxygen 1.6.1