C:/Users/Dennis/src/lang/russell.orig/src/RIC_to_C/tmp_tab.c File Reference

#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
tlrmd_tmps


Define Documentation

#define ALL_ONES   (-1L)

Definition at line 12 of file tmp_tab.c.

Referenced by get_next_free().

#define BITS_PER_LONG   32

Definition at line 9 of file tmp_tab.c.

#define BITS_TO_LONGS (  )     ((n) >> 5)

Definition at line 11 of file tmp_tab.c.

Referenced by free_tmp(), and reset_tmps().

#define LONGS_TO_BITS (  )     ((n) << 5)

Definition at line 10 of file tmp_tab.c.

Referenced by free_tmp(), get_next_free(), and reset_tmps().

#define MAX_TMPS   4096

Definition at line 8 of file tmp_tab.c.

#define SZ_TMPS_ALLOCD   ((MAX_TMPS + BITS_PER_LONG)/BITS_PER_LONG)

Definition at line 14 of file tmp_tab.c.

Referenced by get_next_free().

#define TL_NIL   ((tl *) 0)

Definition at line 103 of file tmp_tab.c.

Referenced by rem_tmps().


Typedef Documentation

typedef struct tmp_list tl


Function Documentation

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  ) 

Definition at line 44 of file tmp_tab.c.

References BITS_TO_LONGS, LONGS_TO_BITS, and tmps_allocd.

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  ) 

Definition at line 73 of file tmp_tab.c.

References ARG_FLAG, and GC_malloc_atomic().


Variable Documentation

int max_tmp = -1

Definition at line 21 of file tmp_tab.c.

Referenced by get_next_free(), main(), and reset_tmps().

tl* rmd_tmps

Definition at line 105 of file tmp_tab.c.

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().


Generated on Fri Jan 25 10:39:50 2008 for russell by  doxygen 1.5.4