<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>label</title> <meta name='robots' content='noindex,nofollow' /> <meta name='generator' content='GLOBAL-6.6.5' /> <meta http-equiv='Content-Style-Type' content='text/css' /> <link rel='stylesheet' type='text/css' href='../style.css' /> </head> <body> <pre> <span class='curline'><a href='../S/2413.html#L20'>label</a> 20 include/assemble.h bool label; /**<ラベル表を表示する場合はtrue */</span> <span class='curline'><a href='../S/2413.html#L50'>label</a> 50 include/assemble.h char *label; /**<ラベル */</span> <span class='curline'><a href='../S/2413.html#L59'>label</a> 59 include/assemble.h LABELARRAY *label; /**<ラベル配列 */</span> <span class='curline'><a href='../S/2413.html#L92'>label</a> 92 include/assemble.h WORD getlabel(const char *prog, const char *label);</span> <span class='curline'><a href='../S/2413.html#L103'>label</a> 103 include/assemble.h bool addlabel(const char *prog, const char *label, WORD adr);</span> <span class='curline'><a href='../S/2422.html#L42'>label</a> 42 include/token.h char *label; /**<ラベル */</span> <span class='curline'><a href='../S/2837.html#L437'>label</a> 437 src/assemble.c if(!cmdl->label[0]) {</span> <span class='curline'><a href='../S/2837.html#L442'>label</a> 442 src/assemble.c strcpy(asptr->prog, cmdl->label);</span> <span class='curline'><a href='../S/2837.html#L698'>label</a> 698 src/assemble.c if(pass == FIRST && cmdl->label[0]) {</span> <span class='curline'><a href='../S/2837.html#L699'>label</a> 699 src/assemble.c stat = addlabel(asptr->prog, cmdl->label, asptr->ptr);</span> <span class='curline'><a href='../S/2837.html#L705'>label</a> 705 src/assemble.c FREE(cmdl->label);</span> <span class='curline'><a href='../S/2837.html#L771'>label</a> 771 src/assemble.c asmode.src == true || asmode.label == true || asmode.asdetail == true)</span> <span class='curline'><a href='../S/2837.html#L781'>label</a> 781 src/assemble.c if(pass == FIRST && asmode.label == true) {</span> <span class='curline'><a href='../S/2841.html#L101'>label</a> 101 src/casl2.c asmode.label = true;</span> <span class='curline'><a href='../S/2841.html#L104'>label</a> 104 src/casl2.c asmode.label = true;</span> <span class='curline'><a href='../S/2836.html#L20'>label</a> 20 src/label.c unsigned labelhash(const char *prog, const char *label);</span> <span class='curline'><a href='../S/2836.html#L60'>label</a> 60 src/label.c unsigned labelhash(const char *prog, const char *label)</span> <span class='curline'><a href='../S/2836.html#L69'>label</a> 69 src/label.c keys[i] = label_hashkey(label);</span> <span class='curline'><a href='../S/2836.html#L89'>label</a> 89 src/label.c WORD getlabel(const char *prog, const char *label)</span> <span class='curline'><a href='../S/2836.html#L91'>label</a> 91 src/label.c assert(prog != NULL && label != NULL);</span> <span class='curline'><a href='../S/2836.html#L95'>label</a> 95 src/label.c for(p = labels[labelhash(prog, label)]; p != NULL; p = p->next) {</span> <span class='curline'><a href='../S/2836.html#L96'>label</a> 96 src/label.c l = p->label;</span> <span class='curline'><a href='../S/2836.html#L98'>label</a> 98 src/label.c strcmp(label, l->label) == 0)</span> <span class='curline'><a href='../S/2836.html#L106'>label</a> 106 src/label.c bool addlabel(const char *prog, const char *label, WORD adr)</span> <span class='curline'><a href='../S/2836.html#L108'>label</a> 108 src/label.c assert(label != NULL);</span> <span class='curline'><a href='../S/2836.html#L114'>label</a> 114 src/label.c if(getlabel(prog, label) != 0xFFFF) {</span> <span class='curline'><a href='../S/2836.html#L115'>label</a> 115 src/label.c setcerr(101, label); /* label already defined */</span> <span class='curline'><a href='../S/2836.html#L120'>label</a> 120 src/label.c l = p->label = malloc_chk(sizeof(LABELARRAY), "labels.label");</span> <span class='curline'><a href='../S/2836.html#L124'>label</a> 124 src/label.c l->label = strdup_chk(label, "label.label");</span> <span class='curline'><a href='../S/2836.html#L130'>label</a> 130 src/label.c p->next = labels[h = labelhash(prog, label)];</span> <span class='curline'><a href='../S/2836.html#L144'>label</a> 144 src/label.c assert(p->label != NULL);</span> <span class='curline'><a href='../S/2836.html#L145'>label</a> 145 src/label.c l[s++] = p->label;</span> <span class='curline'><a href='../S/2836.html#L153'>label</a> 153 src/label.c fprintf(stdout, "%s ---> #%04X\n", l[i]->label, l[i]->adr);</span> <span class='curline'><a href='../S/2836.html#L167'>label</a> 167 src/label.c FREE(p->label->prog);</span> <span class='curline'><a href='../S/2836.html#L168'>label</a> 168 src/label.c FREE(p->label->label);</span> <span class='curline'><a href='../S/2836.html#L169'>label</a> 169 src/label.c FREE(p->label);</span> <span class='curline'><a href='../S/2820.html#L121'>label</a> 121 src/token.c cmdl->label = strdup_chk("", "cmdl->label");</span> <span class='curline'><a href='../S/2820.html#L123'>label</a> 123 src/token.c cmdl->label = strndup_chk(p, i, "cmdl->label");</span> <span class='curline'><a href='../S/2820.html#L126'>label</a> 126 src/token.c setcerr(104, cmdl->label); /* label length is too long */</span> <span class='curline'><a href='../S/2820.html#L127'>label</a> 127 src/token.c FREE(cmdl->label);</span> <span class='curline'><a href='../S/2820.html#L139'>label</a> 139 src/token.c if(cmdl->label) { /* ラベルが定義されていて命令がない場合はエラー */</span> <span class='curline'><a href='../S/2820.html#L142'>label</a> 142 src/token.c FREE(cmdl->label);</span> <span class='curline'><a href='../S/951.html#L32'>label</a> 32 test/unit/linetok/cmd.c if(testcl->label != NULL){</span> <span class='curline'><a href='../S/951.html#L33'>label</a> 33 test/unit/linetok/cmd.c printf("cl->label: %s\n", testcl->label);</span> </pre> </body> </html>