mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Another round of minor tweaks and cleanups
Notable changes: - The typeset builtin's usage and error messages for incompatible options used with -f has been corrected to show that -t and -u can be used with -f. - In name.c, get rid of misleaadingly named Null static which is actually the empty string, not the null value. Replace with a new AltEmpty macro that is defined similarly to Empty. This is now also used in nvtype.c (re: de037b6e).
This commit is contained in:
parent
0602177646
commit
89cec81b32
17 changed files with 29 additions and 128 deletions
|
|
@ -133,7 +133,6 @@ extern int sh_argopts(int,char*[]);
|
|||
|
||||
|
||||
extern const char e_heading[];
|
||||
extern const char e_sptbnl[];
|
||||
extern const char e_subst[];
|
||||
extern const char e_option[];
|
||||
extern const char e_exec[];
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@
|
|||
#endif
|
||||
|
||||
#define Empty ((char*)(e_sptbnl+3))
|
||||
#define AltEmpty ((char*)(e_dot+1)) /* alternative pointer to empty string */
|
||||
|
||||
#define env_change() (++ast.env_serial)
|
||||
|
||||
|
|
@ -198,7 +199,9 @@ extern char *sh_getcwd(void);
|
|||
#define sh_sigcheck() do { if(sh.trapnote & SH_SIGSET) sh_exit(SH_EXITSIG); } while(0)
|
||||
|
||||
extern int32_t sh_mailchk;
|
||||
extern const char e_dict[];
|
||||
extern const char e_dict[]; /* error message catalog */
|
||||
extern const char e_sptbnl[]; /* default IFS: " \t\n" */
|
||||
extern const char e_dot[]; /* default path & name of dot command: "." */
|
||||
|
||||
/* sh_printopts() mode flags -- set --[no]option by default */
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* *
|
||||
* This software is part of the ast package *
|
||||
* Copyright (c) 1982-2012 AT&T Intellectual Property *
|
||||
* Copyright (c) 2020-2021 Contributors to ksh 93u+m *
|
||||
* Copyright (c) 2020-2022 Contributors to ksh 93u+m *
|
||||
* and is licensed under the *
|
||||
* Eclipse Public License, Version 1.0 *
|
||||
* by AT&T Intellectual Property *
|
||||
|
|
|
|||
|
|
@ -107,7 +107,6 @@ extern Shbltin_f sh_getlib(char*,Pathcomp_t*);
|
|||
/* constant strings needed for whence */
|
||||
extern const char e_timeformat[];
|
||||
extern const char e_badtformat[];
|
||||
extern const char e_dot[];
|
||||
extern const char e_funload[];
|
||||
extern const char e_pwd[];
|
||||
extern const char e_logout[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue