Added RCS identification.

This commit is contained in:
em 1984-11-27 23:13:28 +00:00
parent 335d55ff4a
commit 455cd930ec
17 changed files with 78 additions and 0 deletions

View file

@ -1,3 +1,7 @@
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
/* This file contains the new lexical analizer */ /* This file contains the new lexical analizer */
typedef struct { typedef struct {
char *name; char *name;

View file

@ -458,4 +458,7 @@ exprlist: expression { typetable[0]= $1; $$=1;}
| exprlist ',' expression { typetable[$1]=$3;$$=$1+1;} | exprlist ',' expression { typetable[$1]=$3;$$=$1+1;}
%% %%
#ifndef NORCSID
static char rcs_id[] = "$Header$" ;
#endif
#include "lex.c" #include "lex.c"

View file

@ -1,5 +1,12 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
static char rcs_bem[] = RCS_BEM ;
static char rcs_symb[] = RCS_SYMB ;
static char rcs_graph[] = RCS_GRAPH ;
#endif
/* Author: M.L. Kersten /* Author: M.L. Kersten
** **
** This is the main routine for the BASIC-EM frontend. ** This is the main routine for the BASIC-EM frontend.

View file

@ -9,6 +9,10 @@
#include "graph.h" #include "graph.h"
#include "y.tab.h" #include "y.tab.h"
#ifndef NORCSID
# define RCS_BEM "$Header$"
#endif
#define POINTERSIZE 4 #define POINTERSIZE 4
#define MAXINT 32768 #define MAXINT 32768
#define MININT -32767 #define MININT -32767

View file

@ -1,5 +1,10 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
/* compile the next program in the list */ /* compile the next program in the list */
FILE *yyin; FILE *yyin;

View file

@ -1,5 +1,10 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
/* Here you find all routines to evaluate expressions and /* Here you find all routines to evaluate expressions and
generate code for assignment statements generate code for assignment statements
*/ */

View file

@ -1,5 +1,10 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
/* expression types for predefined functions are assembled */ /* expression types for predefined functions are assembled */
int typetable[10]; int typetable[10];
int exprlimit; int exprlimit;

View file

@ -1,5 +1,10 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
/* Here we find all routines dealing with pure EM code generation */ /* Here we find all routines dealing with pure EM code generation */
static int emlabel=1; static int emlabel=1;

View file

@ -1,5 +1,10 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
List *forwardlabel=0; List *forwardlabel=0;
/* Line management is handled here */ /* Line management is handled here */

View file

@ -1,4 +1,9 @@
# #
#ifndef NORCSID
# define RCS_GRAPH "$Header$"
#endif
/* /*
** The control graph is represented by a multi-list structure. ** The control graph is represented by a multi-list structure.
** The em code is stored on the em intermediate file already ** The em code is stored on the em intermediate file already

View file

@ -1,5 +1,10 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
/* generate temporary files etc */ /* generate temporary files etc */
FILE *emfile; FILE *emfile;

View file

@ -1,5 +1,9 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
int listing; /* -l listing required */ int listing; /* -l listing required */
int debug; /* -d compiler debugging */ int debug; /* -d compiler debugging */
int wflag=1; /* -w no warnings */ int wflag=1; /* -w no warnings */

View file

@ -1,5 +1,9 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
/* Split the intermediate code into procedures. /* Split the intermediate code into procedures.
This is necessary to make the EM code fit on This is necessary to make the EM code fit on
smaller machines. (for the Peephole optimizer!) smaller machines. (for the Peephole optimizer!)

View file

@ -1,4 +1,9 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
/* Symboltable management module */ /* Symboltable management module */
int deftype[128]; /* default type declarer */ int deftype[128]; /* default type declarer */

View file

@ -1,3 +1,7 @@
#ifndef NORCSID
# define RCS_SYMB "$Header$"
#endif
#define NIL 0 #define NIL 0
#define TRUE 1 #define TRUE 1
#define FALSE 0 #define FALSE 0

View file

@ -1,5 +1,9 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
#define abs(X) (X>=0?X:-X) #define abs(X) (X>=0?X:-X)
/* Miscelaneous routines can be found here */ /* Miscelaneous routines can be found here */

View file

@ -1,5 +1,9 @@
#include "bem.h" #include "bem.h"
#ifndef NORSCID
static char rcs_id[] = "$Header$" ;
#endif
/* Author: M.L. Kersten /* Author: M.L. Kersten
** yywrap is called upon encountering endoffile on yyin. ** yywrap is called upon encountering endoffile on yyin.
** when more input files are present, it moves to the next ** when more input files are present, it moves to the next