| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/bash/src/builtins/printf.def |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | extern time_t shell_start_time; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | static void printf_erange (char *); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | static int printstr (char *, char *, int, int, int); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | static int tescape (char *, char *, int *, int *); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | static char *bexpand (char *, int, int *, int *); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | static char *vbadd (char *, int); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | static int vbprintf (const char *, ...) __attribute__((__format__ (printf, 1, 2))); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | static char *mklong (char *, char *, size_t); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | static int getchr (void); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | static char *getstr (void); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | static int getint (void); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | static intmax_t getintmax (void); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | static uintmax_t getuintmax (void); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | static SHELL_VAR *bind_printf_variable (char *, char *, int); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | typedef long double floatmax_t; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | static floatmax_t getfloatmax (void); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | static intmax_t asciicode (void); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | static WORD_LIST *garglist; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | static int retval; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | static int conversion_error; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | static int vflag = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | static char *vbuf, *vname; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | static size_t vbsize; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | static int vblen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | static intmax_t tw; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | static char *conv_buf; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | static size_t conv_bufsize; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | int | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | printf_builtin (list) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | WORD_LIST *list; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | int ch, fieldwidth, precision; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | int have_fieldwidth, have_precision; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | char convch, thisch, nextch, *format, *modstart, *fmt, *start; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | char mbch[25]; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | int mbind, mblen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | conversion_error = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | retval = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | vflag = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | reset_internal_getopt (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | while ((
| 3025-29084 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | switch (ch) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | case executed 3025 times by 1 test: 'v':case 'v':Executed by:
executed 3025 times by 1 test: case 'v':Executed by:
| 3025 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | vname = list_optarg; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | if (legal_identifier (vname)
| 1-3022 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | vflag = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | if (vbsize == 0
| 21-3003 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | vbuf = sh_xmalloc((vbsize = 16), "./printf.def", 271); executed 21 times by 1 test: vbuf = sh_xmalloc((vbsize = 16), "./printf.def", 271);Executed by:
| 21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | vblen = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | if (vbuf
| 0-3024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | vbuf[0] = 0; executed 3024 times by 1 test: vbuf[0] = 0;Executed by:
| 3024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | } executed 3024 times by 1 test: end of blockExecuted by:
| 3024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | sh_invalidid (vname); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | return executed 1 time by 1 test: (258);return (258);Executed by:
executed 1 time by 1 test: return (258);Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | break; executed 3024 times by 1 test: break;Executed by:
| 3024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | case never executed: -99:case -99:never executed: builtin_help (); returncase -99:never executed: (258);return (258);never executed: return (258); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | default never executed: :default:never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | builtin_usage (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | return never executed: (258);return (258);never executed: return (258); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | list = loptend; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | if (list == 0
| 8-29076 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | builtin_usage (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | return executed 8 times by 1 test: (258);return (258);Executed by:
executed 8 times by 1 test: return (258);Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | if (vflag
| 0-26052 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | SHELL_VAR *v; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | v = bind_printf_variable (vname, "", 0); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | stupidly_hack_special_variables (vname); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | return executed 5 times by 1 test: ((v == 0 || ((((v)->attributes) & (0x0000002))) || ((((v)->attributes) & (0x0004000)))) ? 1 : 0);return ((v == 0 || ((((v)->attributes) & (0x0000002))) || ((((v)->attributes) & (0x0004000)))) ? 1 : 0);Executed by:
executed 5 times by 1 test: return ((v == 0 || ((((v)->attributes) & (0x0000002))) || ((((v)->attributes) & (0x0004000)))) ? 1 : 0);Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | if (list->word->word == 0
| 0-29071 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | return executed 8 times by 1 test: (0);return (0);Executed by:
executed 8 times by 1 test: return (0);Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | format = list->word->word; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | tw = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | garglist = list->next; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | if (format == 0
| 0-29063 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | return never executed: (0);return (0);never executed: return (0); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | do | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | tw = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | for (fmt = format; *
| 30011-114688 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | precision = fieldwidth = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | have_fieldwidth = have_precision = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | if (*
| 14517-100171 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | fmt++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | memset (mbch, '\0', sizeof (mbch)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | fmt += tescape (fmt, mbch, &mblen, (int *) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | for (mbind = 0; mbind < mblen
| 14517-15520 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | do { char b[2]; tw++; b[0] = mbch[mbind]; b[1] = '\0'; if (vflag
executed 3984 times by 1 test: else putchar (mbch[mbind]);vbadd (b, 1);Executed by:
executed 11536 times by 1 test: do { if (terminating_signalputchar (mbch[mbind]);Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); }throw_to_top_level ();executed 15520 times by 1 test: while (0);end of blockExecuted by:
| 0-15520 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | fmt--; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | continue; executed 14517 times by 1 test: continue;Executed by:
| 14517 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | if (*
| 19194-80977 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | do { char b[2]; tw++; b[0] = *fmt; b[1] = '\0'; if (vflag
executed 1850 times by 1 test: else putchar (*fmt);vbadd (b, 1);Executed by:
executed 79127 times by 1 test: do { if (terminating_signalputchar (*fmt);Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); } while (0);throw_to_top_level (); | 0-80977 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | continue; executed 80977 times by 1 test: continue;Executed by:
| 80977 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 190 | start = fmt++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 192 | if (*
| 7-19187 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 193 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 194 | do { char b[2]; tw++; b[0] = '%'; b[1] = '\0'; if (vflag
executed 3 times by 1 test: else putchar ('%');vbadd (b, 1);Executed by:
executed 4 times by 1 test: do { if (terminating_signalputchar ('%');Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); } while (0);throw_to_top_level (); | 0-7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 195 | continue; executed 7 times by 1 test: continue;Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 196 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 197 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 198 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 199 | for (; *
| 0-326974 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 200 | (
| 0-326974 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 201 | *fmt
| 0-326974 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 202 | )
| 0-326974 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 203 | "#'-+ 0"
| 0-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 204 | )
| 0-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 205 | *fmt
| 0-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 206 | ) == '\0'
| 0-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 207 | "#'-+ 0"
| 19187-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 208 | ,
| 19187-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 209 | *fmt
| 19187-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 210 | ) : __builtin_strchr (
| 19187-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 211 | "#'-+ 0"
| 19187-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 212 | ,
| 19187-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 213 | *fmt
| 19187-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 214 | )))
| 19187-307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 215 | ; ++fmt) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 216 | ; executed 307787 times by 1 test: ;Executed by:
| 307787 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 217 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 218 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 219 | if (*
| 50-19137 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 220 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 221 | fmt++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 222 | have_fieldwidth = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 223 | fieldwidth = getint (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 224 | } executed 50 times by 1 test: end of blockExecuted by:
| 50 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 225 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 226 | while (((*
| 200-25749 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 227 | fmt++; executed 6812 times by 1 test: fmt++;Executed by:
| 6812 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 228 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 229 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 230 | if (*
| 203-18984 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 231 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 232 | ++fmt; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 233 | if (*
| 30-173 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 234 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 235 | fmt++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 236 | have_precision = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 237 | precision = getint (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 238 | } executed 30 times by 1 test: end of blockExecuted by:
| 30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 239 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 240 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 241 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 242 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 243 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 244 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 245 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 246 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 247 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 248 | if (*
| 0-173 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 249 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 250 | fmt++; never executed: fmt++; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 251 | while (((*
| 2-356 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 252 | fmt++; executed 185 times by 1 test: fmt++;Executed by:
| 185 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 253 | } executed 173 times by 1 test: end of blockExecuted by:
| 173 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 254 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 255 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 256 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 257 | modstart = fmt; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 258 | while (*
| 5-19214 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 259 | (
| 0-19214 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 260 | *fmt
| 0-19214 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 261 | )
| 0-19214 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 262 | "hjlLtz"
| 0-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 263 | )
| 0-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 264 | *fmt
| 0-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 265 | ) == '\0'
| 0-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 266 | "hjlLtz"
| 32-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 267 | ,
| 32-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 268 | *fmt
| 32-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 269 | ) : __builtin_strchr (
| 32-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 270 | "hjlLtz"
| 32-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 271 | ,
| 32-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 272 | *fmt
| 32-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 273 | )))
| 32-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 274 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 275 | fmt++; executed 32 times by 1 test: fmt++;Executed by:
| 32 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 276 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 277 | if (*
| 5-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 278 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 279 | builtin_error ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 280 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 281 | "`%s': missing format character" | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 282 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 283 | , start); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 284 | do { do { if (terminating_signal
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (vflagthrow_to_top_level ();
never executed: (1);return (1);never executed: }return (1);executed 2 times by 1 test: if (conv_bufsize > 4096end of blockExecuted by:
never executed: if (vbsize > 4096end of block
never executed: else if (vbufend of block
executed 5 times by 1 test: if (ferror (vbuf[0] = 0;Executed by:
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 285 | stdout
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 286 | ) == 0
executed 5 times by 1 test: fflush ( stdout );Executed by:
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 287 | stdout executed 5 times by 1 test: fflush ( stdout );Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 288 | ); executed 5 times by 1 test: do { if (terminating_signalfflush ( stdout );Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 289 | stdout
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 290 | )
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 291 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 292 | ); return never executed: (1);return (1);never executed: } returnreturn (1);executed 5 times by 1 test: (1);return (1);Executed by:
executed 5 times by 1 test: } while (0);return (1);Executed by:
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 293 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 294 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 295 | convch = *fmt; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 296 | thisch = modstart[0]; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 297 | nextch = modstart[1]; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 298 | modstart[0] = convch; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 299 | modstart[1] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 300 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 301 | do { if (terminating_signal
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0);throw_to_top_level (); | 0-19182 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 302 | switch(convch) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 303 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 304 | case executed 7 times by 1 test: 'c':case 'c':Executed by:
executed 7 times by 1 test: case 'c':Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 305 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 306 | char p; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 307 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 308 | p = getchr (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 309 | do { int nw; clearerr ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 310 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 311 | ); if (have_fieldwidth
never executed: else if (have_fieldwidthnw = vflag ? vbprintf (start, fieldwidth, precision, p) : printf (start, fieldwidth, precision, p);
never executed: else if (have_precisionnw = vflag ? vbprintf (start, fieldwidth, p) : printf (start, fieldwidth, p);
never executed: else nw = vflagnw = vflag ? vbprintf (start, precision, p) : printf (start, precision, p);
executed 7 times by 1 test: tw += nw; do { if (terminating_signalnw = vflag ? vbprintf (start, p) : printf (start, p);Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 312 | stdout
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 313 | )
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 314 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 315 | ); return never executed: (1);return (1);never executed: } } while (0);return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 316 | break; executed 7 times by 1 test: break;Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 317 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 318 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 319 | case executed 11238 times by 1 test: 's':case 's':Executed by:
executed 11238 times by 1 test: case 's':Executed by:
| 11238 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 320 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 321 | char *p; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 322 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 323 | p = getstr (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 324 | do { int nw; clearerr ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 325 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 326 | ); if (have_fieldwidth
executed 5 times by 1 test: else if (have_fieldwidthnw = vflag ? vbprintf (start, fieldwidth, precision, p) : printf (start, fieldwidth, precision, p);Executed by:
executed 5 times by 1 test: else if (have_precisionnw = vflag ? vbprintf (start, fieldwidth, p) : printf (start, fieldwidth, p);Executed by:
executed 5 times by 1 test: else nw = vflagnw = vflag ? vbprintf (start, precision, p) : printf (start, precision, p);Executed by:
executed 11223 times by 1 test: tw += nw; do { if (terminating_signalnw = vflag ? vbprintf (start, p) : printf (start, p);Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0-11238 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 327 | stdout
| 0-11238 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 328 | )
| 0-11238 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 329 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 330 | ); return never executed: (1);return (1);never executed: } } while (0);return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 331 | break; executed 11238 times by 1 test: break;Executed by:
| 11238 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 332 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 333 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 334 | case executed 19 times by 1 test: '(':case '(':Executed by:
executed 19 times by 1 test: case '(':Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 335 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 336 | char *timefmt, timebuf[128], *t; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 337 | int n; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 338 | intmax_t arg; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 339 | time_t secs; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 340 | struct tm *tm; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 341 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 342 | modstart[1] = nextch; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 343 | timefmt = sh_xmalloc((strlen (fmt) + 3), "./printf.def", 456); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 344 | fmt++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 345 | for (t = timefmt, n = 1; *
| 0-186 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 346 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 347 | if (*
| 1-185 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 348 | n++; executed 1 time by 1 test: n++;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 349 | else if (*
| 20-165 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 350 | n--; executed 20 times by 1 test: n--;Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 351 | if (n == 0
| 19-167 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 352 | break; executed 19 times by 1 test: break;Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 353 | *t++ = *fmt++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 354 | } executed 167 times by 1 test: end of blockExecuted by:
| 167 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 355 | *t = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 356 | if (*++
| 2-17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 357 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 358 | builtin_warning ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 359 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 360 | "`%c': invalid time format specification" | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 361 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 362 | , *fmt); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 363 | fmt = start; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 364 | sh_xfree((timefmt), "./printf.def", 473); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 365 | do { char b[2]; tw++; b[0] = *fmt; b[1] = '\0'; if (vflag
never executed: else putchar (*fmt);vbadd (b, 1);executed 2 times by 1 test: do { if (terminating_signalputchar (*fmt);Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); } while (0);throw_to_top_level (); | 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 366 | continue; executed 2 times by 1 test: continue;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 367 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 368 | if (timefmt[0] == '\0'
| 2-15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 369 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 370 | timefmt[0] = '%'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 371 | timefmt[1] = 'X'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 372 | timefmt[2] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 373 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 374 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 375 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 376 | arg = garglist
| 1-16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 377 | if (arg == -1
| 3-14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 378 | secs = ((time_t) time ((time_t *) 0)); executed 3 times by 1 test: secs = ((time_t) time ((time_t *) 0));Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 379 | else if (arg == -2
| 1-13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 380 | secs = shell_start_time; executed 1 time by 1 test: secs = shell_start_time;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 381 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 382 | secs = arg; executed 13 times by 1 test: secs = arg;Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 383 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 384 | sv_tz ("TZ"); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 385 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 386 | tm = localtime (&secs); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 387 | if (tm == 0
| 0-17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 388 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 389 | secs = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 390 | tm = localtime (&secs); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 391 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 392 | n = tm
| 0-17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 393 | sh_xfree((timefmt), "./printf.def", 502); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 394 | if (n == 0
| 0-17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 395 | timebuf[0] = '\0'; never executed: timebuf[0] = '\0'; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 396 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 397 | timebuf[sizeof(timebuf) - 1] = '\0'; executed 17 times by 1 test: timebuf[sizeof(timebuf) - 1] = '\0';Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 398 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 399 | modstart[0] = 's'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 400 | modstart[1] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 401 | n = printstr (start, timebuf, strlen (timebuf), fieldwidth, precision); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 402 | if (n < 0
| 0-17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 403 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 404 | if (ferror (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 405 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 406 | ) == 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 407 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 408 | sh_wrerror (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 409 | clearerr ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 410 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 411 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 412 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 413 | do { do { if (terminating_signal
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (vflagthrow_to_top_level ();
never executed: (1);return (1);never executed: }return (1);never executed: if (conv_bufsize > 4096end of block
never executed: if (vbsize > 4096end of block
never executed: else if (vbufend of block
never executed: if (ferror (vbuf[0] = 0;
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 414 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 415 | ) == 0
never executed: fflush ( stdout ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 416 | stdout never executed: fflush ( stdout ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 417 | ); never executed: do { if (terminating_signalfflush ( stdout );
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 418 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 419 | )
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 420 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 421 | ); return never executed: (1);return (1);never executed: } returnreturn (1);never executed: (1);return (1);never executed: } while (0);return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 422 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 423 | break; executed 17 times by 1 test: break;Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 424 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 425 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 426 | case executed 3 times by 1 test: 'n':case 'n':Executed by:
executed 3 times by 1 test: case 'n':Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 427 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 428 | char *var; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 429 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 430 | var = getstr (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 431 | if (var
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 432 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 433 | if (legal_identifier (var)
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 434 | bind_var_to_int (var, tw); executed 3 times by 1 test: bind_var_to_int (var, tw);Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 435 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 436 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 437 | sh_invalidid (var); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 438 | do { do { if (terminating_signal
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (vflagthrow_to_top_level ();
never executed: (1);return (1);never executed: }return (1);never executed: if (conv_bufsize > 4096end of block
never executed: if (vbsize > 4096end of block
never executed: else if (vbufend of block
never executed: if (ferror (vbuf[0] = 0;
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 439 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 440 | ) == 0
never executed: fflush ( stdout ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 441 | stdout never executed: fflush ( stdout ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 442 | ); never executed: do { if (terminating_signalfflush ( stdout );
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 443 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 444 | )
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 445 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 446 | ); return never executed: (1);return (1);never executed: } returnreturn (1);never executed: (1);return (1);never executed: } while (0);return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 447 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 448 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 449 | break; executed 3 times by 1 test: break;Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 450 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 451 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 452 | case executed 180 times by 1 test: 'b':case 'b':Executed by:
executed 180 times by 1 test: case 'b':Executed by:
| 180 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 453 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 454 | char *p, *xp; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 455 | int rlen, r; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 456 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 457 | p = getstr (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 458 | ch = rlen = r = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 459 | xp = bexpand (p, strlen (p), &ch, &rlen); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 460 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 461 | if (xp
| 0-180 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 462 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 463 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 464 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 465 | r = printstr (start, xp, rlen, fieldwidth, precision); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 466 | if (r < 0
| 0-180 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 467 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 468 | if (ferror (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 469 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 470 | ) == 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 471 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 472 | sh_wrerror (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 473 | clearerr ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 474 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 475 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 476 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 477 | retval = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 478 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 479 | sh_xfree((xp), "./printf.def", 564); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 480 | } executed 180 times by 1 test: end of blockExecuted by:
| 180 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 481 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 482 | if (ch
| 0-175 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 483 | do { do { if (terminating_signal
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (vflagthrow_to_top_level ();
never executed: (1);return (1);never executed: }return (1);executed 2 times by 1 test: if (conv_bufsize > 4096end of blockExecuted by:
never executed: if (vbsize > 4096end of block
never executed: else if (vbufend of block
executed 5 times by 1 test: if (ferror (vbuf[0] = 0;Executed by:
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 484 | stdout
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 485 | ) == 0
executed 5 times by 1 test: fflush ( stdout );Executed by:
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 486 | stdout executed 5 times by 1 test: fflush ( stdout );Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 487 | ); executed 5 times by 1 test: do { if (terminating_signalfflush ( stdout );Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 488 | stdout
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 489 | )
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 490 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 491 | ); return never executed: (1);return (1);never executed: } returnreturn (1);executed 5 times by 1 test: (retval);return (retval);Executed by:
executed 5 times by 1 test: }return (retval);Executed by:
never executed: while (0);end of block | 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 492 | break; executed 175 times by 1 test: break;Executed by:
| 175 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 493 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 494 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 495 | case executed 722 times by 1 test: 'q':case 'q':Executed by:
executed 722 times by 1 test: case 'q':Executed by:
| 722 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 496 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 497 | char *p, *xp; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 498 | int r; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 499 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 500 | r = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 501 | p = getstr (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 502 | if (p
| 0-722 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 503 | xp = (char *)strcpy (sh_xmalloc((1 + strlen ("''")), "./printf.def", 580), ("''")); executed 4 times by 1 test: xp = (char *)strcpy (sh_xmalloc((1 + strlen ("''")), "./printf.def", 580), ("''"));Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 504 | else if (ansic_shouldquote (p)
| 177-541 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 505 | xp = ansic_quote (p, 0, (int *)0); executed 177 times by 1 test: xp = ansic_quote (p, 0, (int *)0);Executed by:
| 177 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 506 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 507 | xp = sh_backslash_quote (p, 0, 3); executed 541 times by 1 test: xp = sh_backslash_quote (p, 0, 3);Executed by:
| 541 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 508 | if (xp
| 0-722 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 509 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 510 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 511 | r = printstr (start, xp, strlen (xp), fieldwidth, precision); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 512 | if (r < 0
| 0-722 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 513 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 514 | sh_wrerror (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 515 | clearerr ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 516 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 517 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 518 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 519 | sh_xfree((xp), "./printf.def", 594); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 520 | } executed 722 times by 1 test: end of blockExecuted by:
| 722 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 521 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 522 | if (r < 0
| 0-722 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 523 | do { do { if (terminating_signal
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (vflagthrow_to_top_level ();
never executed: (1);return (1);never executed: }return (1);never executed: if (conv_bufsize > 4096end of block
never executed: if (vbsize > 4096end of block
never executed: else if (vbufend of block
never executed: if (ferror (vbuf[0] = 0;
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 524 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 525 | ) == 0
never executed: fflush ( stdout ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 526 | stdout never executed: fflush ( stdout ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 527 | ); never executed: do { if (terminating_signalfflush ( stdout );
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 528 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 529 | )
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 530 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 531 | ); return never executed: (1);return (1);never executed: } returnreturn (1);never executed: (1);return (1);never executed: }return (1);never executed: while (0);end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 532 | break; executed 722 times by 1 test: break;Executed by:
| 722 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 533 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 534 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 535 | case executed 5151 times by 1 test: 'd':case 'd':Executed by:
executed 5151 times by 1 test: case 'd':Executed by:
| 5151 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 536 | case executed 24 times by 1 test: 'i':case 'i':Executed by:
executed 24 times by 1 test: case 'i':Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 537 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 538 | char *f; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 539 | long p; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 540 | intmax_t pp; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 541 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 542 | p = pp = getintmax (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 543 | if (p != pp
| 0-5175 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 544 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 545 | f = mklong (start, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 546 | "l" "d" | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 547 | , sizeof ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 548 | "l" "d" | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 549 | ) - 2); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 550 | do { int nw; clearerr ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 551 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 552 | ); if (have_fieldwidth
never executed: else if (have_fieldwidthnw = vflag ? vbprintf (f, fieldwidth, precision, pp) : printf (f, fieldwidth, precision, pp);
never executed: else if (have_precisionnw = vflag ? vbprintf (f, fieldwidth, pp) : printf (f, fieldwidth, pp);
never executed: else nw = vflagnw = vflag ? vbprintf (f, precision, pp) : printf (f, precision, pp);
never executed: tw += nw; do { if (terminating_signalnw = vflag ? vbprintf (f, pp) : printf (f, pp);
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 553 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 554 | )
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 555 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 556 | ); return never executed: (1);return (1);never executed: } } while (0);return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 557 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 558 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 559 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 560 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 561 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 562 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 563 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 564 | f = mklong (start, "l", 1); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 565 | do { int nw; clearerr ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 566 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 567 | ); if (have_fieldwidth
never executed: else if (have_fieldwidthnw = vflag ? vbprintf (f, fieldwidth, precision, p) : printf (f, fieldwidth, precision, p);
executed 10 times by 1 test: else if (have_precisionnw = vflag ? vbprintf (f, fieldwidth, p) : printf (f, fieldwidth, p);Executed by:
never executed: else nw = vflagnw = vflag ? vbprintf (f, precision, p) : printf (f, precision, p);
executed 5165 times by 1 test: tw += nw; do { if (terminating_signalnw = vflag ? vbprintf (f, p) : printf (f, p);Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0-5175 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 568 | stdout
| 0-5175 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 569 | )
| 0-5175 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 570 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 571 | ); return never executed: (1);return (1);never executed: } } while (0);return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 572 | } executed 5175 times by 1 test: end of blockExecuted by:
| 5175 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 573 | break; executed 5175 times by 1 test: break;Executed by:
| 5175 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 574 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 575 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 576 | case executed 37 times by 1 test: 'o':case 'o':Executed by:
executed 37 times by 1 test: case 'o':Executed by:
| 37 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 577 | case executed 30 times by 1 test: 'u':case 'u':Executed by:
executed 30 times by 1 test: case 'u':Executed by:
| 30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 578 | case executed 1442 times by 1 test: 'x':case 'x':Executed by:
executed 1442 times by 1 test: case 'x':Executed by:
| 1442 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 579 | case executed 154 times by 1 test: 'X':case 'X':Executed by:
executed 154 times by 1 test: case 'X':Executed by:
| 154 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 580 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 581 | char *f; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 582 | unsigned long p; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 583 | uintmax_t pp; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 584 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 585 | p = pp = getuintmax (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 586 | if (p != pp
| 0-1663 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 587 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 588 | f = mklong (start, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 589 | "l" "d" | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 590 | , sizeof ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 591 | "l" "d" | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 592 | ) - 2); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 593 | do { int nw; clearerr ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 594 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 595 | ); if (have_fieldwidth
never executed: else if (have_fieldwidthnw = vflag ? vbprintf (f, fieldwidth, precision, pp) : printf (f, fieldwidth, precision, pp);
never executed: else if (have_precisionnw = vflag ? vbprintf (f, fieldwidth, pp) : printf (f, fieldwidth, pp);
never executed: else nw = vflagnw = vflag ? vbprintf (f, precision, pp) : printf (f, precision, pp);
never executed: tw += nw; do { if (terminating_signalnw = vflag ? vbprintf (f, pp) : printf (f, pp);
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 596 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 597 | )
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 598 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 599 | ); return never executed: (1);return (1);never executed: } } while (0);return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 600 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 601 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 602 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 603 | f = mklong (start, "l", 1); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 604 | do { int nw; clearerr ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 605 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 606 | ); if (have_fieldwidth
never executed: else if (have_fieldwidthnw = vflag ? vbprintf (f, fieldwidth, precision, p) : printf (f, fieldwidth, precision, p);
never executed: else if (have_precisionnw = vflag ? vbprintf (f, fieldwidth, p) : printf (f, fieldwidth, p);
never executed: else nw = vflagnw = vflag ? vbprintf (f, precision, p) : printf (f, precision, p);
executed 1663 times by 1 test: tw += nw; do { if (terminating_signalnw = vflag ? vbprintf (f, p) : printf (f, p);Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0-1663 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 607 | stdout
| 0-1663 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 608 | )
| 0-1663 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 609 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 610 | ); return never executed: (1);return (1);never executed: } } while (0);return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 611 | } executed 1663 times by 1 test: end of blockExecuted by:
| 1663 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 612 | break; executed 1663 times by 1 test: break;Executed by:
| 1663 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 613 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 614 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 615 | case executed 20 times by 1 test: 'e':case 'e':Executed by:
executed 20 times by 1 test: case 'e':Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 616 | case executed 18 times by 1 test: 'E':case 'E':Executed by:
executed 18 times by 1 test: case 'E':Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 617 | case executed 81 times by 1 test: 'f':case 'f':Executed by:
executed 81 times by 1 test: case 'f':Executed by:
| 81 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 618 | case executed 8 times by 1 test: 'F':case 'F':Executed by:
executed 8 times by 1 test: case 'F':Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 619 | case executed 20 times by 1 test: 'g':case 'g':Executed by:
executed 20 times by 1 test: case 'g':Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 620 | case executed 18 times by 1 test: 'G':case 'G':Executed by:
executed 18 times by 1 test: case 'G':Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 621 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 622 | case never executed: 'a':case 'a':never executed: case 'a': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 623 | case never executed: 'A':case 'A':never executed: case 'A': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 624 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 625 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 626 | char *f; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 627 | floatmax_t p; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 628 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 629 | p = getfloatmax (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 630 | f = mklong (start, "L", sizeof("L") - 1); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 631 | do { int nw; clearerr ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 632 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 633 | ); if (have_fieldwidth
executed 15 times by 1 test: else if (have_fieldwidthnw = vflag ? vbprintf (f, fieldwidth, precision, p) : printf (f, fieldwidth, precision, p);Executed by:
never executed: else if (have_precisionnw = vflag ? vbprintf (f, fieldwidth, p) : printf (f, fieldwidth, p);
never executed: else nw = vflagnw = vflag ? vbprintf (f, precision, p) : printf (f, precision, p);
executed 150 times by 1 test: tw += nw; do { if (terminating_signalnw = vflag ? vbprintf (f, p) : printf (f, p);Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0-165 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 634 | stdout
| 0-165 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 635 | )
| 0-165 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 636 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 637 | ); return never executed: (1);return (1);never executed: } } while (0);return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 638 | break; executed 165 times by 1 test: break;Executed by:
| 165 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 639 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 640 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 641 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 642 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 643 | default executed 10 times by 1 test: :default:Executed by:
executed 10 times by 1 test: default:Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 644 | builtin_error ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 645 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 646 | "`%c': invalid format character" | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 647 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 648 | , convch); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 649 | do { do { if (terminating_signal
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (vflagthrow_to_top_level ();
never executed: (1);return (1);never executed: }return (1);executed 4 times by 1 test: if (conv_bufsize > 4096end of blockExecuted by:
never executed: if (vbsize > 4096end of block
never executed: else if (vbufend of block
executed 10 times by 1 test: if (ferror (vbuf[0] = 0;Executed by:
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 650 | stdout
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 651 | ) == 0
executed 10 times by 1 test: fflush ( stdout );Executed by:
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 652 | stdout executed 10 times by 1 test: fflush ( stdout );Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 653 | ); executed 10 times by 1 test: do { if (terminating_signalfflush ( stdout );Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 654 | stdout
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 655 | )
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 656 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 657 | ); return never executed: (1);return (1);never executed: } returnreturn (1);executed 10 times by 1 test: (1);return (1);Executed by:
executed 10 times by 1 test: } while (0);return (1);Executed by:
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 658 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 659 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 660 | modstart[0] = thisch; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 661 | modstart[1] = nextch; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 662 | } executed 19165 times by 1 test: end of blockExecuted by:
| 19165 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 663 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 664 | if (ferror (
| 0-30011 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 665 | stdout
| 0-30011 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 666 | )
| 0-30011 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 667 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 668 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 669 | do { do { if (terminating_signal
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (vflagthrow_to_top_level ();
never executed: (1);return (1);never executed: }return (1);never executed: if (conv_bufsize > 4096end of block
never executed: if (vbsize > 4096end of block
never executed: else if (vbufend of block
never executed: if (ferror (vbuf[0] = 0;
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 670 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 671 | ) == 0
never executed: fflush ( stdout ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 672 | stdout never executed: fflush ( stdout ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 673 | ); never executed: do { if (terminating_signalfflush ( stdout );
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 674 | stdout
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 675 | )
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 676 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 677 | ); return never executed: (1);return (1);never executed: } returnreturn (1);never executed: (1);return (1);never executed: } while (0);return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 678 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 679 | } executed 30011 times by 1 test: end of blockExecuted by:
| 30011 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 680 | while (garglist
| 12-29031 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 681 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 682 | if (conversion_error
| 10-29033 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 683 | retval = 1; executed 10 times by 1 test: retval = 1;Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 684 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 685 | do { do { if (terminating_signal
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (vflagthrow_to_top_level ();
executed 5 times by 1 test: (1);return (1);Executed by:
executed 5 times by 1 test: }return (1);Executed by:
executed 3006 times by 1 test: if (conv_bufsize > 4096end of blockExecuted by:
executed 3 times by 1 test: if (vbsize > 4096end of blockExecuted by:
never executed: else if (vbufend of block
executed 3778 times by 1 test: if (ferror (vbuf[0] = 0;Executed by:
| 0-29043 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 686 | stdout
| 0-29038 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 687 | ) == 0
executed 29038 times by 1 test: fflush ( stdout );Executed by:
| 0-29038 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 688 | stdout executed 29038 times by 1 test: fflush ( stdout );Executed by:
| 29038 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 689 | ); executed 29038 times by 1 test: do { if (terminating_signalfflush ( stdout );Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); if (ferror (throw_to_top_level ();
| 0-29038 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 690 | stdout
| 0-29038 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 691 | )
| 0-29038 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 692 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 693 | ); return never executed: (1);return (1);never executed: } returnreturn (1);executed 29038 times by 1 test: (retval);return (retval);Executed by:
executed 29038 times by 1 test: } while (0);return (retval);Executed by:
| 0-29038 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 694 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 695 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 696 | static void | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 697 | printf_erange (s) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 698 | char *s; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 699 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 700 | builtin_error ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 701 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 702 | "warning: %s: %s" | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 703 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 704 | , s, strerror( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 705 | 34 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 706 | )); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 707 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 708 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 709 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 710 | static int | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 711 | printstr (fmt, string, len, fieldwidth, precision) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 712 | char *fmt; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 713 | char *string; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 714 | int len; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 715 | int fieldwidth; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 716 | int precision; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 717 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 718 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 719 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 720 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 721 | int padlen, nc, ljust, i; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 722 | int fw, pr; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 723 | intmax_t mfw, mpr; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 724 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 725 | if (string == 0
| 0-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 726 | string = ""; never executed: string = ""; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 727 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 728 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 729 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 730 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 731 | if (*
| 0-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 732 | fmt++; executed 919 times by 1 test: fmt++;Executed by:
| 919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 733 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 734 | ljust = fw = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 735 | pr = -1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 736 | mfw = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 737 | mpr = -1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 738 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 739 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 740 | while ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 741 | (
| 0-931 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 742 | *fmt
| 0-931 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 743 | )
| 0-931 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 744 | "#'-+ 0"
| 0-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 745 | )
| 0-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 746 | *fmt
| 0-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 747 | ) == '\0'
| 0-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 748 | "#'-+ 0"
| 12-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 749 | ,
| 12-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 750 | *fmt
| 12-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 751 | ) : __builtin_strchr (
| 12-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 752 | "#'-+ 0"
| 12-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 753 | ,
| 12-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 754 | *fmt
| 12-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 755 | )))
| 12-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 756 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 757 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 758 | if (*
| 0-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 759 | ljust = 1; executed 12 times by 1 test: ljust = 1;Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 760 | fmt++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 761 | } executed 12 times by 1 test: end of blockExecuted by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 762 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 763 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 764 | if (*
| 15-904 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 765 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 766 | fmt++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 767 | fw = fieldwidth; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 768 | if (fw < 0
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 769 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 770 | fw = -fw; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 771 | ljust = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 772 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 773 | } executed 15 times by 1 test: end of blockExecuted by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 774 | else if (((*
| 10-894 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 775 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 776 | mfw = *fmt++ - '0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 777 | while (((*
| 22-57 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 778 | mfw = (mfw * 10) + (*fmt++ - '0'); executed 29 times by 1 test: mfw = (mfw * 10) + (*fmt++ - '0');Executed by:
| 29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 779 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 780 | fw = (mfw < 0
| 0-50 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 781 | } executed 50 times by 1 test: end of blockExecuted by:
| 50 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 782 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 783 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 784 | if (*
| 37-882 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 785 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 786 | fmt++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 787 | if (*
| 5-32 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 788 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 789 | fmt++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 790 | pr = precision; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 791 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 792 | else if (((*
| 0-32 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 793 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 794 | mpr = *fmt++ - '0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 795 | while (((*
| 0-39 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 796 | mpr = (mpr * 10) + (*fmt++ - '0'); executed 7 times by 1 test: mpr = (mpr * 10) + (*fmt++ - '0');Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 797 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 798 | pr = (mpr < 0
| 0-32 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 799 | } executed 32 times by 1 test: end of blockExecuted by:
| 32 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 800 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 801 | pr = 0; never executed: pr = 0; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 802 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 803 | nc = (pr >= 0
| 12-882 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 804 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 805 | padlen = fw - nc; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 806 | if (padlen < 0
| 87-832 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 807 | padlen = 0; executed 832 times by 1 test: padlen = 0;Executed by:
| 832 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 808 | if (ljust
| 17-902 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 809 | padlen = -padlen; executed 17 times by 1 test: padlen = -padlen;Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 810 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 811 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 812 | for (; padlen > 0
| 121-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 813 | do { char b[2]; tw++; b[0] = ' '; b[1] = '\0'; if (vflag
executed 48 times by 1 test: else putchar (' ');vbadd (b, 1);Executed by:
executed 73 times by 1 test: do { if (terminating_signalputchar (' ');Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); }throw_to_top_level ();executed 121 times by 1 test: while (0);end of blockExecuted by:
| 0-121 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 814 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 815 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 816 | for (i = 0; i < nc
| 919-5187 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 817 | do { char b[2]; tw++; b[0] = string[i]; b[1] = '\0'; if (vflag
executed 427 times by 1 test: else putchar (string[i]);vbadd (b, 1);Executed by:
executed 4760 times by 1 test: do { if (terminating_signalputchar (string[i]);Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); }throw_to_top_level ();executed 5187 times by 1 test: while (0);end of blockExecuted by:
| 0-5187 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 818 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 819 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 820 | for (; padlen < 0
| 64-919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 821 | do { char b[2]; tw++; b[0] = ' '; b[1] = '\0'; if (vflag
executed 14 times by 1 test: else putchar (' ');vbadd (b, 1);Executed by:
executed 50 times by 1 test: do { if (terminating_signalputchar (' ');Executed by:
never executed: if (interrupt_statetermsig_handler (terminating_signal);
never executed: } while (0); }throw_to_top_level ();executed 64 times by 1 test: while (0);end of blockExecuted by:
| 0-64 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 822 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 823 | return executed 919 times by 1 test: (ferror (return (ferror ( stdout ) ? -1 : 0);Executed by:
executed 919 times by 1 test: return (ferror ( stdout ) ? -1 : 0);Executed by:
| 919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 824 | stdout executed 919 times by 1 test: return (ferror ( stdout ) ? -1 : 0);Executed by:
| 919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 825 | ) ? -1 : 0); executed 919 times by 1 test: return (ferror ( stdout ) ? -1 : 0);Executed by:
| 919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 826 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 827 | static int | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 828 | tescape (estart, cp, lenp, sawc) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 829 | char *estart; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 830 | char *cp; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 831 | int *lenp, *sawc; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 832 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 833 | register char *p; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 834 | int temp, c, evalue; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 835 | unsigned long uvalue; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 836 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 837 | p = estart; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 838 | if (lenp
| 0-14673 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 839 | * executed 14673 times by 1 test: lenp = 1;*lenp = 1;Executed by:
executed 14673 times by 1 test: *lenp = 1;Executed by:
| 14673 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 840 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 841 | switch (c = *p++) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 842 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 843 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 844 | case executed 2 times by 1 test: 'a':case 'a':Executed by:
executed 2 times by 1 test: *cp = '\a'; break;case 'a':Executed by:
executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 845 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 846 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 847 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 848 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 849 | case executed 2 times by 1 test: 'b':case 'b':Executed by:
executed 2 times by 1 test: *cp = '\b'; break;case 'b':Executed by:
executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 850 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 851 | case executed 2 times by 1 test: 'e':case 'e':Executed by:
executed 2 times by 1 test: case 'e':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 852 | case never executed: 'E':case 'E':never executed: *cp = '\033'; break;case 'E':executed 2 times by 1 test: break;Executed by:
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 853 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 854 | case executed 2 times by 1 test: 'f':case 'f':Executed by:
executed 2 times by 1 test: *cp = '\f'; break;case 'f':Executed by:
executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 855 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 856 | case executed 11667 times by 1 test: 'n':case 'n':Executed by:
executed 11667 times by 1 test: *cp = '\n'; break;case 'n':Executed by:
executed 11667 times by 1 test: break;Executed by:
| 11667 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 857 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 858 | case executed 2 times by 1 test: 'r':case 'r':Executed by:
executed 2 times by 1 test: *cp = '\r'; break;case 'r':Executed by:
executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 859 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 860 | case executed 21 times by 1 test: 't':case 't':Executed by:
executed 21 times by 1 test: *cp = '\t'; break;case 't':Executed by:
executed 21 times by 1 test: break;Executed by:
| 21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 861 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 862 | case executed 2 times by 1 test: 'v':case 'v':Executed by:
executed 2 times by 1 test: *cp = '\v'; break;case 'v':Executed by:
executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 863 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 864 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 865 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 866 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 867 | case executed 41 times by 1 test: '0':case '0':Executed by:
executed 41 times by 1 test: casecase '0':Executed by:
executed 16 times by 1 test: '1':case '1':Executed by:
executed 16 times by 1 test: casecase '1':Executed by:
executed 3 times by 1 test: '2':case '2':Executed by:
executed 3 times by 1 test: casecase '2':Executed by:
executed 3 times by 1 test: '3':case '3':Executed by:
executed 3 times by 1 test: case '3':Executed by:
| 3-41 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 868 | case never executed: '4':case '4':never executed: casecase '4':never executed: '5':case '5':never executed: casecase '5':never executed: '6':case '6':never executed: casecase '6':executed 3 times by 1 test: '7':case '7':Executed by:
executed 3 times by 1 test: case '7':Executed by:
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 869 | evalue = ((c) - '0'); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 870 | for (temp = 2 + (!evalue && !!sawc); ((*
| 16-157 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 871 | evalue = (evalue * 8) + ((*p) - '0'); executed 121 times by 1 test: evalue = (evalue * 8) + ((*p) - '0');Executed by:
| 121 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 872 | *cp = evalue & 0xFF; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 873 | break; executed 66 times by 1 test: break;Executed by:
| 66 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 874 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 875 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 876 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 877 | case executed 17 times by 1 test: 'x':case 'x':Executed by:
executed 17 times by 1 test: case 'x':Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 878 | for (temp = 2, evalue = 0; (1 && | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 879 | ((*
| 7-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 880 | (unsigned char)(unsigned char)*p
| 7-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 881 | ))] & (unsigned short int) _ISxdigit)
| 7-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 882 | ) && temp--
| 10-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 883 | evalue = (evalue * 16) + (((*
executed 20 times by 1 test: evalue = (evalue * 16) + (((*p) >= 'a' && (*p) <= 'f') ? (*p)-'a'+10 : (*p) >= 'A' && (*p) <= 'F' ? (*p)-'A'+10 : (*p)-'0');Executed by:
| 0-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 884 | if (p == estart + 1
| 7-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 885 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 886 | builtin_error ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 887 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 888 | "missing hex digit for \\x" | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 889 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 890 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 891 | *cp = '\\'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 892 | return executed 7 times by 1 test: 0;return 0;Executed by:
executed 7 times by 1 test: return 0;Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 893 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 894 | *cp = evalue & 0xFF; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 895 | break; executed 10 times by 1 test: break;Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 896 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 897 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 898 | case executed 6 times by 1 test: 'u':case 'u':Executed by:
executed 6 times by 1 test: case 'u':Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 899 | case executed 1380 times by 1 test: 'U':case 'U':Executed by:
executed 1380 times by 1 test: case 'U':Executed by:
| 1380 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 900 | temp = (
| 6-1380 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 901 | for (uvalue = 0; (1 && | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 902 | ((*
| 1386-11054 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 903 | (unsigned char)(unsigned char)*p
| 1386-11054 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 904 | ))] & (unsigned short int) _ISxdigit)
| 1386-11054 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 905 | ) && temp--
| 0-11054 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 906 | uvalue = (uvalue * 16) + (((*
executed 11054 times by 1 test: uvalue = (uvalue * 16) + (((*p) >= 'a' && (*p) <= 'f') ? (*p)-'a'+10 : (*p) >= 'A' && (*p) <= 'F' ? (*p)-'A'+10 : (*p)-'0');Executed by:
| 0-11054 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 907 | if (p == estart + 1
| 0-1386 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 908 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 909 | builtin_error ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 910 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 911 | "missing unicode digit for \\%c" | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 912 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 913 | , c); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 914 | *cp = '\\'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 915 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 916 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 917 | if (uvalue <= 0x7f
| 380-1006 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 918 | * executed 380 times by 1 test: cp = uvalue;*cp = uvalue;Executed by:
executed 380 times by 1 test: *cp = uvalue;Executed by:
| 380 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 919 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 920 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 921 | temp = u32cconv (uvalue, cp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 922 | cp[temp] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 923 | if (lenp
| 0-1006 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 924 | * executed 1006 times by 1 test: lenp = temp;*lenp = temp;Executed by:
executed 1006 times by 1 test: *lenp = temp;Executed by:
| 1006 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 925 | } executed 1006 times by 1 test: end of blockExecuted by:
| 1006 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 926 | break; executed 1386 times by 1 test: break;Executed by:
| 1386 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 927 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 928 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 929 | case executed 1406 times by 1 test: '\\':case '\\':Executed by:
executed 1406 times by 1 test: case '\\':Executed by:
| 1406 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 930 | *cp = c; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 931 | break; executed 1406 times by 1 test: break;Executed by:
| 1406 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 932 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 933 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 934 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 935 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 936 | case executed 44 times by 1 test: '\'':case '\'':Executed by:
executed 44 times by 1 test: casecase '\'':Executed by:
executed 17 times by 1 test: '"':case '"':Executed by:
executed 17 times by 1 test: casecase '"':Executed by:
executed 3 times by 1 test: '?':case '?':Executed by:
executed 3 times by 1 test: case '?':Executed by:
| 3-44 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 937 | if (!sawc
| 26-38 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 938 | * executed 26 times by 1 test: cp = c;*cp = c;Executed by:
executed 26 times by 1 test: *cp = c;Executed by:
| 26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 939 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 940 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 941 | *cp = '\\'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 942 | return executed 38 times by 1 test: 0;return 0;Executed by:
executed 38 times by 1 test: return 0;Executed by:
| 38 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 943 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 944 | break; executed 26 times by 1 test: break;Executed by:
| 26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 945 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 946 | case executed 12 times by 1 test: 'c':case 'c':Executed by:
executed 12 times by 1 test: case 'c':Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 947 | if (sawc
| 5-7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 948 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 949 | *sawc = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 950 | break; executed 5 times by 1 test: break;Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 951 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 952 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 953 | default executed 22 times by 1 test: :default:Executed by:
executed 22 times by 1 test: default:Executed by:
code before this statement executed 7 times by 1 test: default:Executed by:
| 7-22 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 954 | *cp = '\\'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 955 | return executed 29 times by 1 test: 0;return 0;Executed by:
executed 29 times by 1 test: return 0;Executed by:
| 29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 956 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 957 | return executed 14599 times by 1 test: (p - estart);return (p - estart);Executed by:
executed 14599 times by 1 test: return (p - estart);Executed by:
| 14599 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 958 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 959 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 960 | static char * | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 961 | bexpand (string, len, sawc, lenp) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 962 | char *string; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 963 | int len, *sawc, *lenp; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 964 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 965 | int temp; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 966 | char *ret, *r, *s, c; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 967 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 968 | char mbch[25]; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 969 | int mbind, mblen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 970 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 971 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 972 | if (string == 0
| 0-180 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 973 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 974 | if (sawc
| 0-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 975 | * executed 18 times by 1 test: sawc = 0;*sawc = 0;Executed by:
executed 18 times by 1 test: *sawc = 0;Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 976 | if (lenp
| 0-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 977 | * executed 18 times by 1 test: lenp = 0;*lenp = 0;Executed by:
executed 18 times by 1 test: *lenp = 0;Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 978 | ret = (char *)sh_xmalloc((1), "./printf.def", 962); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 979 | ret[0] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 980 | return executed 18 times by 1 test: (ret);return (ret);Executed by:
executed 18 times by 1 test: return (ret);Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 981 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 982 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 983 | ret = (char *)sh_xmalloc((len + 1), "./printf.def", 967); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 984 | for (r = ret, s = string; s
| 0-1049 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 985 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 986 | c = *s++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 987 | if (c != '\\'
| 5-731 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 988 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 989 | *r++ = c; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 990 | continue; executed 736 times by 1 test: continue;Executed by:
| 736 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 991 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 992 | temp = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 993 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 994 | memset (mbch, '\0', sizeof (mbch)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 995 | s += tescape (s, mbch, &mblen, &temp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 996 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 997 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 998 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 999 | if (temp
| 5-151 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1000 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1001 | if (sawc
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1002 | * executed 5 times by 1 test: sawc = 1;*sawc = 1;Executed by:
executed 5 times by 1 test: *sawc = 1;Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1003 | break; executed 5 times by 1 test: break;Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1004 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1005 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1006 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1007 | for (mbind = 0; mbind < mblen
| 151 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1008 | * executed 151 times by 1 test: r++ = mbch[mbind];*r++ = mbch[mbind];Executed by:
executed 151 times by 1 test: *r++ = mbch[mbind];Executed by:
| 151 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1009 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1010 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1011 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1012 | } executed 151 times by 1 test: end of blockExecuted by:
| 151 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1013 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1014 | *r = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1015 | if (lenp
| 0-162 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1016 | * executed 162 times by 1 test: lenp = r - ret;*lenp = r - ret;Executed by:
executed 162 times by 1 test: *lenp = r - ret;Executed by:
| 162 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1017 | return executed 162 times by 1 test: ret;return ret;Executed by:
executed 162 times by 1 test: return ret;Executed by:
| 162 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1018 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1019 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1020 | static char * | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1021 | vbadd (buf, blen) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1022 | char *buf; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1023 | int blen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1024 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1025 | size_t nlen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1026 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1027 | nlen = vblen + blen + 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1028 | if (nlen >= vbsize
| 4-6322 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1029 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1030 | vbsize = ((nlen + 63) >> 6) << 6; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1031 | vbuf = (char *)sh_xrealloc((vbuf), (vbsize), "./printf.def", 1015); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1032 | } executed 4 times by 1 test: end of blockExecuted by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1033 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1034 | if (blen == 1
| 0-6326 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1035 | vbuf[vblen++] = buf[0]; executed 6326 times by 1 test: vbuf[vblen++] = buf[0];Executed by:
| 6326 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1036 | else if (blen > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1037 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1038 | __builtin_memcpy ((vbuf + vblen), (buf), (blen)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1039 | vblen += blen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1040 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1041 | vbuf[vblen] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1042 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1043 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1044 | if (strlen (vbuf) != vblen
| 0-6326 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1045 | internal_error ("printf:vbadd: vblen (%d) != strlen (vbuf) (%d)", vblen, (int)strlen (vbuf)); never executed: internal_error ("printf:vbadd: vblen (%d) != strlen (vbuf) (%d)", vblen, (int)strlen (vbuf)); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1046 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1047 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1048 | return executed 6326 times by 1 test: vbuf;return vbuf;Executed by:
executed 6326 times by 1 test: return vbuf;Executed by:
| 6326 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1049 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1050 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1051 | static int | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1052 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1053 | vbprintf (const char *format, ...) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1054 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1055 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1056 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1057 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1058 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1059 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1060 | va_list args; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1061 | size_t nlen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1062 | int blen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1063 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1064 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1065 | __builtin_va_start( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1066 | args | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1067 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1068 | format | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1069 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1070 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1071 | blen = vsnprintf (vbuf + vblen, vbsize - vblen, format, args); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1072 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1073 | __builtin_va_end( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1074 | args | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1075 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1076 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1077 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1078 | nlen = vblen + blen + 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1079 | if (nlen >= vbsize
| 2-1597 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1080 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1081 | vbsize = ((nlen + 63) >> 6) << 6; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1082 | vbuf = (char *)sh_xrealloc((vbuf), (vbsize), "./printf.def", 1056); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1083 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1084 | __builtin_va_start( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1085 | args | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1086 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1087 | format | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1088 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1089 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1090 | blen = vsnprintf (vbuf + vblen, vbsize - vblen, format, args); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1091 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1092 | __builtin_va_end( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1093 | args | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1094 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1095 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1096 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1097 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1098 | vblen += blen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1099 | vbuf[vblen] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1100 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1101 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1102 | if (strlen (vbuf) != vblen
| 0-1599 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1103 | internal_error ("printf:vbprintf: vblen (%d) != strlen (vbuf) (%d)", vblen, (int)strlen (vbuf)); never executed: internal_error ("printf:vbprintf: vblen (%d) != strlen (vbuf) (%d)", vblen, (int)strlen (vbuf)); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1104 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1105 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1106 | return executed 1599 times by 1 test: (blen);return (blen);Executed by:
executed 1599 times by 1 test: return (blen);Executed by:
| 1599 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1107 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1108 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1109 | static char * | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1110 | mklong (str, modifiers, mlen) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1111 | char *str; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1112 | char *modifiers; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1113 | size_t mlen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1114 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1115 | size_t len, slen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1116 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1117 | slen = strlen (str); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1118 | len = slen + mlen + 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1119 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1120 | if (len > conv_bufsize
| 206-6797 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1121 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1122 | conv_bufsize = (((len + 1023) >> 10) << 10); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1123 | conv_buf = (char *)sh_xrealloc((conv_buf), (conv_bufsize), "./printf.def", 1087); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1124 | } executed 206 times by 1 test: end of blockExecuted by:
| 206 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1125 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1126 | __builtin_memcpy ((conv_buf), (str), (slen - 1)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1127 | __builtin_memcpy ((conv_buf + slen - 1), (modifiers), (mlen)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1128 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1129 | conv_buf[len - 2] = str[slen - 1]; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1130 | conv_buf[len - 1] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1131 | return executed 7003 times by 1 test: (conv_buf);return (conv_buf);Executed by:
executed 7003 times by 1 test: return (conv_buf);Executed by:
| 7003 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1132 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1133 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1134 | static int | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1135 | getchr () | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1136 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1137 | int ret; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1138 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1139 | if (garglist == 0
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1140 | return never executed: ('\0');return ('\0');never executed: return ('\0'); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1141 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1142 | ret = (int)garglist->word->word[0]; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1143 | garglist = garglist->next; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1144 | return executed 7 times by 1 test: ret;return ret;Executed by:
executed 7 times by 1 test: return ret;Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1145 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1146 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1147 | static char * | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1148 | getstr () | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1149 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1150 | char *ret; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1151 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1152 | if (garglist == 0
| 22-12121 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1153 | return executed 22 times by 1 test: ("");return ("");Executed by:
executed 22 times by 1 test: return ("");Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1154 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1155 | ret = garglist->word->word; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1156 | garglist = garglist->next; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1157 | return executed 12121 times by 1 test: ret;return ret;Executed by:
executed 12121 times by 1 test: return ret;Executed by:
| 12121 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1158 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1159 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1160 | static int | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1161 | getint () | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1162 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1163 | intmax_t ret; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1164 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1165 | ret = getintmax (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1166 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1167 | if (garglist == 0
| 0-80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1168 | return never executed: ret;return ret;never executed: return ret; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1169 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1170 | if (ret > 0x7fffffff
| 0-80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1171 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1172 | printf_erange (garglist->word->word); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1173 | ret = 0x7fffffff; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1174 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1175 | else if (ret <
| 0-80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1176 | (-0x7fffffff - 1)
| 0-80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1177 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1178 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1179 | printf_erange (garglist->word->word); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1180 | ret = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1181 | (-0x7fffffff - 1) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1182 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1183 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1184 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1185 | return executed 80 times by 1 test: ((int)ret);return ((int)ret);Executed by:
executed 80 times by 1 test: return ((int)ret);Executed by:
| 80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1186 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1187 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1188 | static intmax_t | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1189 | getintmax () | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1190 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1191 | intmax_t ret; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1192 | char *ep; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1193 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1194 | if (garglist == 0
| 28-5243 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1195 | return executed 28 times by 1 test: (0);return (0);Executed by:
executed 28 times by 1 test: return (0);Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1196 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1197 | if (garglist->word->word[0] == '\''
| 5-5237 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1198 | return executed 11 times by 1 test: asciicode ();return asciicode ();Executed by:
executed 11 times by 1 test: return asciicode ();Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1199 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1200 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1201 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1202 | = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1203 | ret = strtoimax (garglist->word->word, &ep, 0); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1204 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1205 | if (*
| 5-5227 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1206 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1207 | sh_invalidnum (garglist->word->word); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1208 | conversion_error = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1209 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1210 | else if ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1211 | (*
| 0-5227 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1212 | ==
| 0-5227 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1213 | 34
| 0-5227 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1214 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1215 | printf_erange (garglist->word->word); never executed: printf_erange (garglist->word->word); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1216 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1217 | garglist = garglist->next; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1218 | return executed 5232 times by 1 test: (ret);return (ret);Executed by:
executed 5232 times by 1 test: return (ret);Executed by:
| 5232 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1219 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1220 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1221 | static uintmax_t | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1222 | getuintmax () | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1223 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1224 | uintmax_t ret; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1225 | char *ep; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1226 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1227 | if (garglist == 0
| 7-1656 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1228 | return executed 7 times by 1 test: (0);return (0);Executed by:
executed 7 times by 1 test: return (0);Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1229 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1230 | if (garglist->word->word[0] == '\''
| 10-1611 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1231 | return executed 55 times by 1 test: asciicode ();return asciicode ();Executed by:
executed 55 times by 1 test: return asciicode ();Executed by:
| 55 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1232 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1233 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1234 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1235 | = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1236 | ret = strtoumax (garglist->word->word, &ep, 0); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1237 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1238 | if (*
| 5-1596 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1239 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1240 | sh_invalidnum (garglist->word->word); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1241 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1242 | ret = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1243 | conversion_error = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1244 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1245 | else if ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1246 | (*
| 0-1596 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1247 | ==
| 0-1596 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1248 | 34
| 0-1596 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1249 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1250 | printf_erange (garglist->word->word); never executed: printf_erange (garglist->word->word); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1251 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1252 | garglist = garglist->next; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1253 | return executed 1601 times by 1 test: (ret);return (ret);Executed by:
executed 1601 times by 1 test: return (ret);Executed by:
| 1601 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1254 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1255 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1256 | static floatmax_t | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1257 | getfloatmax () | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1258 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1259 | floatmax_t ret; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1260 | char *ep; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1261 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1262 | if (garglist == 0
| 7-158 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1263 | return executed 7 times by 1 test: (0);return (0);Executed by:
executed 7 times by 1 test: return (0);Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1264 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1265 | if (garglist->word->word[0] == '\''
| 5-153 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1266 | return executed 10 times by 1 test: asciicode ();return asciicode ();Executed by:
executed 10 times by 1 test: return asciicode ();Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1267 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1268 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1269 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1270 | = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1271 | ret = strtold (garglist->word->word, &ep); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1272 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1273 | if (*
| 0-148 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1274 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1275 | sh_invalidnum (garglist->word->word); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1276 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1277 | ret = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1278 | conversion_error = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1279 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1280 | else if ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1281 | (*
| 0-148 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1282 | ==
| 0-148 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1283 | 34
| 0-148 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1284 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1285 | printf_erange (garglist->word->word); never executed: printf_erange (garglist->word->word); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1286 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1287 | garglist = garglist->next; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1288 | return executed 148 times by 1 test: (ret);return (ret);Executed by:
executed 148 times by 1 test: return (ret);Executed by:
| 148 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1289 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1290 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1291 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1292 | static intmax_t | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1293 | asciicode () | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1294 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1295 | register intmax_t ch; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1296 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1297 | wchar_t wc; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1298 | size_t slen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1299 | int mblength; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1300 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1301 | mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1302 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1303 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1304 | slen = strlen (garglist->word->word+1); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1305 | wc = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1306 | mblength = mbtowc (&wc, garglist->word->word+1, slen); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1307 | if (mblength > 0
| 0-76 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1308 | ch = wc; executed 76 times by 1 test: ch = wc;Executed by:
| 76 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1309 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1310 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1311 | ch = (unsigned char)garglist->word->word[1]; never executed: ch = (unsigned char)garglist->word->word[1]; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1312 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1313 | garglist = garglist->next; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1314 | return executed 76 times by 1 test: (ch);return (ch);Executed by:
executed 76 times by 1 test: return (ch);Executed by:
| 76 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1315 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1316 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1317 | static SHELL_VAR * | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1318 | bind_printf_variable (name, value, flags) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1319 | char *name; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1320 | char *value; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1321 | int flags; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1322 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1323 | SHELL_VAR *v; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1324 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1325 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1326 | if (valid_array_reference (name, assoc_expand_once) == 0
| 2-3022 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1327 | v = bind_variable (name, value, flags); executed 3022 times by 1 test: v = bind_variable (name, value, flags);Executed by:
| 3022 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1328 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1329 | v = assign_array_element (name, value, flags | (assoc_expand_once ? 0x0080 : 0)); executed 2 times by 1 test: v = assign_array_element (name, value, flags | (assoc_expand_once ? 0x0080 : 0));Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1330 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1331 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1332 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1333 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1334 | if (v
| 0-3014 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1335 | (( executed 3014 times by 1 test: v)->attributes &= ~(0x0001000));((v)->attributes &= ~(0x0001000));Executed by:
executed 3014 times by 1 test: ((v)->attributes &= ~(0x0001000));Executed by:
| 3014 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1336 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1337 | return executed 3024 times by 1 test: v;return v;Executed by:
executed 3024 times by 1 test: return v;Executed by:
| 3024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1338 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |