#include "def.h"Go to the source code of this file.
Defines | |
| #define | OP_BYTES 1024 |
| #define | ALIGN 4 |
Functions | |
| OP * | op_new (int pl) |
| void | op_mem_free () |
| void | op_put (OP **oplist, OP *op) |
| char * | arity_name (short arity) |
| void | op_list_print (OP *op) |
| void | ops_print () |
Variables | |
| OP * | single_op = NULL |
| OP * | double_op = NULL |
| OP * | name_op = NULL |
| OP * | type_op = NULL |
| static char * | op_mem = NULL |
| static int | free_byte = OP_BYTES |
| #define ALIGN 4 |
| #define OP_BYTES 1024 |
| char* arity_name | ( | short | arity | ) |
Definition at line 237 of file ops.c.
References BINARY, LEFT, NONASSOC, NULLARY, OP_NAME, OP_NUM, OP_STR, OUTFIX1, OUTFIX2, POSTFIX, PREFIX, RIGHT, and UNARY.
Referenced by expr_copy(), expr_free(), expr_print(), instantiate(), match_sub(), op_define(), op_list_print(), op_put(), primitive_define(), primitive_execute(), reduce(), and type_define().
| void op_list_print | ( | OP * | op | ) |
Definition at line 267 of file ops.c.
References arity_name(), NULLARY, OUTFIX1, and OUTFIX2.
Referenced by ops_print().
| void op_mem_free | ( | ) |
Definition at line 82 of file ops.c.
References ALIGN, free_byte, rule::next, NULL, OP_BYTES, op_mem, and rule_free().
Referenced by init().
| OP* op_new | ( | int | pl | ) |
Definition at line 40 of file ops.c.
References ALIGN, error(), op::eval, free_byte, op::hash, op::length, NULL, OP_BYTES, op_mem, op::other, and op::super.
Referenced by init(), op_create(), parse(), primitive(), and type_define().
Definition at line 135 of file ops.c.
References op::arity, arity_name(), BINARY, error(), op::next, NULL, op::other, op::pname, and UNARY.
Referenced by op_create(), primitive(), and type_define().
| void ops_print | ( | ) |
int free_byte = OP_BYTES [static] |
char* op_mem = NULL [static] |
1.5.4