C:/Users/Dennis/src/lang/russell.orig/src/sigio/sa_sig_in.c File Reference

#include "parm.h"
#include <stdio.h>
#include "stree/ststructs.mh"
#include "pass3/is_local.h"

Go to the source code of this file.

Data Structures

struct  decl_entry

Defines

#define TRACE
#define DEBUG
#define IFTRACE(x)
#define FMTERR   7
#define MAXLISTELMTS   100000
#define add_decl(decl)
#define NONE   -1
#define LOCALREP   0
#define GLOBALREP   1
#define SELECTREP   2
#define CONSTR_UNKNOWN   0
#define CONSTR_AVAIL   1
#define SLINK_AVAIL   2

Functions

static get_decl (NODE *decl_num)
static free_decls ()
NODEsig_in1 ()
char * get_string (FILE *Sinfile)
int readw (FILE *Sinfile)
NODEget_name (FILE *Sinfile, int kindno)
NODElist_in (FILE *Sinfile)
NODEsig_in (FILE *Sinfile, char *name)
NODEsig_in1 (FILE *Sinfile)

Variables

char FMTMSG [] = "Bad signature format for %s (not compiled with -c?)\n"
FILE * unparse_file
char * Sinf_name
boolean Gflag
struct decl_entrydecl_nums
static int decl_num = 0
char tokenbuf [1000]


Define Documentation

#define add_decl ( decl   ) 

Value:

{ \
    struct decl_entry * o = malloc(sizeof (struct decl_entry)); \
    o -> de_number = (++decl_num); \
    o -> de_decl = decl; \
    o -> de_next = decl_nums; \
    decl_nums = o; \
}

Definition at line 41 of file sa_sig_in.c.

Referenced by sig_in1(), and sig_out1().

#define CONSTR_AVAIL   1

Referenced by sig_in1(), and sig_out1().

#define CONSTR_UNKNOWN   0

Referenced by sig_in1(), and sig_out1().

#define DEBUG

Definition at line 5 of file sa_sig_in.c.

#define FMTERR   7

Definition at line 19 of file sa_sig_in.c.

Referenced by get_name(), get_string(), list_in(), readw(), and sig_in1().

#define GLOBALREP   1

Definition at line 153 of file sa_sig_in.c.

Referenced by get_name(), and put_name().

#define IFTRACE (  ) 

Definition at line 12 of file sa_sig_in.c.

#define LOCALREP   0

Definition at line 152 of file sa_sig_in.c.

Referenced by get_name(), and put_name().

#define MAXLISTELMTS   100000

Definition at line 20 of file sa_sig_in.c.

Referenced by list_in(), and sig_in1().

#define NONE   -1

Definition at line 49 of file sa_sig_in.c.

#define SELECTREP   2

Definition at line 154 of file sa_sig_in.c.

Referenced by get_name(), and put_name().

#define SLINK_AVAIL   2

Referenced by sig_in1(), and sig_out1().

#define TRACE

Definition at line 3 of file sa_sig_in.c.


Function Documentation

static free_decls (  )  [static]

Definition at line 67 of file sa_sig_in.c.

References decl_entry::de_next, decl_nums, free, and NIL.

Referenced by sig_in().

static get_decl ( NODE decl_num  )  [static]

Definition at line 52 of file sa_sig_in.c.

References decl_entry::de_decl, decl_entry::de_next, decl_entry::de_number, decl_nums, NIL, and NONE.

Referenced by get_name().

NODE* get_name ( FILE *  Sinfile,
int  kindno 
)

Definition at line 158 of file sa_sig_in.c.

References dbgmsg, FMTERR, FMTMSG, get_decl(), GLOBALREP, LOCALREP, mknode(), NIL, NONE, readw(), SELECTREP, sig_in1(), Sinf_name, stt_enter(), tokenbuf, and TRUE.

char* get_string ( FILE *  Sinfile  ) 

Definition at line 89 of file sa_sig_in.c.

References FMTERR, FMTMSG, malloc, NIL, Sinf_name, and tokenbuf.

Referenced by sig_in1().

NODE* list_in ( FILE *  Sinfile  ) 

Definition at line 245 of file sa_sig_in.c.

References addright(), FMTERR, FMTMSG, MAXLISTELMTS, readw(), sig_in1(), and Sinf_name.

Referenced by sig_in1().

int readw ( FILE *  Sinfile  ) 

Definition at line 117 of file sa_sig_in.c.

References FMTERR, FMTMSG, and Sinf_name.

Referenced by get_name(), list_in(), and sig_in1().

NODE* sig_in ( FILE *  Sinfile,
char *  name 
)

Definition at line 272 of file sa_sig_in.c.

References decl_num, decl_nums, free_decls(), NIL, sig_in1(), Sinf_name, unparse(), and unparse_file.

NODE* sig_in1 ( FILE *  Sinfile  ) 

Definition at line 292 of file sa_sig_in.c.

References add_decl, addright(), CONSTR_AVAIL, CONSTR_UNKNOWN, dbgmsg, decl_num, FMTERR, FMTMSG, get_name(), get_RIC(), get_string(), Gflag, IFTRACE, kindname(), list_in(), lock, MAXLISTELMTS, mknode(), NIL, readw(), sig, sig_in1(), Sinf_name, SLINK_AVAIL, TRUE, and v.

NODE* sig_in1 (  ) 

Referenced by get_name(), list_in(), sig_in(), and sig_in1().


Variable Documentation

int decl_num = 0 [static]

Definition at line 38 of file sa_sig_in.c.

Referenced by sig_in(), sig_in1(), and sig_out1().

struct decl_entry * decl_nums

Referenced by free_decls(), get_decl(), get_decl_num(), sig_in(), and sig_out().

char FMTMSG[] = "Bad signature format for %s (not compiled with -c?)\n"

Definition at line 22 of file sa_sig_in.c.

Referenced by get_name(), get_string(), list_in(), readw(), and sig_in1().

boolean Gflag

Definition at line 7 of file extract_sig.c.

char* Sinf_name

Definition at line 26 of file sa_sig_in.c.

Referenced by get_name(), get_string(), list_in(), readw(), sig_in(), and sig_in1().

char tokenbuf[1000]

Definition at line 14 of file extract_sig.c.

FILE* unparse_file

Definition at line 6 of file unparse.c.


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