diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-01-04 00:19:36 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-01-04 00:19:36 +0000 |
commit | 3568e27ec8774a212564c8d2bf6b3d9a19d4d571 (patch) | |
tree | 149da8fe309687665ed88dea3a5dec8fa9dfb6a6 /sys/src/cmd/rc/rc.h | |
parent | 699d2e0ed94bd545bb3dd8c64a3922f56f273f0e (diff) |
rc: only have single instance of a symbol, extern in header (thanks mcf)
Diffstat (limited to 'sys/src/cmd/rc/rc.h')
-rw-r--r-- | sys/src/cmd/rc/rc.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/src/cmd/rc/rc.h b/sys/src/cmd/rc/rc.h index d02c1312f..2967a44b4 100644 --- a/sys/src/cmd/rc/rc.h +++ b/sys/src/cmd/rc/rc.h @@ -123,8 +123,7 @@ var *vlook(char*), *gvlook(char*), *newvar(char*, var*); void setvar(char*, word*), freevar(var*); #define NVAR 521 - -var *gvar[NVAR]; /* hash for globals */ +extern var *gvar[NVAR]; /* hash for globals */ #define new(type) ((type *)emalloc(sizeof(type))) @@ -132,8 +131,6 @@ void *emalloc(long); void *erealloc(void *, long); char *estrdup(char*); -int mypid; - /* * Glob character escape in strings: * In a string, GLOB must be followed by *?[ or GLOB. @@ -152,10 +149,10 @@ int mypid; #define fourbyte(c) (((c)&0xf8)==0xf0) #define xbyte(c) (((c)&0xc0)==0x80) -extern char **argp; -extern char **args; +extern char *argv0; extern int nerror; /* number of errors encountered during compilation */ extern int doprompt; /* is it time for a prompt? */ +extern io *err; /* * Which fds are the reading/writing end of a pipe? @@ -166,3 +163,4 @@ extern int doprompt; /* is it time for a prompt? */ #define PRD 0 #define PWR 1 extern char Rcmain[], Fdprefix[]; +extern char *Signame[]; |