Rationalised use of #includes to be more standards-compliant.
This commit is contained in:
parent
cf4417431f
commit
35f2f8b043
|
@ -2,6 +2,7 @@
|
||||||
static char rcsid[] = "$Id$";
|
static char rcsid[] = "$Id$";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "param.h"
|
#include "param.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
@ -427,7 +428,6 @@ coreinit() {
|
||||||
|
|
||||||
short *myalloc(size) register size; {
|
short *myalloc(size) register size; {
|
||||||
register short *p,*q;
|
register short *p,*q;
|
||||||
extern char *malloc();
|
|
||||||
|
|
||||||
p = (short *)malloc(size);
|
p = (short *)malloc(size);
|
||||||
if (p == 0)
|
if (p == 0)
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
static char rcsid[] = "$Id$";
|
static char rcsid[] = "$Id$";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "param.h"
|
#include "param.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
static char rcsid[] = "$Id$";
|
static char rcsid[] = "$Id$";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include "param.h"
|
#include "param.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "tes.h"
|
#include "tes.h"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
static char rcsid[] = "$Id$";
|
static char rcsid[] = "$Id$";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "param.h"
|
#include "param.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
static char rcsid[] = "$Id$";
|
static char rcsid[] = "$Id$";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include "param.h"
|
#include "param.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "pattern.h"
|
#include "pattern.h"
|
||||||
|
@ -57,18 +59,18 @@ int rplCBO;
|
||||||
%left OR1
|
%left OR1
|
||||||
%left XOR1
|
%left XOR1
|
||||||
%left AND1
|
%left AND1
|
||||||
%left CMPEQ,CMPNE
|
%left CMPEQ CMPNE
|
||||||
%left CMPLT,CMPLE,CMPGT,CMPGE
|
%left CMPLT CMPLE CMPGT CMPGE
|
||||||
%left RSHIFT,LSHIFT
|
%left RSHIFT LSHIFT
|
||||||
%left ARPLUS,ARMINUS
|
%left ARPLUS ARMINUS
|
||||||
%left ARTIMES,ARDIVIDE,ARMOD
|
%left ARTIMES ARDIVIDE ARMOD
|
||||||
%nonassoc NOT,COMP,UMINUS
|
%nonassoc NOT COMP UMINUS
|
||||||
%nonassoc '$'
|
%nonassoc '$'
|
||||||
|
|
||||||
%token SFIT,UFIT,NOTREG,PSIZE,WSIZE,DEFINED,SAMESIGN,ROM,ROTATE,STRING
|
%token SFIT UFIT NOTREG PSIZE WSIZE DEFINED SAMESIGN ROM ROTATE STRING
|
||||||
%token <y_int> MNEM
|
%token <y_int> MNEM
|
||||||
%token <y_int> NUMBER
|
%token <y_int> NUMBER
|
||||||
%type <y_int> expr,argno,optexpr
|
%type <y_int> expr argno optexpr
|
||||||
|
|
||||||
%start patternlist
|
%start patternlist
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
static char rcsid[] = "$Id$";
|
static char rcsid[] = "$Id$";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "param.h"
|
#include "param.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
Loading…
Reference in a new issue