about summary refs log tree commit diff stats
path: root/cpp/018record
Commit message (Collapse)AuthorAgeFilesLines
* 988 - those replace{} directives were a bad ideaKartik K. Agaram2015-03-271-5/+7
|
* 983 - arc 'integer-array' => c++ 'array:integer'Kartik K. Agaram2015-03-261-3/+3
|
* 982Kartik K. Agaram2015-03-261-47/+54
|
* 979Kartik K. Agaram2015-03-261-9/+3
|
* 978Kartik K. Agaram2015-03-261-0/+20
|
* 973Kartik K. Agaram2015-03-261-4/+2
|
* 971Kartik K. Agaram2015-03-251-3/+8
|
* 969Kartik K. Agaram2015-03-241-1/+1
|
* 968Kartik K. Agaram2015-03-241-5/+5
|
* 966 - c++: starting on default-spaceKartik K. Agaram2015-03-211-1/+1
|
* 961 - done converting names?Kartik K. Agaram2015-03-201-0/+2
| | | | | | | | | | | I'm making two changes to how I compute field offsets: a) I just replace offset names up front, before I even manage field names. I don't bother disallowing x:integer and x:offset in the same function. Let's see if that leads us astray. Certainly saves code. b) I don't bother canonizing the first arg of a get since we know it has to have a type that is some number of 'address' followed by a record. Just assume that we have the right number of 'deref's.
* 953 - bugfix in intermediate layerKartik K. Agaram2015-03-181-4/+2
|
* 949 - paving the way for jumps to labelsKartik K. Agaram2015-03-171-4/+5
| | | | Addresses for reagents are now computed after all transforms.
* 945 - move 'transform' layer to before 'run'Kartik K. Agaram2015-03-171-0/+142
an> calloc(1, size); if(!res) eprint("fatal: could not malloc() %u bytes\n", size); return res; } void eprint(const char *errstr, ...) { va_list ap; va_start(ap, errstr); vfprintf(stderr, errstr, ap); va_end(ap); exit(EXIT_FAILURE); } void * erealloc(void *ptr, unsigned int size) { void *res = realloc(ptr, size); if(!res) eprint("fatal: could not malloc() %u bytes\n", size); return res; } void spawn(Arg *arg) { static char *shell = NULL; if(!shell && !(shell = getenv("SHELL"))) shell = "/bin/sh"; if(!arg->cmd) return; /* the double-fork construct avoids zombie processes */ if(fork() == 0) { if(fork() == 0) { if(dpy) close(ConnectionNumber(dpy)); setsid(); execl(shell, shell, "-c", arg->cmd, (char *)NULL); fprintf(stderr, "dwm: execl '%s -c %s'", shell, arg->cmd); perror(" failed"); } exit(0); } wait(0); }