p 16 src/cerr.c CERRLIST *p = NULL; p 20 src/cerr.c if(p == NULL) { p 21 src/cerr.c stat = p = malloc_chk(sizeof(CERRLIST), "cerrlist"); p 23 src/cerr.c p = p->next = malloc_chk(sizeof(CERRLIST), "cerrlist->next"); p 25 src/cerr.c p->cerr = &cerrv[i]; p 26 src/cerr.c p->next = NULL; p 28 src/cerr.c p->next = cerrlist; p 34 src/cerr.c CERRLIST *p = NULL; p 39 src/cerr.c for(p = cerrlist; p != NULL; p = p->next) { p 40 src/cerr.c printf("%d: %s\n", p->cerr->num, p->cerr->msg); p 60 src/cerr.c CERRLIST *p = NULL; p 63 src/cerr.c for(p = cerrlist; p != NULL; p = p->next) { p 64 src/cerr.c if(num == p->cerr->num) { p 65 src/cerr.c msg = p->cerr->msg; p 74 src/cerr.c CERRLIST *p = NULL; p 82 src/cerr.c for(p = cerrlist; p != NULL; p = q) { p 83 src/cerr.c q = p->next; p 84 src/cerr.c FREE(p); p 5 src/cmem.c void *p = NULL; p 7 src/cmem.c if((p = malloc(size)) == NULL) { p 11 src/cmem.c return memset(p, 0, size); p 16 src/cmem.c void *p = NULL; p 18 src/cmem.c if((p = calloc(nmemb, size)) == NULL) { p 22 src/cmem.c return p; p 92 src/label.c LABELTAB *p = NULL; p 95 src/label.c for(p = labels[labelhash(prog, label)]; p != NULL; p = p->next) { p 96 src/label.c l = p->label; p 109 src/label.c LABELTAB *p = NULL; p 119 src/label.c p = malloc_chk(sizeof(LABELTAB), "labels.next"); p 120 src/label.c l = p->label = malloc_chk(sizeof(LABELARRAY), "labels.label"); p 130 src/label.c p->next = labels[h = labelhash(prog, label)]; p 131 src/label.c labels[h] = p; p 138 src/label.c LABELTAB *p = NULL; p 143 src/label.c for(p = labels[i]; p != NULL; p = p->next) { p 144 src/label.c assert(p->label != NULL); p 145 src/label.c l[s++] = p->label; p 161 src/label.c LABELTAB *p = NULL; p 165 src/label.c for(p = labels[i]; p != NULL; p = q) { p 166 src/label.c q = p->next; p 167 src/label.c FREE(p->label->prog); p 168 src/label.c FREE(p->label->label); p 169 src/label.c FREE(p->label); p 170 src/label.c FREE(p); p 27 src/monitor.c BPSLIST *p = NULL; p 29 src/monitor.c for(p = bps[adrhash(adr)]; p != NULL; p = p->next) { p 30 src/monitor.c if(p->adr == adr) { p 39 src/monitor.c BPSLIST *p = NULL; p 48 src/monitor.c p = malloc_chk(sizeof(BPSLIST), "bps.next"); p 50 src/monitor.c p->adr = adr; p 52 src/monitor.c p->next = bps[h = adrhash(adr)]; p 53 src/monitor.c bps[h] = p; p 59 src/monitor.c BPSLIST *p = NULL; p 64 src/monitor.c p = bps[h = adrhash(adr)]; p 65 src/monitor.c if(p != NULL) { p 66 src/monitor.c if(p->adr == adr) { p 67 src/monitor.c if(p->next == NULL) { p 70 src/monitor.c bps[h] = p->next; p 71 src/monitor.c FREE(p); p 75 src/monitor.c for(; p->next != NULL; p = p->next) { p 76 src/monitor.c q = p->next; p 78 src/monitor.c p->next = q->next; p 92 src/monitor.c BPSLIST *p = NULL; p 96 src/monitor.c for(p = bps[i]; p != NULL; p = p->next) { p 97 src/monitor.c fprintf(stdout, "#%04X\n", p->adr); p 108 src/monitor.c BPSLIST *p = NULL; p 110 src/monitor.c for(p = head; p != NULL; p = q) { p 111 src/monitor.c q = p->next; p 112 src/monitor.c FREE(p); p 128 src/monitor.c char *p = NULL; p 135 src/monitor.c tok = p = strdup_chk(str, "argstok.p"); p 137 src/monitor.c int i = strcspn(p, " "); p 138 src/monitor.c sepc = p[i]; p 139 src/monitor.c args->argv[(args->argc)++] = strndup_chk(p, i, "args->argv[]"); p 140 src/monitor.c p += i + 1; p 149 src/monitor.c char *p = NULL; p 156 src/monitor.c p = tokens = strdup_chk(line, "tokens"); p 158 src/monitor.c strip_casl2_comment(p); p 160 src/monitor.c strip_end(p); p 164 src/monitor.c i = strcspn(p, " \t\n"); p 165 src/monitor.c moncmdl->cmd = strndup_chk(p, i, "moncmdl->cmd"); p 167 src/monitor.c p += i; p 168 src/monitor.c while(*p == ' ' || *p == '\t') { p 169 src/monitor.c p++; p 172 src/monitor.c if(strcspn(p, "\n") > 0) { p 173 src/monitor.c moncmdl->args = monargstok(p); p 115 src/struct.c CMDTAB *p = NULL; p 119 src/struct.c p = malloc_chk(sizeof(CMDTAB), "create_cmdtable.p"); p 120 src/struct.c p->cmd = &comet2cmd[i]; p 126 src/struct.c p->next = cmdtab[hash][hashval]; p 127 src/struct.c cmdtab[hash][hashval] = p; p 137 src/struct.c CMDTAB *p = NULL; p 141 src/struct.c for(p = cmdtab[hash][i]; p != NULL; p = q) { p 142 src/struct.c q = p->next; p 143 src/struct.c FREE(p); p 155 src/struct.c CMDTAB *p = NULL; p 159 src/struct.c for(p = cmdtab[HASH_CMDTYPE][hash_cmdtype(cmd, type)]; p != NULL; p = p->next) { p 160 src/struct.c if(strcmp(cmd, p->cmd->name) == 0 && type == p->cmd->type) { p 161 src/struct.c w = p->cmd->code; p 33 src/token.c char *tok, *p, sepc = ','; p 41 src/token.c tok = p = strdup_chk(str, "opdtok.p"); p 49 src/token.c if(p[i] == '=') { p 53 src/token.c if(p[i] == '\'') { p 55 src/token.c if(p[i+1] != '\'' && (quoting == false || p[i-1] != '\'')) { p 59 src/token.c if(p[i+1] != '\'') { p 65 src/token.c if(!p[i]) { p 71 src/token.c i += strcspn(p + i, ", "); p 80 src/token.c sepc = p[i]; p 81 src/token.c opd->opdv[(opd->opdc)++] = strndup_chk(p, i, "opd->opdv[]"); p 82 src/token.c p += i + 1; p 99 src/token.c char *tok = NULL, *p = NULL; p 107 src/token.c tok = p = strdup_chk(line, "tok"); p 109 src/token.c strip_casl2_comment(p); p 111 src/token.c strip_end(p); p 113 src/token.c if(!p[0]) { p 120 src/token.c if((i = strcspn(p, " \t")) == 0) { p 123 src/token.c cmdl->label = strndup_chk(p, i, "cmdl->label"); p 134 src/token.c p += i; p 136 src/token.c p += strspn(p, " \t"); p 138 src/token.c if(!p[0]) { p 147 src/token.c i = strcspn(p, " \t"); p 148 src/token.c cmdl->cmd = strndup_chk(p, i, "cmdl.cmd"); p 152 src/token.c p += i; p 154 src/token.c p += strspn(p, " \t"); p 156 src/token.c cmdl->opd = opdtok(p); p 59 test/unit/addcerrlist/cmd.c CERRLIST *p; p 67 test/unit/addcerrlist/cmd.c for(p = cerrlist; p != NULL; p = p->next) { p 68 test/unit/addcerrlist/cmd.c printf("%d: %s\n", p->cerr->num, p->cerr->msg);