Ignore:
Timestamp:
Sep 14, 2010, 1:13:20 AM (15 years ago)
Author:
bird
Message:

kash: trimmed down the arith stuff, making it not drag in libc bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/generated/init.c

    r2290 r2415  
    110110#undef  STANDARD_BITS
    111111#define STANDARD_BITS   (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
     112#undef  SHMEMHDR_MAGIC_FREE
     113#define SHMEMHDR_MAGIC_FREE     0xbeeff00d
     114#undef  SHMEMHDR_MAGIC_USED
     115#define SHMEMHDR_MAGIC_USED     0xfeedface
     116#undef  SHMEMCHUNK_MAGIC
     117#define SHMEMCHUNK_MAGIC        0x12345678
     118#undef  SHHEAP_MIN_CHUNK
     119#define SHHEAP_MIN_CHUNK        0x80000 //(1024*1024)
     120#undef  SHFILE_MAX
     121#define SHFILE_MAX          1024
     122#undef  SHFILE_GROW
     123#define SHFILE_GROW         64
     124#undef  SHFILE_UNIX_MIN_FD
     125#define SHFILE_UNIX_MIN_FD  32
     126#undef  SHFILE_MAX_PATH
     127#define SHFILE_MAX_PATH     4096
     128#undef  YY_NO_UNPUT
     129#define YY_NO_UNPUT
    112130
    113131
     
    132150init(shinstance *psh) {
    133151
    134       /* from exec.c: */
     152      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/exec.c: */
    135153      {
    136154              hash_special_builtins(psh);
    137155      }
    138156
    139       /* from input.c: */
     157      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/input.c: */
    140158      {
    141159              psh->basepf.nextc = psh->basepf.buf = psh->basebuf;
    142160      }
    143161
    144       /* from options.c: */
     162      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/options.c: */
    145163      {
    146164              memcpy(&psh->optlist[0], &ro_optlist[0], sizeof(psh->optlist));
    147165      }
    148166
    149       /* from var.c: */
     167      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/var.c: */
    150168      {
    151169              char **envp;
     
    170188reset(shinstance *psh) {
    171189
    172       /* from eval.c: */
     190      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/eval.c: */
    173191      {
    174192              psh->evalskip = 0;
     
    177195      }
    178196
    179       /* from input.c: */
     197      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/input.c: */
    180198      {
    181199              if (psh->exception != EXSHELLPROC)
     
    184202      }
    185203
    186       /* from output.c: */
     204      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/output.c: */
    187205      {
    188206              psh->out1 = &psh->output;
     
    194212      }
    195213
    196       /* from parser.c: */
     214      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/parser.c: */
    197215      {
    198216              psh->tokpushback = 0;
     
    200218      }
    201219
    202       /* from redir.c: */
     220      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/redir.c: */
    203221      {
    204222              while (psh->redirlist)
     
    216234initshellproc(shinstance *psh) {
    217235
    218       /* from alias.c: */
     236      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/alias.c: */
    219237      {
    220238              rmaliases(psh);
    221239      }
    222240
    223       /* from eval.c: */
     241      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/eval.c: */
    224242      {
    225243              psh->exitstatus = 0;
    226244      }
    227245
    228       /* from exec.c: */
     246      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/exec.c: */
    229247      {
    230248              deletefuncs(psh);
    231249      }
    232250
    233       /* from input.c: */
     251      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/input.c: */
    234252      {
    235253              popallfiles(psh);
    236254      }
    237255
    238       /* from jobs.c: */
     256      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/jobs.c: */
    239257      {
    240258              psh->backgndpid = -1;
     
    244262      }
    245263
    246       /* from options.c: */
     264      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/options.c: */
    247265      {
    248266              int i;
     
    254272      }
    255273
    256       /* from redir.c: */
     274      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/redir.c: */
    257275      {
    258276              clearredir(psh, 0);
    259277      }
    260278
    261       /* from trap.c: */
     279      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/trap.c: */
    262280      {
    263281              char *sm;
     
    270288      }
    271289
    272       /* from var.c: */
     290      /* from /Volumes/ScratchHFS/bird/kBuild/svn/trunk/src/kash/var.c: */
    273291      {
    274292              shprocvar(psh);
Note: See TracChangeset for help on using the changeset viewer.