<!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>code</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/2417.html#L115'>code</a> 115 include/struct.h WORD code; /**<命令コード */</span> <span class='curline'><a href='../S/2417.html#L198'>code</a> 198 include/struct.h const void (*getcmdptr(WORD code));</span> <span class='curline'><a href='../S/2417.html#L203'>code</a> 203 include/struct.h CMDTYPE getcmdtype(WORD code);</span> <span class='curline'><a href='../S/2417.html#L208'>code</a> 208 include/struct.h char *getcmdname(WORD code);</span> <span class='curline'><a href='../S/2856.html#L83'>code</a> 83 src/struct.c unsigned hash_code(WORD code);</span> <span class='curline'><a href='../S/2856.html#L124'>code</a> 124 src/struct.c hashval = hash_code(comet2cmd[i].code);</span> <span class='curline'><a href='../S/2856.html#L161'>code</a> 161 src/struct.c w = p->cmd->code;</span> <span class='curline'><a href='../S/2856.html#L171'>code</a> 171 src/struct.c unsigned hash_code(WORD code)</span> <span class='curline'><a href='../S/2856.html#L179'>code</a> 179 src/struct.c keys[0]->val.i = (int)(code >> 8);</span> <span class='curline'><a href='../S/2856.html#L188'>code</a> 188 src/struct.c const void (*getcmdptr(WORD code))</span> <span class='curline'><a href='../S/2856.html#L193'>code</a> 193 src/struct.c for(t = cmdtab[HASH_CODE][hash_code(code)]; t != NULL; t = t->next) {</span> <span class='curline'><a href='../S/2856.html#L194'>code</a> 194 src/struct.c if(code == t->cmd->code) {</span> <span class='curline'><a href='../S/2856.html#L205'>code</a> 205 src/struct.c CMDTYPE getcmdtype(WORD code)</span> <span class='curline'><a href='../S/2856.html#L210'>code</a> 210 src/struct.c for(t = cmdtab[HASH_CODE][hash_code(code)]; t != NULL; t = t->next) {</span> <span class='curline'><a href='../S/2856.html#L211'>code</a> 211 src/struct.c if(code == t->cmd->code) {</span> <span class='curline'><a href='../S/2856.html#L222'>code</a> 222 src/struct.c char *getcmdname(WORD code)</span> <span class='curline'><a href='../S/2856.html#L227'>code</a> 227 src/struct.c for(t = cmdtab[HASH_CODE][hash_code(code)]; t != NULL; t = t->next) {</span> <span class='curline'><a href='../S/2856.html#L228'>code</a> 228 src/struct.c if(code == t->cmd->code) {</span> <span class='curline'><a href='../S/944.html#L9'>code</a> 9 test/unit/getcmdcode/cmd.c WORD code;</span> <span class='curline'><a href='../S/944.html#L32'>code</a> 32 test/unit/getcmdcode/cmd.c code = getcmdcode(cmdcodelist[i].cmd, cmdcodelist[i].type);</span> <span class='curline'><a href='../S/944.html#L33'>code</a> 33 test/unit/getcmdcode/cmd.c printf("%s:0%02o ---> #%04X\n", cmdcodelist[i].cmd, cmdcodelist[i].type, code);</span> <span class='curline'><a href='../S/965.html#L41'>code</a> 41 test/unit/setcerr/cmd.c int code[] = {</span> <span class='curline'><a href='../S/965.html#L51'>code</a> 51 test/unit/setcerr/cmd.c for(j = 0; j < ARRAYSIZE(code); j++) {</span> <span class='curline'><a href='../S/965.html#L52'>code</a> 52 test/unit/setcerr/cmd.c setcerr(code[j], str[i]);</span> <span class='curline'><a href='../S/965.html#L53'>code</a> 53 test/unit/setcerr/cmd.c printf("%d: %s - %d\t%s\n", code[j], str[i], cerr->num, cerr->msg);</span> </pre> </body> </html>