Main Page | Class List | Directories | File List | Class Members | File Members

constants.h File Reference

#include "svalue.h"
#include "hashtable.h"
#include "las.h"
#include "block_alloc_h.h"
#include "pike_macros.h"

Go to the source code of this file.

Classes

struct  callable

Defines

#define CALLABLE_DYNAMIC   1
#define ADD_EFUN2(NAME, FUN, TYPE, OPT_FLAGS, OPTIMIZE, DOCODE)
#define ADD_EFUN(NAME, FUN, TYPE, OPT_FLAGS)   ADD_EFUN2(NAME,FUN,TYPE,OPT_FLAGS,0,0)
#define ADD_EFUN_DTYPE(NAME, FUN, DTYPE, FLAGS)

Typedefs

typedef int(* docode_fun )(node *n)
typedef node *(* optimize_fun )(node *n)

Functions

PMOD_EXPORT struct mappingget_builtin_constants (void)
void low_add_efun (struct pike_string *name, struct svalue *fun)
void low_add_constant (const char *name, struct svalue *fun)
void add_pike_string_constant (const char *name, const char *str, int len)
PMOD_EXPORT void add_global_program (const char *name, struct program *p)
 BLOCK_ALLOC_FILL_PAGES (callable, 2)
PMOD_EXPORT struct callablelow_make_callable (c_fun fun, struct pike_string *name, struct pike_type *type, int flags, optimize_fun optimize, docode_fun docode)
PMOD_EXPORT struct callablemake_callable (c_fun fun, const char *name, const char *type, int flags, optimize_fun optimize, docode_fun docode)
PMOD_EXPORT struct callableadd_efun2 (const char *name, c_fun fun, const char *type, int flags, optimize_fun optimize, docode_fun docode)
PMOD_EXPORT struct callableadd_efun (const char *name, c_fun fun, const char *type, int flags)
PMOD_EXPORT struct callablequick_add_efun (const char *name, ptrdiff_t name_length, c_fun fun, const char *type, ptrdiff_t type_length, int flags, optimize_fun optimize, docode_fun docode)
void init_builtin_constants (void)
void exit_builtin_constants (void)


Define Documentation

#define ADD_EFUN NAME,
FUN,
TYPE,
OPT_FLAGS   )     ADD_EFUN2(NAME,FUN,TYPE,OPT_FLAGS,0,0)
 

#define ADD_EFUN2 NAME,
FUN,
TYPE,
OPT_FLAGS,
OPTIMIZE,
DOCODE   ) 
 

Value:

quick_add_efun(NAME,CONSTANT_STRLEN(NAME),FUN, \
                   TYPE,CONSTANT_STRLEN(TYPE),OPT_FLAGS,OPTIMIZE,DOCODE)

#define ADD_EFUN_DTYPE NAME,
FUN,
DTYPE,
FLAGS   ) 
 

Value:

do {                            \
  DTYPE_START;                                                                  \
  {DTYPE}                                                                       \
  {                                                                             \
    struct pike_string *_t;                                                     \
    DTYPE_END(_t);                                                              \
    quick_add_efun(NAME,CONSTANT_STRLEN(NAME),FUN,_t->str,_t->len,FLAGS,0,0);   \
    free_string(_t);                                                            \
  }                                                                             \
} while (0)

#define CALLABLE_DYNAMIC   1
 


Typedef Documentation

typedef int(* docode_fun)(node *n)
 

typedef node*(* optimize_fun)(node *n)
 


Function Documentation

PMOD_EXPORT struct callable* add_efun const char *  name,
c_fun  fun,
const char *  type,
int  flags
 

PMOD_EXPORT struct callable* add_efun2 const char *  name,
c_fun  fun,
const char *  type,
int  flags,
optimize_fun  optimize,
docode_fun  docode
 

PMOD_EXPORT void add_global_program const char *  name,
struct program p
 

void add_pike_string_constant const char *  name,
const char *  str,
int  len
 

BLOCK_ALLOC_FILL_PAGES callable  ,
 

void exit_builtin_constants void   ) 
 

PMOD_EXPORT struct mapping* get_builtin_constants void   ) 
 

void init_builtin_constants void   ) 
 

void low_add_constant const char *  name,
struct svalue fun
 

void low_add_efun struct pike_string name,
struct svalue fun
 

PMOD_EXPORT struct callable* low_make_callable c_fun  fun,
struct pike_string name,
struct pike_type type,
int  flags,
optimize_fun  optimize,
docode_fun  docode
 

PMOD_EXPORT struct callable* make_callable c_fun  fun,
const char *  name,
const char *  type,
int  flags,
optimize_fun  optimize,
docode_fun  docode
 

PMOD_EXPORT struct callable* quick_add_efun const char *  name,
ptrdiff_t  name_length,
c_fun  fun,
const char *  type,
ptrdiff_t  type_length,
int  flags,
optimize_fun  optimize,
docode_fun  docode
 


Generated on Fri Jul 22 23:44:28 2005 for Pike by  doxygen 1.3.9.1