diff options
Diffstat (limited to 'bin/sh/options.h')
-rw-r--r-- | bin/sh/options.h | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/bin/sh/options.h b/bin/sh/options.h index 7d00f55..89dfbf7 100644 --- a/bin/sh/options.h +++ b/bin/sh/options.h @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)options.h 8.1 (Berkeley) 5/31/93 + * @(#)options.h 8.2 (Berkeley) 5/4/95 */ struct shparam { @@ -72,21 +72,21 @@ struct optent { #ifdef DEFINE_OPTIONS struct optent optlist[NOPTS] = { - "errexit", 'e', 0, - "noglob", 'f', 0, - "ignoreeof", 'I', 0, - "interactive", 'i', 0, - "monitor", 'm', 0, - "noexec", 'n', 0, - "stdin", 's', 0, - "xtrace", 'x', 0, - "verbose", 'v', 0, - "vi", 'V', 0, - "emacs", 'E', 0, - "noclobber", 'C', 0, - "allexport", 'a', 0, - "notify", 'b', 0, - "nounset", 'u', 0, + { "errexit", 'e', 0 }, + { "noglob", 'f', 0 }, + { "ignoreeof", 'I', 0 }, + { "interactive",'i', 0 }, + { "monitor", 'm', 0 }, + { "noexec", 'n', 0 }, + { "stdin", 's', 0 }, + { "xtrace", 'x', 0 }, + { "verbose", 'v', 0 }, + { "vi", 'V', 0 }, + { "emacs", 'E', 0 }, + { "noclobber", 'C', 0 }, + { "allexport", 'a', 0 }, + { "notify", 'b', 0 }, + { "nounset", 'u', 0 }, }; #else extern struct optent optlist[NOPTS]; @@ -100,15 +100,11 @@ extern char **argptr; /* argument list for builtin commands */ extern char *optarg; /* set by nextopt */ extern char *optptr; /* used by nextopt */ - -#ifdef __STDC__ -void procargs(int, char **); -void setparam(char **); -void freeparam(struct shparam *); -int nextopt(char *); -#else -void procargs(); -void setparam(); -void freeparam(); -int nextopt(); -#endif +void procargs __P((int, char **)); +void optschanged __P((void)); +void setparam __P((char **)); +void freeparam __P((struct shparam *)); +int shiftcmd __P((int, char **)); +int setcmd __P((int, char **)); +int getoptscmd __P((int, char **)); +int nextopt __P((char *)); |