mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
cleanup: get rid of KSHELL and _BLD_shell preprocessor macros
Once upon a time it might have been possible to build certain parts of ksh, such as the emacs and vi editors and possibly even the name/value library (nval(3)) as independent libraries. But given the depressing amount of bit rot in the code that we inherited, I am certain that disabling either of these macros had been resulting in a broken build for many years before AT&T abandoned this code base. These are certainly not going to be useful now. Meanwhile the KSHELL macro got in the way of me today, because the Mamfile did not define it for all the .c files, but some headers declared some functionality conditionally upon that macro. So including <io.h> in, e.g., nvdisc.c did not declare the same functions as including that header in files with KSHELL defined. This inconsistency is now gone as well, for various files. I'm currently working on making it possible once again to build libshell as a dynamic library; that should be good enough. And that never involved disabling either of these macros.
This commit is contained in:
parent
2b8eaa6609
commit
aa3048880b
18 changed files with 102 additions and 285 deletions
|
|
@ -49,12 +49,6 @@
|
|||
#define IOPICKFD 0x10000 /* file descriptor number was selected automatically */
|
||||
#define IOHERESTRING 0x20000 /* allow here documents to be string streams */
|
||||
|
||||
/*
|
||||
* The remainder of this file is only used when compiled with shell
|
||||
*/
|
||||
|
||||
#if KSHELL
|
||||
|
||||
#ifndef ARG_RAW
|
||||
struct ionod;
|
||||
#endif /* !ARG_RAW */
|
||||
|
|
@ -66,7 +60,7 @@ extern int sh_iorenumber(Shell_t*,int,int);
|
|||
extern void sh_pclose(int[]);
|
||||
extern int sh_rpipe(int[]);
|
||||
extern void sh_iorestore(Shell_t*,int,int);
|
||||
#if defined(__EXPORT__) && defined(_BLD_DLL) && defined(_BLD_shell)
|
||||
#if defined(__EXPORT__) && defined(_BLD_DLL)
|
||||
__EXPORT__
|
||||
#endif
|
||||
extern Sfio_t *sh_iostream(Shell_t*,int);
|
||||
|
|
@ -113,4 +107,3 @@ extern const char e_sysrc[];
|
|||
extern const char e_stdprompt[];
|
||||
extern const char e_supprompt[];
|
||||
extern const char e_ambiguous[];
|
||||
#endif /* KSHELL */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue