<!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>s</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/2424.html#L57'>s</a> 57 include/cmem.h char *strdup_chk(const char *s, const char *tag);</span> <span class='curline'><a href='../S/2424.html#L68'>s</a> 68 include/cmem.h char *strndup_chk(const char *s, size_t len, const char *tag);</span> <span class='curline'><a href='../S/2424.html#L77'>s</a> 77 include/cmem.h void strip_end(char *s);</span> <span class='curline'><a href='../S/2424.html#L86'>s</a> 86 include/cmem.h void strip_casl2_comment(char *s);</span> <span class='curline'><a href='../S/2424.html#L95'>s</a> 95 include/cmem.h char *strrev(const char *s);</span> <span class='curline'><a href='../S/2426.html#L18'>s</a> 18 include/hash.h char *s; /**<char型のデータ */</span> <span class='curline'><a href='../S/2831.html#L25'>s</a> 25 src/cmem.c char *strdup_chk(const char *s, const char *tag)</span> <span class='curline'><a href='../S/2831.html#L27'>s</a> 27 src/cmem.c assert(s != NULL);</span> <span class='curline'><a href='../S/2831.html#L28'>s</a> 28 src/cmem.c char *t = malloc_chk(strlen(s) + 1, tag);</span> <span class='curline'><a href='../S/2831.html#L29'>s</a> 29 src/cmem.c strcpy(t, s);</span> <span class='curline'><a href='../S/2831.html#L33'>s</a> 33 src/cmem.c char *strndup_chk(const char *s, size_t len, const char *tag)</span> <span class='curline'><a href='../S/2831.html#L35'>s</a> 35 src/cmem.c assert(s != NULL);</span> <span class='curline'><a href='../S/2831.html#L38'>s</a> 38 src/cmem.c if(len < strlen(s)) {</span> <span class='curline'><a href='../S/2831.html#L40'>s</a> 40 src/cmem.c strncpy(t, s, len);</span> <span class='curline'><a href='../S/2831.html#L43'>s</a> 43 src/cmem.c t = strdup_chk(s, tag);</span> <span class='curline'><a href='../S/2831.html#L48'>s</a> 48 src/cmem.c void strip_end(char *s)</span> <span class='curline'><a href='../S/2831.html#L50'>s</a> 50 src/cmem.c for(int i = strlen(s) - 1; i > 0 && (s[i] == '\n' || s[i] == '\r' || s[i] == ' ' || s[i] == '\t'); i--) {</span> <span class='curline'><a href='../S/2831.html#L51'>s</a> 51 src/cmem.c s[i] = '\0';</span> <span class='curline'><a href='../S/2831.html#L55'>s</a> 55 src/cmem.c void strip_casl2_comment(char *s)</span> <span class='curline'><a href='../S/2831.html#L59'>s</a> 59 src/cmem.c for(int i = 0; s[i]; i++) {</span> <span class='curline'><a href='../S/2831.html#L61'>s</a> 61 src/cmem.c if(s[i] == '\'' && s[i+1] != '\'' && (quoting == false || s[i-1] != '\'')) {</span> <span class='curline'><a href='../S/2831.html#L64'>s</a> 64 src/cmem.c } else if(quoting == false && s[i] == ';') {</span> <span class='curline'><a href='../S/2831.html#L65'>s</a> 65 src/cmem.c s[i] = '\0';</span> <span class='curline'><a href='../S/2831.html#L71'>s</a> 71 src/cmem.c char *strrev(const char *s)</span> <span class='curline'><a href='../S/2831.html#L73'>s</a> 73 src/cmem.c char *t = strdup_chk(s, "strrev.t");</span> <span class='curline'><a href='../S/2812.html#L165'>s</a> 165 src/exec.c char *s = NULL;</span> <span class='curline'><a href='../S/2812.html#L168'>s</a> 168 src/exec.c setcerr(205, s = pr2str(sys->cpu->pr)); /* r/r1 in word #1 - not GR */</span> <span class='curline'><a href='../S/2812.html#L169'>s</a> 169 src/exec.c FREE(s);</span> <span class='curline'><a href='../S/2812.html#L178'>s</a> 178 src/exec.c char *s = NULL;</span> <span class='curline'><a href='../S/2812.html#L181'>s</a> 181 src/exec.c setcerr(206, s = pr2str(sys->cpu->pr)); /* r/r1 in word #1 - not GR */</span> <span class='curline'><a href='../S/2812.html#L182'>s</a> 182 src/exec.c FREE(s);</span> <span class='curline'><a href='../S/2812.html#L202'>s</a> 202 src/exec.c char *s = NULL;</span> <span class='curline'><a href='../S/2812.html#L205'>s</a> 205 src/exec.c setcerr(207, s = pr2str(sys->cpu->pr + 1)); /* address in word #2 - out of memory */</span> <span class='curline'><a href='../S/2812.html#L206'>s</a> 206 src/exec.c FREE(s);</span> <span class='curline'><a href='../S/2812.html#L301'>s</a> 301 src/exec.c unsigned long s = 0;</span> <span class='curline'><a href='../S/2812.html#L307'>s</a> 307 src/exec.c s = o + val;</span> <span class='curline'><a href='../S/2812.html#L308'>s</a> 308 src/exec.c if(s > 0xFFFF) {</span> <span class='curline'><a href='../S/2812.html#L315'>s</a> 315 src/exec.c s = o + (~val + 1);</span> <span class='curline'><a href='../S/2812.html#L316'>s</a> 316 src/exec.c if(s > 0xFFFF) {</span> <span class='curline'><a href='../S/2812.html#L317'>s</a> 317 src/exec.c s &= 0xFFFF;</span> <span class='curline'><a href='../S/2812.html#L320'>s</a> 320 src/exec.c sys->cpu->gr[r] = (WORD)s;</span> <span class='curline'><a href='../S/2812.html#L322'>s</a> 322 src/exec.c if((s & 0x8000) == 0x8000) {</span> <span class='curline'><a href='../S/2812.html#L325'>s</a> 325 src/exec.c else if(s == 0x0) {</span> <span class='curline'><a href='../S/2812.html#L629'>s</a> 629 src/exec.c char *s = NULL;</span> <span class='curline'><a href='../S/2812.html#L632'>s</a> 632 src/exec.c setcerr(203, s = pr2str(sys->cpu->pr)); /* Stack Pointer (SP) - stack underflow */</span> <span class='curline'><a href='../S/2812.html#L633'>s</a> 633 src/exec.c FREE(s);</span> <span class='curline'><a href='../S/2812.html#L681'>s</a> 681 src/exec.c char *s = NULL;</span> <span class='curline'><a href='../S/2812.html#L715'>s</a> 715 src/exec.c setcerr(201, s = pr2str(sys->cpu->pr)); /* Program Register (PR) - memory overflow */</span> <span class='curline'><a href='../S/2812.html#L720'>s</a> 720 src/exec.c setcerr(202, s = pr2str(sys->cpu->pr)); /* Stack Pointer (SP) - stack overflow */</span> <span class='curline'><a href='../S/2812.html#L726'>s</a> 726 src/exec.c setcerr(204, s = pr2str(sys->cpu->pr)); /* OP in word #1 - not command code */</span> <span class='curline'><a href='../S/2812.html#L750'>s</a> 750 src/exec.c FREE(s);</span> <span class='curline'><a href='../S/2830.html#L13'>s</a> 13 src/hash.c for(int j = 0; keyv[i]->val.s[j]; j++) {</span> <span class='curline'><a href='../S/2830.html#L14'>s</a> 14 src/hash.c hashval = keyv[i]->val.s[j] + HASHNUM * hashval;</span> <span class='curline'><a href='../S/2836.html#L56'>s</a> 56 src/label.c key->val.s = strdup_chk(value, "label_hashkey->value");</span> <span class='curline'><a href='../S/2836.html#L72'>s</a> 72 src/label.c FREE(keys[j]->val.s);</span> <span class='curline'><a href='../S/2836.html#L137'>s</a> 137 src/label.c int s = 0;</span> <span class='curline'><a href='../S/2836.html#L145'>s</a> 145 src/label.c l[s++] = p->label;</span> <span class='curline'><a href='../S/2836.html#L148'>s</a> 148 src/label.c qsort(l, s, sizeof(*l), compare_adr);</span> <span class='curline'><a href='../S/2836.html#L149'>s</a> 149 src/label.c for(int i = 0; i < s; i++) {</span> <span class='curline'><a href='../S/2856.html#L96'>s</a> 96 src/struct.c keys[0]->val.s = strdup_chk(cmd, "keys[0].val.s");</span> <span class='curline'><a href='../S/2856.html#L103'>s</a> 103 src/struct.c FREE(keys[0]->val.s);</span> <span class='curline'><a href='../S/2828.html#L107'>s</a> 107 src/word.c char *s = malloc_chk(MAXLEN + 1, "word2n.n");</span> <span class='curline'><a href='../S/2828.html#L112'>s</a> 112 src/word.c s[d++] = word % 10 + '0';</span> <span class='curline'><a href='../S/2828.html#L114'>s</a> 114 src/word.c s[d] = '\0';</span> <span class='curline'><a href='../S/2828.html#L115'>s</a> 115 src/word.c t = strrev(s);</span> <span class='curline'><a href='../S/2828.html#L116'>s</a> 116 src/word.c FREE(s);</span> <span class='curline'><a href='../S/954.html#L16'>s</a> 16 test/unit/hash/cmd.c keys[i]->val.s = strdup(str[i]);</span> <span class='curline'><a href='../S/954.html#L47'>s</a> 47 test/unit/hash/cmd.c keys[cnt++]->val.s = strdup(str[i]);</span> <span class='curline'><a href='../S/962.html#L5'>s</a> 5 test/unit/strip_casl2_comment/cmd.c char s[][50] = {</span> <span class='curline'><a href='../S/962.html#L14'>s</a> 14 test/unit/strip_casl2_comment/cmd.c for(size_t i = 0; i < sizeof(s) / sizeof(s[0]); i++) {</span> <span class='curline'><a href='../S/962.html#L15'>s</a> 15 test/unit/strip_casl2_comment/cmd.c printf("%s::\n", strip_casl2_comment(s[i]));</span> <span class='curline'><a href='../S/980.html#L5'>s</a> 5 test/unit/strip_end/cmd.c char s[][10] = {"abc\n", "abc ", "abc\t", "abc\t\n", "abc"};</span> <span class='curline'><a href='../S/980.html#L7'>s</a> 7 test/unit/strip_end/cmd.c for(size_t i = 0; i < sizeof(s) / sizeof(s[0]); i++) {</span> <span class='curline'><a href='../S/980.html#L8'>s</a> 8 test/unit/strip_end/cmd.c printf("%s:\n", strip_end(s[i]));</span> </pre> </body> </html>