diff options
| author | Dan Cross <cross@gajendra.net> | 2025-07-23 06:47:21 -0400 |
|---|---|---|
| committer | Dan Cross <cross@gajendra.net> | 2025-07-25 12:25:11 -0400 |
| commit | 156e745be9f6a1b19b0f8e2a931148786d7acad4 (patch) | |
| tree | c853bc58f9d7e88d84de2da625bc4dddcdf46780 /src/cmd/rc/exec.c | |
| parent | 1e6e30e91e7a2712d9507072b5ff3b59a73e5dfe (diff) | |
| download | plan9port-156e745be9f6a1b19b0f8e2a931148786d7acad4.tar.gz plan9port-156e745be9f6a1b19b0f8e2a931148786d7acad4.zip | |
all: remove need for `-fcommon`
Use `extern` where appropriate so that we can remove `-fcommon`
on macOS and others. On macOS, `-fcommon` generates a number of
linker warnings.
I've tested building on macOS, Linux, FreeBSD, NetBSD, OpenBSD
and illumos. I am not in a position to test on AIX or other
more esoteric platforms, however.
Diffstat (limited to 'src/cmd/rc/exec.c')
| -rw-r--r-- | src/cmd/rc/exec.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cmd/rc/exec.c b/src/cmd/rc/exec.c index 0320976a..94d3321a 100644 --- a/src/cmd/rc/exec.c +++ b/src/cmd/rc/exec.c @@ -8,6 +8,24 @@ */ char *argv0="rc"; +thread *runq; +code *codebuf; /* compiler output */ +int ntrap; /* number of outstanding traps */ +int trap[NSIG]; /* number of outstanding traps per type */ +int eflagok; /* kludge flag so that -e doesn't exit in startup */ +tree *cmdtree; +char *promptstr; +char tok[NTOK]; +var *gvar[NVAR]; /* hash for globals */ +int mypid; +char **argp; +char **args; +int nerror; /* number of errors encountered during compilation */ +int ndot; +int lastc; +int kidpid; +io *err; + void start(code *c, int pc, var *local) { |
