summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rc/exec.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-01-04 00:19:36 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-01-04 00:19:36 +0000
commit3568e27ec8774a212564c8d2bf6b3d9a19d4d571 (patch)
tree149da8fe309687665ed88dea3a5dec8fa9dfb6a6 /sys/src/cmd/rc/exec.h
parent699d2e0ed94bd545bb3dd8c64a3922f56f273f0e (diff)
rc: only have single instance of a symbol, extern in header (thanks mcf)
Diffstat (limited to 'sys/src/cmd/rc/exec.h')
-rw-r--r--sys/src/cmd/rc/exec.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/src/cmd/rc/exec.h b/sys/src/cmd/rc/exec.h
index 308802679..69b1004ca 100644
--- a/sys/src/cmd/rc/exec.h
+++ b/sys/src/cmd/rc/exec.h
@@ -57,16 +57,17 @@ struct thread{
char *status; /* status for Xpipewait */
thread *ret; /* who continues when this finishes */
};
-
-thread *runq;
+extern thread *runq;
void turfstack(var*);
+extern int mypid;
+extern int ntrap; /* number of outstanding traps */
+extern int trap[NSIG]; /* number of outstanding traps per type */
+
code *codecopy(code*);
-code *codebuf; /* compiler output */
+extern code *codebuf; /* compiler output */
extern int ifnot;
-int ntrap; /* number of outstanding traps */
-int trap[NSIG]; /* number of outstanding traps per type */
struct builtin{
char *name;
void (*fnc)(void);
@@ -82,5 +83,3 @@ void startfunc(var*, word*, var*, redir*);
char *srcfile(thread*);
char *getstatus(void);
-
-extern char *argv0;