#include "flayer.h"
#include "samterm.h"
+enum {
+ STACK = 4096,
+};
+
static char exname[64];
void
usage(void)
{
- fprint(2, "usage: samterm [-a]\n");
+ fprint(2, "usage: samterm [-ai]\n");
threadexitsall("usage");
}
case 'a':
autoindent = 1;
break;
+ case 'i':
+ spacesindent = 1;
+ break;
default:
usage();
}ARGEND
t = getenv("tabstop");
if(t != nil)
maxtab = strtoul(t, nil, 0);
+ free(t);
draw(screen, screen->clipr, display->white, nil, ZP);
}
plumbc = chancreate(sizeof(int), 0);
arg[0] = plumbc;
arg[1] = &p[1];
- proccreate(extproc, arg, 1024);
+ proccreate(extproc, arg, STACK);
atexit(removeextern);
}
}
arg[0] =plumbc;
arg[1] = &fd;
- proccreate(plumbproc, arg, 4096);
+ proccreate(plumbproc, arg, STACK);
return 1;
}
hoststart(void)
{
hostc = chancreate(sizeof(int), 0);
- proccreate(hostproc, hostc, 1024);
+ proccreate(hostproc, hostc, STACK);
}