mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
[v1.0] remove deparse.c
The shell code de-parser, which converts byte code back to shell source code, is unused. It was used in SHOPT_COSHELL, which was removed in3613da42, and in ancient code for systems without fork(2), which was removed in7b0e0776. Testing reveals it to be quite broken as it has not kept up with more recent changes in ksh. It is kept in the dev branch, as we intend to fix it up and use it for 'typeset -f FUNCTIONNAME' to output function definitions in a future release. (The current design, which outputs original source code direct from the source file, is fundamentally broken because the output of a function definition that was loaded from a file is corrupted if you edit the file after loading the function.)
This commit is contained in:
parent
89cec81b32
commit
a46c8e74f7
4 changed files with 2 additions and 617 deletions
|
|
@ -120,7 +120,6 @@ extern Namval_t *sh_assignok(Namval_t*,int);
|
|||
extern struct dolnod *sh_arguse(void);
|
||||
extern char *sh_checkid(char*,char*);
|
||||
extern void sh_chktrap(void);
|
||||
extern void sh_deparse(Sfio_t*,const Shnode_t*,int);
|
||||
extern int sh_debug(const char*,const char*,const char*,char *const[],int);
|
||||
extern char **sh_envgen(void);
|
||||
extern void sh_envnolocal(Namval_t*,void*);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue