do not lie
This commit is contained in:
parent
2fb7225499
commit
d6d2f03e5f
4
main.c
4
main.c
|
@ -13,7 +13,7 @@
|
|||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.117 2008/12/29 20:47:15 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.118 2008/12/29 20:52:09 tg Exp $");
|
||||
|
||||
extern char **environ;
|
||||
|
||||
|
@ -124,7 +124,7 @@ main(int argc, const char *argv[])
|
|||
initkeywords();
|
||||
|
||||
/* define built-in commands */
|
||||
ktinit(&builtins, APERM, 64); /* must be 2^n (currently 40 builtins) */
|
||||
ktinit(&builtins, APERM, 64); /* must be 2^n (currently 44 builtins) */
|
||||
for (i = 0; mkshbuiltins[i].name != NULL; i++)
|
||||
builtin(mkshbuiltins[i].name, mkshbuiltins[i].func);
|
||||
|
||||
|
|
4
var.c
4
var.c
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.65 2008/12/13 17:02:18 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.66 2008/12/29 20:52:10 tg Exp $");
|
||||
|
||||
/*
|
||||
* Variables
|
||||
|
@ -104,7 +104,7 @@ initvar(void)
|
|||
int i;
|
||||
struct tbl *tp;
|
||||
|
||||
ktinit(&specials, APERM, 32); /* must be 2^n (currently 17 specials) */
|
||||
ktinit(&specials, APERM, 16); /* must be 2^n (currently 11 specials) */
|
||||
for (i = 0; names[i].name; i++) {
|
||||
tp = ktenter(&specials, names[i].name, hash(names[i].name));
|
||||
tp->flag = DEFINED|ISSET;
|
||||
|
|
Loading…
Reference in New Issue