root/doc_inner/gnu_global/Y/203.html

/* [<][>][^][v][top][bottom][index][help] */
<!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>str</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/2415.html#L75'>str</a>                75 include/cerr.h void setcerr(int num, const char *str);</span>
<span class='curline'><a href='../S/2419.html#L75'>str</a>                75 include/monitor.h MONARGS *monargstok(const char *str);</span>
<span class='curline'><a href='../S/2425.html#L25'>str</a>                25 include/word.h WORD nh2word(const char *str);</span>
<span class='curline'><a href='../S/2837.html#L26'>str</a>                26 src/assemble.c WORD getadr(const char *prog, const char *str, PASS pass);</span>
<span class='curline'><a href='../S/2837.html#L40'>str</a>                40 src/assemble.c WORD grword(const char *str, bool is_x);</span>
<span class='curline'><a href='../S/2837.html#L50'>str</a>                50 src/assemble.c WORD getliteral(const char *str, PASS pass);</span>
<span class='curline'><a href='../S/2837.html#L72'>str</a>                72 src/assemble.c void writestr(const char *str, bool literal, PASS pass);</span>
<span class='curline'><a href='../S/2837.html#L82'>str</a>                82 src/assemble.c void writedc(const char *str, PASS pass);</span>
<span class='curline'><a href='../S/2837.html#L319'>str</a>               319 src/assemble.c WORD getadr(const char *prog, const char *str, PASS pass)</span>
<span class='curline'><a href='../S/2837.html#L323'>str</a>               323 src/assemble.c     if(str[0] == '=') {</span>
<span class='curline'><a href='../S/2837.html#L324'>str</a>               324 src/assemble.c         adr = getliteral(str, pass);</span>
<span class='curline'><a href='../S/2837.html#L325'>str</a>               325 src/assemble.c     } else if(isdigit(str[0]) || str[0] == '-' || str[0] == '#') {</span>
<span class='curline'><a href='../S/2837.html#L326'>str</a>               326 src/assemble.c         adr = nh2word(str);</span>
<span class='curline'><a href='../S/2837.html#L329'>str</a>               329 src/assemble.c             if((adr = getlabel(prog, str)) == 0xFFFF) {</span>
<span class='curline'><a href='../S/2837.html#L330'>str</a>               330 src/assemble.c                 setcerr(103, str);    /* label not found */</span>
<span class='curline'><a href='../S/2837.html#L337'>str</a>               337 src/assemble.c WORD grword(const char *str, bool is_x)</span>
<span class='curline'><a href='../S/2837.html#L342'>str</a>               342 src/assemble.c     if(strlen(str) != 3 ||</span>
<span class='curline'><a href='../S/2837.html#L343'>str</a>               343 src/assemble.c        strncmp(str, "GR", 2) != 0 ||</span>
<span class='curline'><a href='../S/2837.html#L344'>str</a>               344 src/assemble.c        str[2] &lt; '0' || str[2] &gt; '0' + (GRSIZE - 1))</span>
<span class='curline'><a href='../S/2837.html#L348'>str</a>               348 src/assemble.c     r = (WORD)(str[2] - '0');</span>
<span class='curline'><a href='../S/2837.html#L357'>str</a>               357 src/assemble.c WORD getliteral(const char *str, PASS pass)</span>
<span class='curline'><a href='../S/2837.html#L359'>str</a>               359 src/assemble.c     assert(str[0] == '=');</span>
<span class='curline'><a href='../S/2837.html#L362'>str</a>               362 src/assemble.c     str++;</span>
<span class='curline'><a href='../S/2837.html#L363'>str</a>               363 src/assemble.c     if(str[0] == '\'') {    /* 文字定数 */</span>
<span class='curline'><a href='../S/2837.html#L364'>str</a>               364 src/assemble.c         writestr(str, true, pass);</span>
<span class='curline'><a href='../S/2837.html#L366'>str</a>               366 src/assemble.c         writememory(nh2word(str), (asptr-&gt;lptr)++, pass);</span>
<span class='curline'><a href='../S/2837.html#L387'>str</a>               387 src/assemble.c void writestr(const char *str, bool literal, PASS pass)</span>
<span class='curline'><a href='../S/2837.html#L389'>str</a>               389 src/assemble.c     assert(str[0] == '\'');</span>
<span class='curline'><a href='../S/2837.html#L393'>str</a>               393 src/assemble.c     for(int i = 1; str[i] != '\'' || str[++i] == '\''; i++) {</span>
<span class='curline'><a href='../S/2837.html#L395'>str</a>               395 src/assemble.c         if(!str[i]) {</span>
<span class='curline'><a href='../S/2837.html#L396'>str</a>               396 src/assemble.c             setcerr(123, str);    /* unclosed quote */</span>
<span class='curline'><a href='../S/2837.html#L400'>str</a>               400 src/assemble.c             setcerr(124, str);    /* more than one character in literal */</span>
<span class='curline'><a href='../S/2837.html#L405'>str</a>               405 src/assemble.c             writememory(str[i], (asptr-&gt;lptr)++, pass);</span>
<span class='curline'><a href='../S/2837.html#L408'>str</a>               408 src/assemble.c             writememory(str[i], (asptr-&gt;ptr)++, pass);</span>
<span class='curline'><a href='../S/2837.html#L413'>str</a>               413 src/assemble.c void writedc(const char *str, PASS pass)</span>
<span class='curline'><a href='../S/2837.html#L417'>str</a>               417 src/assemble.c     if(*str == '\'') {</span>
<span class='curline'><a href='../S/2837.html#L418'>str</a>               418 src/assemble.c         writestr(str, false, pass);</span>
<span class='curline'><a href='../S/2837.html#L420'>str</a>               420 src/assemble.c         if(str[0] == '#' || isdigit(str[0]) || str[0] == '-') {</span>
<span class='curline'><a href='../S/2837.html#L421'>str</a>               421 src/assemble.c             adr = nh2word(str);</span>
<span class='curline'><a href='../S/2837.html#L423'>str</a>               423 src/assemble.c             if(pass == SECOND &amp;&amp; (adr = getlabel(asptr-&gt;prog, str)) == 0xFFFF) {</span>
<span class='curline'><a href='../S/2837.html#L424'>str</a>               424 src/assemble.c                 setcerr(103, str);    /* label not found */</span>
<span class='curline'><a href='../S/2841.html#L19'>str</a>                19 src/casl2.c    char *objfile_name(const char *str);</span>
<span class='curline'><a href='../S/2845.html#L45'>str</a>                45 src/cerr.c     void setcerr(int num, const char *str)</span>
<span class='curline'><a href='../S/2845.html#L51'>str</a>                51 src/cerr.c         if(0 &lt; strlen(str) &amp;&amp; strlen(str) &lt;= CERRSTRSIZE) {</span>
<span class='curline'><a href='../S/2845.html#L52'>str</a>                52 src/cerr.c             sprintf(cerr-&gt;msg, "%s: %s", str, getcerrmsg(cerr-&gt;num));</span>
<span class='curline'><a href='../S/2812.html#L95'>str</a>                95 src/exec.c         char *str = malloc_chk(CERRSTRSIZE + 1, "pr2str.pr");</span>
<span class='curline'><a href='../S/2812.html#L97'>str</a>                97 src/exec.c         sprintf(str, "PR:#%04X", pr);</span>
<span class='curline'><a href='../S/2812.html#L98'>str</a>                98 src/exec.c         return str;</span>
<span class='curline'><a href='../S/2804.html#L124'>str</a>               124 src/monitor.c  MONARGS *monargstok(const char *str)</span>
<span class='curline'><a href='../S/2804.html#L132'>str</a>               132 src/monitor.c      if(!str || !str[0]) {</span>
<span class='curline'><a href='../S/2804.html#L135'>str</a>               135 src/monitor.c      tok = p = strdup_chk(str, "argstok.p");</span>
<span class='curline'><a href='../S/2856.html#L243'>str</a>               243 src/struct.c       char *str = NULL;</span>
<span class='curline'><a href='../S/2856.html#L245'>str</a>               245 src/struct.c       str = malloc_chk(3 + 1, "grstr.str");</span>
<span class='curline'><a href='../S/2856.html#L246'>str</a>               246 src/struct.c       sprintf(str, "GR%d", word);</span>
<span class='curline'><a href='../S/2856.html#L247'>str</a>               247 src/struct.c       return str;</span>
<span class='curline'><a href='../S/2820.html#L10'>str</a>                10 src/token.c    OPD *opdtok(const char *str);</span>
<span class='curline'><a href='../S/2820.html#L30'>str</a>                30 src/token.c    OPD *opdtok(const char *str)</span>
<span class='curline'><a href='../S/2820.html#L38'>str</a>                38 src/token.c        if(!str || !str[0]) {</span>
<span class='curline'><a href='../S/2820.html#L41'>str</a>                41 src/token.c        tok = p = strdup_chk(str, "opdtok.p");</span>
<span class='curline'><a href='../S/2820.html#L66'>str</a>                66 src/token.c                    setcerr(123, str);    /* unclosed quote */</span>
<span class='curline'><a href='../S/2828.html#L17'>str</a>                17 src/word.c     WORD n2word(const char *str);</span>
<span class='curline'><a href='../S/2828.html#L26'>str</a>                26 src/word.c     WORD h2word(const char *str);</span>
<span class='curline'><a href='../S/2828.html#L28'>str</a>                28 src/word.c     WORD n2word(const char *str)</span>
<span class='curline'><a href='../S/2828.html#L30'>str</a>                30 src/word.c         assert(isdigit(str[0]) || str[0] == '-');</span>
<span class='curline'><a href='../S/2828.html#L35'>str</a>                35 src/word.c         n = strtol(str, &amp;check, 10);</span>
<span class='curline'><a href='../S/2828.html#L37'>str</a>                37 src/word.c             setcerr(114, str);    /* not integer */</span>
<span class='curline'><a href='../S/2828.html#L47'>str</a>                47 src/word.c     WORD h2word(const char *str)</span>
<span class='curline'><a href='../S/2828.html#L49'>str</a>                49 src/word.c         assert(str[0] == '#');</span>
<span class='curline'><a href='../S/2828.html#L53'>str</a>                53 src/word.c         str++;</span>
<span class='curline'><a href='../S/2828.html#L54'>str</a>                54 src/word.c         if(*str == '-' || strlen(str) &gt; 4) {</span>
<span class='curline'><a href='../S/2828.html#L55'>str</a>                55 src/word.c             setcerr(116, str-1);    /* out of hex range */</span>
<span class='curline'><a href='../S/2828.html#L59'>str</a>                59 src/word.c         w = (WORD)strtol(str, &amp;check, 16);</span>
<span class='curline'><a href='../S/2828.html#L61'>str</a>                61 src/word.c             setcerr(115, str-1);    /* not hex */</span>
<span class='curline'><a href='../S/2828.html#L82'>str</a>                82 src/word.c     WORD nh2word(const char *str)</span>
<span class='curline'><a href='../S/2828.html#L87'>str</a>                87 src/word.c         if(str == NULL) {</span>
<span class='curline'><a href='../S/2828.html#L90'>str</a>                90 src/word.c         if(!isdigit(*str) &amp;&amp; *str != '-' &amp;&amp; *str != '#') {</span>
<span class='curline'><a href='../S/2828.html#L91'>str</a>                91 src/word.c             setcerr(114, str);    /* not integer */</span>
<span class='curline'><a href='../S/2828.html#L94'>str</a>                94 src/word.c         if(*str == '#') {</span>
<span class='curline'><a href='../S/2828.html#L95'>str</a>                95 src/word.c             w = h2word(str);</span>
<span class='curline'><a href='../S/2828.html#L97'>str</a>                97 src/word.c             w = n2word(str);</span>
<span class='curline'><a href='../S/989.html#L5'>str</a>                 5 test/unit/getgr/cmd.c WORD getgr(const char *str, bool is_x);</span>
<span class='curline'><a href='../S/989.html#L14'>str</a>                14 test/unit/getgr/cmd.c     char *str[] = {</span>
<span class='curline'><a href='../S/989.html#L27'>str</a>                27 test/unit/getgr/cmd.c         for(j = 0; j &lt; ARRAYSIZE(str); j++) {</span>
<span class='curline'><a href='../S/989.html#L29'>str</a>                29 test/unit/getgr/cmd.c             r = getgr(str[j], is_x[i]);</span>
<span class='curline'><a href='../S/989.html#L30'>str</a>                30 test/unit/getgr/cmd.c             printf("%s\t#%04X", str[j], r);</span>
<span class='curline'><a href='../S/954.html#L8'>str</a>                 8 test/unit/hash/cmd.c     char *str[2] = {"abc", "123"};</span>
<span class='curline'><a href='../S/954.html#L16'>str</a>                16 test/unit/hash/cmd.c         keys[i]-&gt;val.s = strdup(str[i]);</span>
<span class='curline'><a href='../S/954.html#L39'>str</a>                39 test/unit/hash/cmd.c     char *str[2] = {"abc", "123"};</span>
<span class='curline'><a href='../S/954.html#L47'>str</a>                47 test/unit/hash/cmd.c         keys[cnt++]-&gt;val.s = strdup(str[i]);</span>
<span class='curline'><a href='../S/959.html#L9'>str</a>                 9 test/unit/nh2word/cmd.c     char *str[] = {</span>
<span class='curline'><a href='../S/959.html#L17'>str</a>                17 test/unit/nh2word/cmd.c     for(i = 0; i &lt; sizeof(str)/sizeof(str[0]); i++) {</span>
<span class='curline'><a href='../S/959.html#L19'>str</a>                19 test/unit/nh2word/cmd.c         r = nh2word(str[i]);</span>
<span class='curline'><a href='../S/959.html#L20'>str</a>                20 test/unit/nh2word/cmd.c         printf("%s\t#%04X", str[i], r);</span>
<span class='curline'><a href='../S/957.html#L3'>str</a>                 3 test/unit/nh2word/test_h2word.h WORD h2word(const char *str);</span>
<span class='curline'><a href='../S/972.html#L5'>str</a>                 5 test/unit/opdtok/cmd.c OPD *opdtok(const char *str);</span>
<span class='curline'><a href='../S/972.html#L10'>str</a>                10 test/unit/opdtok/cmd.c     char *str[] = {</span>
<span class='curline'><a href='../S/972.html#L21'>str</a>                21 test/unit/opdtok/cmd.c     for(i = 0; i &lt; ARRAYSIZE(str); i++) {</span>
<span class='curline'><a href='../S/972.html#L23'>str</a>                23 test/unit/opdtok/cmd.c         printf("%s\n", str[i]);</span>
<span class='curline'><a href='../S/972.html#L24'>str</a>                24 test/unit/opdtok/cmd.c         opd = opdtok(str[i]);</span>
<span class='curline'><a href='../S/965.html#L46'>str</a>                46 test/unit/setcerr/cmd.c     const char *str[] = {NULL, "foobar"};</span>
<span class='curline'><a href='../S/965.html#L50'>str</a>                50 test/unit/setcerr/cmd.c     for(i = 0; i &lt; ARRAYSIZE(str); i++) {</span>
<span class='curline'><a href='../S/965.html#L52'>str</a>                52 test/unit/setcerr/cmd.c             setcerr(code[j], str[i]);</span>
<span class='curline'><a href='../S/965.html#L53'>str</a>                53 test/unit/setcerr/cmd.c             printf("%d: %s - %d\t%s\n", code[j], str[i], cerr-&gt;num, cerr-&gt;msg);</span>
</pre>
</body>
</html>

/* [<][>][^][v][top][bottom][index][help] */