#include "parm.h"
#include <stdio.h>
#include <a.out.h>
#include "stree/ststructs.mh"
#include "pass3/is_local.h"
Go to the source code of this file.
Data Structures | |
struct | File_Sigs |
struct | decl_entry |
Defines | |
#define | TRACE |
#define | DEBUG |
#define | IFTRACE(x) |
#define | FMTERR 7 |
#define | MAXLISTELMTS 100000 |
#define | fs_nil ((struct File_Sigs *) 0) |
#define | add_decl(decl) |
#define | NONE (NODE *)(-1) |
#define | LOCALREP 0 |
#define | GLOBALREP 1 |
#define | SELECTREP 2 |
#define | CONSTR_UNKNOWN 0 |
#define | CONSTR_AVAIL 1 |
#define | SLINK_AVAIL 2 |
Functions | |
static NODE * | get_decl (int decl_num) |
static | free_decls () |
NODE * | sig_in1 () |
char * | get_string (FILE *Sinfile) |
int | readw (FILE *Sinfile) |
NODE * | get_name (FILE *Sinfile, int kindno) |
NODE * | list_in (FILE *Sinfile) |
NODE * | sig_in (FILE *Sinfile, char *name) |
NODE * | read_signature (char *fn) |
NODE * | sig_in1 (FILE *Sinfile) |
Variables | |
char | FMTMSG [] = "Bad signature format for %s (not compiled with -c?)\n" |
FILE * | unparse_file |
char * | Sinf_name |
boolean | Gflag |
boolean | OOflag |
struct File_Sigs * | file_sigs |
struct decl_entry * | decl_nums |
static int | decl_num = 0 |
char | tokenbuf [1000] |
#define add_decl | ( | decl | ) |
Value:
{ \ struct decl_entry * o = (struct decl_entry *) \ malloc(sizeof (struct decl_entry)); \ o -> de_number = (++decl_num); \ o -> de_decl = decl; \ o -> de_next = decl_nums; \ decl_nums = o; \ }
#define CONSTR_AVAIL 1 |
#define CONSTR_UNKNOWN 0 |
#define fs_nil ((struct File_Sigs *) 0) |
#define SLINK_AVAIL 2 |
static free_decls | ( | ) | [static] |
static NODE* get_decl | ( | int | decl_num | ) | [static] |
Definition at line 63 of file sig_in.c.
References decl_entry::de_decl, decl_entry::de_next, decl_entry::de_number, decl_nums, NIL, and NONE.
NODE* get_name | ( | FILE * | Sinfile, | |
int | kindno | |||
) |
char* get_string | ( | FILE * | Sinfile | ) |
NODE* list_in | ( | FILE * | Sinfile | ) |
Definition at line 255 of file sig_in.c.
References addright(), FMTERR, FMTMSG, MAXLISTELMTS, readw(), sig_in1(), and Sinf_name.
NODE* read_signature | ( | char * | fn | ) |
Definition at line 316 of file sig_in.c.
References add_objfile(), etext, file_sigs, free, File_Sigs::fs_name, File_Sigs::fs_next, fs_nil, File_Sigs::fs_signature, lock, malloc, mknode(), NIL, OOflag, optfile, sig_in(), str_code_buf, and yyperror().
Referenced by sig_in1().
int readw | ( | FILE * | Sinfile | ) |
NODE* sig_in | ( | FILE * | Sinfile, | |
char * | name | |||
) |
Definition at line 282 of file 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 449 of file 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, read_signature(), readw(), sig, sig_in1(), Sinf_name, SLINK_AVAIL, TRUE, and v.
NODE* sig_in1 | ( | ) |
struct decl_entry * decl_nums |
Referenced by read_signature().
char FMTMSG[] = "Bad signature format for %s (not compiled with -c?)\n" |
Definition at line 7 of file extract_sig.c.
char tokenbuf[1000] |
Definition at line 14 of file extract_sig.c.
FILE* unparse_file |