diff --git a/lang/pc/comp/chk_expr.c b/lang/pc/comp/chk_expr.c index fc4ec77df..76bfdab77 100644 --- a/lang/pc/comp/chk_expr.c +++ b/lang/pc/comp/chk_expr.c @@ -9,6 +9,8 @@ #include #include #include +#include +#include #include "LLlex.h" #include "Lpars.h" @@ -24,6 +26,7 @@ #include "type.h" extern char *symbol2str(); +STATIC int ChkUnOper(); STATIC Xerror(nd, mess) @@ -728,7 +731,6 @@ ChkVarPar(nd, name) */ static char err_mes[80]; char *message = (char *) 0; - extern char *sprint(); if( !ChkVariable(nd) ) return 0; diff --git a/lang/pc/comp/declar.g b/lang/pc/comp/declar.g index fd10845af..5f3a21ab8 100644 --- a/lang/pc/comp/declar.g +++ b/lang/pc/comp/declar.g @@ -21,7 +21,6 @@ #include "type.h" #include "dbsymtab.h" -#define offsetof(type, field) (int) &(((type *)0)->field) #define PC_BUFSIZ (sizeof(struct file) - (int)((struct file *)0)->bufadr) int proclevel = 0; /* nesting level of procedures */