diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-03-04 12:34:32 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-03-04 12:34:32 -0500 |
commit | 221921aec474e17fe91d6ec32bf53761a70857b4 (patch) | |
tree | ea66f5e1a09905550d636c544e022c313cb18965 | |
parent | 55f277e77428d7423ae906a8e1f1324d35b07a7d (diff) |
fix linker errors
-rw-r--r-- | data.c | 5 | ||||
-rw-r--r-- | data.h | 8 | ||||
-rw-r--r-- | lex.c | 2 | ||||
-rw-r--r-- | steer.c | 4 |
4 files changed, 12 insertions, 7 deletions
@@ -1313,3 +1313,8 @@ double r; /* end of MIRANDA DATA REPRESENTATIONS */ +word current_file; +word files; +word *hd,*tl; +char *tag; + @@ -128,8 +128,8 @@ see also reset_pns(), make_pn(), sto_pn() in lex.c */ /* works for both pnames and ids */ extern int compiling,polyshowerror; -word *hd,*tl; -char *tag; +extern word *hd,*tl; +extern char *tag; char *getstring(); double get_dbl(word); void dieclean(void); @@ -161,14 +161,14 @@ extern word idsused; /* limit on length of shell commands (for /e, !, System) */ #define pnlim 1024 /* limit on length of pathnames */ -word files; /* a cons list of elements, each of which is of the form +extern word files; /* a cons list of elements, each of which is of the form cons(cons(fileinfo(filename,mtime),share),definienda) where share (=0,1) says if repeated instances are shareable. Current script at the front followed by subsidiary files due to %insert and %include -- elements due to %insert have NIL definienda (they are attributed to the inserting script) */ -word current_file; /*pointer to current element of `files' during compilation*/ +extern word current_file; /*pointer to current element of `files' during compilation*/ #define make_fil(name,time,share,defs) cons(cons(fileinfo(name,time),\ cons(share,NIL)),defs) #define get_fil(fil) ((char *)hd[hd[hd[fil]]]) @@ -43,7 +43,7 @@ word atnl=1,line_no=0; word lastline; word litstack=NIL,linostack=NIL; word c=' ', lastc; -word commandmode; +extern word commandmode; word common_stdin,common_stdinb,cook_stdin; word litmain=0,literate=0; /* flags "literate" comment convention */ char *dic,*dicp,*dicq; @@ -14,7 +14,7 @@ #include <sys/stat.h> #include <fcntl.h> /* creat() */ /* #include <sys/wait.h> /* seems not needed, oct 05 */ -struct stat buf; /* see man(2) stat - gets file status */ +extern struct stat buf; /* see man(2) stat - gets file status */ #include "data.h" #include "big.h" @@ -135,7 +135,7 @@ extern char *dicp,*dicq; char linebuf[BUFSIZE]; /* used for assorted purposes */ /* NB cannot share with linebuf in lex.c, or !! goes wrong */ static char ebuf[pnlim]; -word col; +extern word col; char home_rc[pnlim+8]; char lib_rc[pnlim+8]; char *rc_error=NULL; |