#include <stdio.h>
#include "../parm.h"
#include "tables.h"
Go to the source code of this file.
Data Structures | |
struct | tmp_list |
Defines | |
#define | MAX_TMPS 4096 |
#define | BITS_PER_LONG 32 |
#define | LONGS_TO_BITS(n) ((n) << 5) |
#define | BITS_TO_LONGS(n) ((n) >> 5) |
#define | ALL_ONES (-1L) |
#define | SZ_TMPS_ALLOCD ((MAX_TMPS + BITS_PER_LONG)/BITS_PER_LONG) |
#define | TL_NIL ((tl *) 0) |
Typedefs | |
typedef struct tmp_list | tl |
Functions | |
int | get_next_free () |
void | free_tmp (int i) |
void | reset_tmps () |
char * | tmp_name (long i) |
void | rem_tmps () |
void | dead_tmp (long n) |
Variables | |
long | tmps_allocd [SZ_TMPS_ALLOCD] |
int | max_tmp = -1 |
tl * | rmd_tmps |
#define ALL_ONES (-1L) |
#define BITS_TO_LONGS | ( | n | ) | ((n) >> 5) |
#define LONGS_TO_BITS | ( | n | ) | ((n) << 5) |
Definition at line 10 of file tmp_tab.c.
Referenced by free_tmp(), get_next_free(), and reset_tmps().
#define SZ_TMPS_ALLOCD ((MAX_TMPS + BITS_PER_LONG)/BITS_PER_LONG) |
#define TL_NIL ((tl *) 0) |
void dead_tmp | ( | long | n | ) |
Definition at line 120 of file tmp_tab.c.
References GC_malloc(), tmp_list::tl_next, and tmp_list::tl_no.
void free_tmp | ( | int | i | ) |
int get_next_free | ( | ) |
Definition at line 25 of file tmp_tab.c.
References ALL_ONES, LONGS_TO_BITS, max_tmp, SZ_TMPS_ALLOCD, and tmps_allocd.
Referenced by flush_expr(), get_expr(), and get_name().
void rem_tmps | ( | ) |
Definition at line 109 of file tmp_tab.c.
References free_tmp(), tmp_list::tl_next, TL_NIL, and tmp_list::tl_no.
Referenced by flush_slm(), and main().
void reset_tmps | ( | ) |
Definition at line 54 of file tmp_tab.c.
References BITS_TO_LONGS, LONGS_TO_BITS, max_tmp, and tmps_allocd.
Referenced by main().
char* tmp_name | ( | long | i | ) |
int max_tmp = -1 |
long tmps_allocd[SZ_TMPS_ALLOCD] |
Definition at line 16 of file tmp_tab.c.
Referenced by free_tmp(), get_next_free(), and reset_tmps().