| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/pr.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||||||||
| 2 | - | |||||||||||||||||||||||||
| 3 | struct COLUMN; | - | ||||||||||||||||||||||||
| 4 | struct COLUMN | - | ||||||||||||||||||||||||
| 5 | { | - | ||||||||||||||||||||||||
| 6 | FILE *fp; | - | ||||||||||||||||||||||||
| 7 | char const *name; | - | ||||||||||||||||||||||||
| 8 | enum | - | ||||||||||||||||||||||||
| 9 | { | - | ||||||||||||||||||||||||
| 10 | OPEN, | - | ||||||||||||||||||||||||
| 11 | FF_FOUND, | - | ||||||||||||||||||||||||
| 12 | - | |||||||||||||||||||||||||
| 13 | ON_HOLD, | - | ||||||||||||||||||||||||
| 14 | CLOSED | - | ||||||||||||||||||||||||
| 15 | } | - | ||||||||||||||||||||||||
| 16 | status; | - | ||||||||||||||||||||||||
| 17 | - | |||||||||||||||||||||||||
| 18 | - | |||||||||||||||||||||||||
| 19 | - | |||||||||||||||||||||||||
| 20 | _Bool | - | ||||||||||||||||||||||||
| 21 | (*print_func) (struct COLUMN *); | - | ||||||||||||||||||||||||
| 22 | - | |||||||||||||||||||||||||
| 23 | - | |||||||||||||||||||||||||
| 24 | void (*char_func) (char); | - | ||||||||||||||||||||||||
| 25 | - | |||||||||||||||||||||||||
| 26 | int current_line; | - | ||||||||||||||||||||||||
| 27 | int lines_stored; | - | ||||||||||||||||||||||||
| 28 | int lines_to_print; | - | ||||||||||||||||||||||||
| 29 | int start_position; | - | ||||||||||||||||||||||||
| 30 | - | |||||||||||||||||||||||||
| 31 | _Bool | - | ||||||||||||||||||||||||
| 32 | numbered; | - | ||||||||||||||||||||||||
| 33 | - | |||||||||||||||||||||||||
| 34 | _Bool | - | ||||||||||||||||||||||||
| 35 | full_page_printed; | - | ||||||||||||||||||||||||
| 36 | - | |||||||||||||||||||||||||
| 37 | - | |||||||||||||||||||||||||
| 38 | - | |||||||||||||||||||||||||
| 39 | - | |||||||||||||||||||||||||
| 40 | - | |||||||||||||||||||||||||
| 41 | }; | - | ||||||||||||||||||||||||
| 42 | - | |||||||||||||||||||||||||
| 43 | typedef struct COLUMN COLUMN; | - | ||||||||||||||||||||||||
| 44 | - | |||||||||||||||||||||||||
| 45 | static int char_to_clump (char c); | - | ||||||||||||||||||||||||
| 46 | static | - | ||||||||||||||||||||||||
| 47 | _Bool | - | ||||||||||||||||||||||||
| 48 | read_line (COLUMN *p); | - | ||||||||||||||||||||||||
| 49 | static | - | ||||||||||||||||||||||||
| 50 | _Bool | - | ||||||||||||||||||||||||
| 51 | print_page (void); | - | ||||||||||||||||||||||||
| 52 | static | - | ||||||||||||||||||||||||
| 53 | _Bool | - | ||||||||||||||||||||||||
| 54 | print_stored (COLUMN *p); | - | ||||||||||||||||||||||||
| 55 | static | - | ||||||||||||||||||||||||
| 56 | _Bool | - | ||||||||||||||||||||||||
| 57 | open_file (char *name, COLUMN *p); | - | ||||||||||||||||||||||||
| 58 | static | - | ||||||||||||||||||||||||
| 59 | _Bool | - | ||||||||||||||||||||||||
| 60 | skip_to_page (uintmax_t page); | - | ||||||||||||||||||||||||
| 61 | static void print_header (void); | - | ||||||||||||||||||||||||
| 62 | static void pad_across_to (int position); | - | ||||||||||||||||||||||||
| 63 | static void add_line_number (COLUMN *p); | - | ||||||||||||||||||||||||
| 64 | static void getoptnum (const char *n_str, int min, int *num, | - | ||||||||||||||||||||||||
| 65 | const char *errfmt); | - | ||||||||||||||||||||||||
| 66 | static void getoptarg (char *arg, char switch_char, char *character, | - | ||||||||||||||||||||||||
| 67 | int *number); | - | ||||||||||||||||||||||||
| 68 | static void print_files (int number_of_files, char **av); | - | ||||||||||||||||||||||||
| 69 | static void init_parameters (int number_of_files); | - | ||||||||||||||||||||||||
| 70 | static void init_header (char const *filename, int desc); | - | ||||||||||||||||||||||||
| 71 | static | - | ||||||||||||||||||||||||
| 72 | _Bool | - | ||||||||||||||||||||||||
| 73 | init_fps (int number_of_files, char **av); | - | ||||||||||||||||||||||||
| 74 | static void init_funcs (void); | - | ||||||||||||||||||||||||
| 75 | static void init_store_cols (void); | - | ||||||||||||||||||||||||
| 76 | static void store_columns (void); | - | ||||||||||||||||||||||||
| 77 | static void balance (int total_stored); | - | ||||||||||||||||||||||||
| 78 | static void store_char (char c); | - | ||||||||||||||||||||||||
| 79 | static void pad_down (unsigned int lines); | - | ||||||||||||||||||||||||
| 80 | static void read_rest_of_line (COLUMN *p); | - | ||||||||||||||||||||||||
| 81 | static void skip_read (COLUMN *p, int column_number); | - | ||||||||||||||||||||||||
| 82 | static void print_char (char c); | - | ||||||||||||||||||||||||
| 83 | static void cleanup (void); | - | ||||||||||||||||||||||||
| 84 | static void print_sep_string (void); | - | ||||||||||||||||||||||||
| 85 | static void separator_string (const char *optarg_S); | - | ||||||||||||||||||||||||
| 86 | - | |||||||||||||||||||||||||
| 87 | - | |||||||||||||||||||||||||
| 88 | static COLUMN *column_vector; | - | ||||||||||||||||||||||||
| 89 | - | |||||||||||||||||||||||||
| 90 | - | |||||||||||||||||||||||||
| 91 | - | |||||||||||||||||||||||||
| 92 | - | |||||||||||||||||||||||||
| 93 | - | |||||||||||||||||||||||||
| 94 | static char *buff; | - | ||||||||||||||||||||||||
| 95 | - | |||||||||||||||||||||||||
| 96 | - | |||||||||||||||||||||||||
| 97 | - | |||||||||||||||||||||||||
| 98 | static unsigned int buff_current; | - | ||||||||||||||||||||||||
| 99 | - | |||||||||||||||||||||||||
| 100 | - | |||||||||||||||||||||||||
| 101 | - | |||||||||||||||||||||||||
| 102 | static size_t buff_allocated; | - | ||||||||||||||||||||||||
| 103 | - | |||||||||||||||||||||||||
| 104 | - | |||||||||||||||||||||||||
| 105 | - | |||||||||||||||||||||||||
| 106 | - | |||||||||||||||||||||||||
| 107 | - | |||||||||||||||||||||||||
| 108 | static int *line_vector; | - | ||||||||||||||||||||||||
| 109 | - | |||||||||||||||||||||||||
| 110 | - | |||||||||||||||||||||||||
| 111 | - | |||||||||||||||||||||||||
| 112 | - | |||||||||||||||||||||||||
| 113 | - | |||||||||||||||||||||||||
| 114 | - | |||||||||||||||||||||||||
| 115 | static int *end_vector; | - | ||||||||||||||||||||||||
| 116 | - | |||||||||||||||||||||||||
| 117 | - | |||||||||||||||||||||||||
| 118 | static | - | ||||||||||||||||||||||||
| 119 | _Bool | - | ||||||||||||||||||||||||
| 120 | parallel_files = | - | ||||||||||||||||||||||||
| 121 | 0 | - | ||||||||||||||||||||||||
| 122 | ; | - | ||||||||||||||||||||||||
| 123 | - | |||||||||||||||||||||||||
| 124 | - | |||||||||||||||||||||||||
| 125 | - | |||||||||||||||||||||||||
| 126 | static | - | ||||||||||||||||||||||||
| 127 | _Bool | - | ||||||||||||||||||||||||
| 128 | align_empty_cols; | - | ||||||||||||||||||||||||
| 129 | - | |||||||||||||||||||||||||
| 130 | - | |||||||||||||||||||||||||
| 131 | - | |||||||||||||||||||||||||
| 132 | static | - | ||||||||||||||||||||||||
| 133 | _Bool | - | ||||||||||||||||||||||||
| 134 | empty_line; | - | ||||||||||||||||||||||||
| 135 | - | |||||||||||||||||||||||||
| 136 | - | |||||||||||||||||||||||||
| 137 | - | |||||||||||||||||||||||||
| 138 | - | |||||||||||||||||||||||||
| 139 | - | |||||||||||||||||||||||||
| 140 | - | |||||||||||||||||||||||||
| 141 | static | - | ||||||||||||||||||||||||
| 142 | _Bool | - | ||||||||||||||||||||||||
| 143 | FF_only; | - | ||||||||||||||||||||||||
| 144 | - | |||||||||||||||||||||||||
| 145 | - | |||||||||||||||||||||||||
| 146 | - | |||||||||||||||||||||||||
| 147 | - | |||||||||||||||||||||||||
| 148 | static | - | ||||||||||||||||||||||||
| 149 | _Bool | - | ||||||||||||||||||||||||
| 150 | explicit_columns = | - | ||||||||||||||||||||||||
| 151 | 0 | - | ||||||||||||||||||||||||
| 152 | ; | - | ||||||||||||||||||||||||
| 153 | - | |||||||||||||||||||||||||
| 154 | - | |||||||||||||||||||||||||
| 155 | static | - | ||||||||||||||||||||||||
| 156 | _Bool | - | ||||||||||||||||||||||||
| 157 | extremities = | - | ||||||||||||||||||||||||
| 158 | 1 | - | ||||||||||||||||||||||||
| 159 | ; | - | ||||||||||||||||||||||||
| 160 | - | |||||||||||||||||||||||||
| 161 | - | |||||||||||||||||||||||||
| 162 | - | |||||||||||||||||||||||||
| 163 | static | - | ||||||||||||||||||||||||
| 164 | _Bool | - | ||||||||||||||||||||||||
| 165 | keep_FF = | - | ||||||||||||||||||||||||
| 166 | 0 | - | ||||||||||||||||||||||||
| 167 | ; | - | ||||||||||||||||||||||||
| 168 | static | - | ||||||||||||||||||||||||
| 169 | _Bool | - | ||||||||||||||||||||||||
| 170 | print_a_FF = | - | ||||||||||||||||||||||||
| 171 | 0 | - | ||||||||||||||||||||||||
| 172 | ; | - | ||||||||||||||||||||||||
| 173 | - | |||||||||||||||||||||||||
| 174 | - | |||||||||||||||||||||||||
| 175 | - | |||||||||||||||||||||||||
| 176 | static | - | ||||||||||||||||||||||||
| 177 | _Bool | - | ||||||||||||||||||||||||
| 178 | print_a_header; | - | ||||||||||||||||||||||||
| 179 | - | |||||||||||||||||||||||||
| 180 | - | |||||||||||||||||||||||||
| 181 | static | - | ||||||||||||||||||||||||
| 182 | _Bool | - | ||||||||||||||||||||||||
| 183 | use_form_feed = | - | ||||||||||||||||||||||||
| 184 | 0 | - | ||||||||||||||||||||||||
| 185 | ; | - | ||||||||||||||||||||||||
| 186 | - | |||||||||||||||||||||||||
| 187 | - | |||||||||||||||||||||||||
| 188 | static | - | ||||||||||||||||||||||||
| 189 | _Bool | - | ||||||||||||||||||||||||
| 190 | have_read_stdin = | - | ||||||||||||||||||||||||
| 191 | 0 | - | ||||||||||||||||||||||||
| 192 | ; | - | ||||||||||||||||||||||||
| 193 | - | |||||||||||||||||||||||||
| 194 | - | |||||||||||||||||||||||||
| 195 | static | - | ||||||||||||||||||||||||
| 196 | _Bool | - | ||||||||||||||||||||||||
| 197 | print_across_flag = | - | ||||||||||||||||||||||||
| 198 | 0 | - | ||||||||||||||||||||||||
| 199 | ; | - | ||||||||||||||||||||||||
| 200 | - | |||||||||||||||||||||||||
| 201 | - | |||||||||||||||||||||||||
| 202 | static | - | ||||||||||||||||||||||||
| 203 | _Bool | - | ||||||||||||||||||||||||
| 204 | storing_columns = | - | ||||||||||||||||||||||||
| 205 | 1 | - | ||||||||||||||||||||||||
| 206 | ; | - | ||||||||||||||||||||||||
| 207 | - | |||||||||||||||||||||||||
| 208 | - | |||||||||||||||||||||||||
| 209 | - | |||||||||||||||||||||||||
| 210 | - | |||||||||||||||||||||||||
| 211 | - | |||||||||||||||||||||||||
| 212 | static | - | ||||||||||||||||||||||||
| 213 | _Bool | - | ||||||||||||||||||||||||
| 214 | balance_columns = | - | ||||||||||||||||||||||||
| 215 | 0 | - | ||||||||||||||||||||||||
| 216 | ; | - | ||||||||||||||||||||||||
| 217 | - | |||||||||||||||||||||||||
| 218 | - | |||||||||||||||||||||||||
| 219 | static int lines_per_page = 66; | - | ||||||||||||||||||||||||
| 220 | - | |||||||||||||||||||||||||
| 221 | - | |||||||||||||||||||||||||
| 222 | - | |||||||||||||||||||||||||
| 223 | enum { lines_per_header = 5 }; | - | ||||||||||||||||||||||||
| 224 | static int lines_per_body; | - | ||||||||||||||||||||||||
| 225 | enum { lines_per_footer = 5 }; | - | ||||||||||||||||||||||||
| 226 | - | |||||||||||||||||||||||||
| 227 | - | |||||||||||||||||||||||||
| 228 | - | |||||||||||||||||||||||||
| 229 | static int chars_per_line = 72; | - | ||||||||||||||||||||||||
| 230 | - | |||||||||||||||||||||||||
| 231 | - | |||||||||||||||||||||||||
| 232 | static | - | ||||||||||||||||||||||||
| 233 | _Bool | - | ||||||||||||||||||||||||
| 234 | truncate_lines = | - | ||||||||||||||||||||||||
| 235 | 0 | - | ||||||||||||||||||||||||
| 236 | ; | - | ||||||||||||||||||||||||
| 237 | - | |||||||||||||||||||||||||
| 238 | - | |||||||||||||||||||||||||
| 239 | - | |||||||||||||||||||||||||
| 240 | static | - | ||||||||||||||||||||||||
| 241 | _Bool | - | ||||||||||||||||||||||||
| 242 | join_lines = | - | ||||||||||||||||||||||||
| 243 | 0 | - | ||||||||||||||||||||||||
| 244 | ; | - | ||||||||||||||||||||||||
| 245 | - | |||||||||||||||||||||||||
| 246 | - | |||||||||||||||||||||||||
| 247 | - | |||||||||||||||||||||||||
| 248 | static int chars_per_column; | - | ||||||||||||||||||||||||
| 249 | - | |||||||||||||||||||||||||
| 250 | - | |||||||||||||||||||||||||
| 251 | static | - | ||||||||||||||||||||||||
| 252 | _Bool | - | ||||||||||||||||||||||||
| 253 | untabify_input = | - | ||||||||||||||||||||||||
| 254 | 0 | - | ||||||||||||||||||||||||
| 255 | ; | - | ||||||||||||||||||||||||
| 256 | - | |||||||||||||||||||||||||
| 257 | - | |||||||||||||||||||||||||
| 258 | static char input_tab_char = '\t'; | - | ||||||||||||||||||||||||
| 259 | - | |||||||||||||||||||||||||
| 260 | - | |||||||||||||||||||||||||
| 261 | - | |||||||||||||||||||||||||
| 262 | static int chars_per_input_tab = 8; | - | ||||||||||||||||||||||||
| 263 | - | |||||||||||||||||||||||||
| 264 | - | |||||||||||||||||||||||||
| 265 | static | - | ||||||||||||||||||||||||
| 266 | _Bool | - | ||||||||||||||||||||||||
| 267 | tabify_output = | - | ||||||||||||||||||||||||
| 268 | 0 | - | ||||||||||||||||||||||||
| 269 | ; | - | ||||||||||||||||||||||||
| 270 | - | |||||||||||||||||||||||||
| 271 | - | |||||||||||||||||||||||||
| 272 | static char output_tab_char = '\t'; | - | ||||||||||||||||||||||||
| 273 | - | |||||||||||||||||||||||||
| 274 | - | |||||||||||||||||||||||||
| 275 | static int chars_per_output_tab = 8; | - | ||||||||||||||||||||||||
| 276 | - | |||||||||||||||||||||||||
| 277 | - | |||||||||||||||||||||||||
| 278 | - | |||||||||||||||||||||||||
| 279 | - | |||||||||||||||||||||||||
| 280 | static int spaces_not_printed; | - | ||||||||||||||||||||||||
| 281 | - | |||||||||||||||||||||||||
| 282 | - | |||||||||||||||||||||||||
| 283 | static int chars_per_margin = 0; | - | ||||||||||||||||||||||||
| 284 | - | |||||||||||||||||||||||||
| 285 | - | |||||||||||||||||||||||||
| 286 | - | |||||||||||||||||||||||||
| 287 | - | |||||||||||||||||||||||||
| 288 | - | |||||||||||||||||||||||||
| 289 | static int output_position; | - | ||||||||||||||||||||||||
| 290 | - | |||||||||||||||||||||||||
| 291 | - | |||||||||||||||||||||||||
| 292 | - | |||||||||||||||||||||||||
| 293 | - | |||||||||||||||||||||||||
| 294 | - | |||||||||||||||||||||||||
| 295 | static int input_position; | - | ||||||||||||||||||||||||
| 296 | - | |||||||||||||||||||||||||
| 297 | - | |||||||||||||||||||||||||
| 298 | - | |||||||||||||||||||||||||
| 299 | static | - | ||||||||||||||||||||||||
| 300 | _Bool | - | ||||||||||||||||||||||||
| 301 | failed_opens = | - | ||||||||||||||||||||||||
| 302 | 0 | - | ||||||||||||||||||||||||
| 303 | ; | - | ||||||||||||||||||||||||
| 304 | static int columns = 1; | - | ||||||||||||||||||||||||
| 305 | - | |||||||||||||||||||||||||
| 306 | - | |||||||||||||||||||||||||
| 307 | - | |||||||||||||||||||||||||
| 308 | static uintmax_t first_page_number = 0; | - | ||||||||||||||||||||||||
| 309 | static uintmax_t last_page_number = | - | ||||||||||||||||||||||||
| 310 | (18446744073709551615UL) | - | ||||||||||||||||||||||||
| 311 | ; | - | ||||||||||||||||||||||||
| 312 | - | |||||||||||||||||||||||||
| 313 | - | |||||||||||||||||||||||||
| 314 | static int files_ready_to_read = 0; | - | ||||||||||||||||||||||||
| 315 | - | |||||||||||||||||||||||||
| 316 | - | |||||||||||||||||||||||||
| 317 | static uintmax_t page_number; | - | ||||||||||||||||||||||||
| 318 | static int line_number; | - | ||||||||||||||||||||||||
| 319 | - | |||||||||||||||||||||||||
| 320 | - | |||||||||||||||||||||||||
| 321 | static | - | ||||||||||||||||||||||||
| 322 | _Bool | - | ||||||||||||||||||||||||
| 323 | numbered_lines = | - | ||||||||||||||||||||||||
| 324 | 0 | - | ||||||||||||||||||||||||
| 325 | ; | - | ||||||||||||||||||||||||
| 326 | - | |||||||||||||||||||||||||
| 327 | - | |||||||||||||||||||||||||
| 328 | static char number_separator = '\t'; | - | ||||||||||||||||||||||||
| 329 | - | |||||||||||||||||||||||||
| 330 | - | |||||||||||||||||||||||||
| 331 | - | |||||||||||||||||||||||||
| 332 | static int line_count = 1; | - | ||||||||||||||||||||||||
| 333 | - | |||||||||||||||||||||||||
| 334 | - | |||||||||||||||||||||||||
| 335 | - | |||||||||||||||||||||||||
| 336 | - | |||||||||||||||||||||||||
| 337 | static | - | ||||||||||||||||||||||||
| 338 | _Bool | - | ||||||||||||||||||||||||
| 339 | skip_count = | - | ||||||||||||||||||||||||
| 340 | 1 | - | ||||||||||||||||||||||||
| 341 | ; | - | ||||||||||||||||||||||||
| 342 | - | |||||||||||||||||||||||||
| 343 | - | |||||||||||||||||||||||||
| 344 | - | |||||||||||||||||||||||||
| 345 | static int start_line_num = 1; | - | ||||||||||||||||||||||||
| 346 | - | |||||||||||||||||||||||||
| 347 | - | |||||||||||||||||||||||||
| 348 | static int chars_per_number = 5; | - | ||||||||||||||||||||||||
| 349 | - | |||||||||||||||||||||||||
| 350 | - | |||||||||||||||||||||||||
| 351 | - | |||||||||||||||||||||||||
| 352 | - | |||||||||||||||||||||||||
| 353 | static int number_width; | - | ||||||||||||||||||||||||
| 354 | - | |||||||||||||||||||||||||
| 355 | - | |||||||||||||||||||||||||
| 356 | static char *number_buff; | - | ||||||||||||||||||||||||
| 357 | - | |||||||||||||||||||||||||
| 358 | - | |||||||||||||||||||||||||
| 359 | - | |||||||||||||||||||||||||
| 360 | static | - | ||||||||||||||||||||||||
| 361 | _Bool | - | ||||||||||||||||||||||||
| 362 | use_esc_sequence = | - | ||||||||||||||||||||||||
| 363 | 0 | - | ||||||||||||||||||||||||
| 364 | ; | - | ||||||||||||||||||||||||
| 365 | - | |||||||||||||||||||||||||
| 366 | - | |||||||||||||||||||||||||
| 367 | - | |||||||||||||||||||||||||
| 368 | static | - | ||||||||||||||||||||||||
| 369 | _Bool | - | ||||||||||||||||||||||||
| 370 | use_cntrl_prefix = | - | ||||||||||||||||||||||||
| 371 | 0 | - | ||||||||||||||||||||||||
| 372 | ; | - | ||||||||||||||||||||||||
| 373 | - | |||||||||||||||||||||||||
| 374 | - | |||||||||||||||||||||||||
| 375 | static | - | ||||||||||||||||||||||||
| 376 | _Bool | - | ||||||||||||||||||||||||
| 377 | double_space = | - | ||||||||||||||||||||||||
| 378 | 0 | - | ||||||||||||||||||||||||
| 379 | ; | - | ||||||||||||||||||||||||
| 380 | - | |||||||||||||||||||||||||
| 381 | - | |||||||||||||||||||||||||
| 382 | - | |||||||||||||||||||||||||
| 383 | static int total_files = 0; | - | ||||||||||||||||||||||||
| 384 | - | |||||||||||||||||||||||||
| 385 | - | |||||||||||||||||||||||||
| 386 | static | - | ||||||||||||||||||||||||
| 387 | _Bool | - | ||||||||||||||||||||||||
| 388 | ignore_failed_opens = | - | ||||||||||||||||||||||||
| 389 | 0 | - | ||||||||||||||||||||||||
| 390 | ; | - | ||||||||||||||||||||||||
| 391 | - | |||||||||||||||||||||||||
| 392 | - | |||||||||||||||||||||||||
| 393 | - | |||||||||||||||||||||||||
| 394 | static | - | ||||||||||||||||||||||||
| 395 | _Bool | - | ||||||||||||||||||||||||
| 396 | use_col_separator = | - | ||||||||||||||||||||||||
| 397 | 0 | - | ||||||||||||||||||||||||
| 398 | ; | - | ||||||||||||||||||||||||
| 399 | - | |||||||||||||||||||||||||
| 400 | - | |||||||||||||||||||||||||
| 401 | - | |||||||||||||||||||||||||
| 402 | - | |||||||||||||||||||||||||
| 403 | static char const *col_sep_string = ""; | - | ||||||||||||||||||||||||
| 404 | static int col_sep_length = 0; | - | ||||||||||||||||||||||||
| 405 | static char *column_separator = (char *) " "; | - | ||||||||||||||||||||||||
| 406 | static char *line_separator = (char *) "\t"; | - | ||||||||||||||||||||||||
| 407 | - | |||||||||||||||||||||||||
| 408 | - | |||||||||||||||||||||||||
| 409 | - | |||||||||||||||||||||||||
| 410 | static int separators_not_printed; | - | ||||||||||||||||||||||||
| 411 | - | |||||||||||||||||||||||||
| 412 | - | |||||||||||||||||||||||||
| 413 | - | |||||||||||||||||||||||||
| 414 | static int padding_not_printed; | - | ||||||||||||||||||||||||
| 415 | - | |||||||||||||||||||||||||
| 416 | - | |||||||||||||||||||||||||
| 417 | - | |||||||||||||||||||||||||
| 418 | static | - | ||||||||||||||||||||||||
| 419 | _Bool | - | ||||||||||||||||||||||||
| 420 | pad_vertically; | - | ||||||||||||||||||||||||
| 421 | - | |||||||||||||||||||||||||
| 422 | - | |||||||||||||||||||||||||
| 423 | static char *custom_header; | - | ||||||||||||||||||||||||
| 424 | - | |||||||||||||||||||||||||
| 425 | - | |||||||||||||||||||||||||
| 426 | static char const *date_format; | - | ||||||||||||||||||||||||
| 427 | - | |||||||||||||||||||||||||
| 428 | - | |||||||||||||||||||||||||
| 429 | static timezone_t localtz; | - | ||||||||||||||||||||||||
| 430 | - | |||||||||||||||||||||||||
| 431 | - | |||||||||||||||||||||||||
| 432 | static char *date_text; | - | ||||||||||||||||||||||||
| 433 | static char const *file_text; | - | ||||||||||||||||||||||||
| 434 | - | |||||||||||||||||||||||||
| 435 | - | |||||||||||||||||||||||||
| 436 | static int header_width_available; | - | ||||||||||||||||||||||||
| 437 | - | |||||||||||||||||||||||||
| 438 | static char *clump_buff; | - | ||||||||||||||||||||||||
| 439 | - | |||||||||||||||||||||||||
| 440 | - | |||||||||||||||||||||||||
| 441 | - | |||||||||||||||||||||||||
| 442 | - | |||||||||||||||||||||||||
| 443 | - | |||||||||||||||||||||||||
| 444 | static | - | ||||||||||||||||||||||||
| 445 | _Bool | - | ||||||||||||||||||||||||
| 446 | last_line = | - | ||||||||||||||||||||||||
| 447 | 0 | - | ||||||||||||||||||||||||
| 448 | ; | - | ||||||||||||||||||||||||
| 449 | - | |||||||||||||||||||||||||
| 450 | - | |||||||||||||||||||||||||
| 451 | - | |||||||||||||||||||||||||
| 452 | enum | - | ||||||||||||||||||||||||
| 453 | { | - | ||||||||||||||||||||||||
| 454 | COLUMNS_OPTION = 0x7f + 1, | - | ||||||||||||||||||||||||
| 455 | PAGES_OPTION | - | ||||||||||||||||||||||||
| 456 | }; | - | ||||||||||||||||||||||||
| 457 | - | |||||||||||||||||||||||||
| 458 | static char const short_options[] = | - | ||||||||||||||||||||||||
| 459 | "-0123456789D:FJN:S::TW:abcde::fh:i::l:mn::o:rs::tvw:"; | - | ||||||||||||||||||||||||
| 460 | - | |||||||||||||||||||||||||
| 461 | static struct option const long_options[] = | - | ||||||||||||||||||||||||
| 462 | { | - | ||||||||||||||||||||||||
| 463 | {"pages", | - | ||||||||||||||||||||||||
| 464 | 1 | - | ||||||||||||||||||||||||
| 465 | , | - | ||||||||||||||||||||||||
| 466 | ((void *)0) | - | ||||||||||||||||||||||||
| 467 | , PAGES_OPTION}, | - | ||||||||||||||||||||||||
| 468 | {"columns", | - | ||||||||||||||||||||||||
| 469 | 1 | - | ||||||||||||||||||||||||
| 470 | , | - | ||||||||||||||||||||||||
| 471 | ((void *)0) | - | ||||||||||||||||||||||||
| 472 | , COLUMNS_OPTION}, | - | ||||||||||||||||||||||||
| 473 | {"across", | - | ||||||||||||||||||||||||
| 474 | 0 | - | ||||||||||||||||||||||||
| 475 | , | - | ||||||||||||||||||||||||
| 476 | ((void *)0) | - | ||||||||||||||||||||||||
| 477 | , 'a'}, | - | ||||||||||||||||||||||||
| 478 | {"show-control-chars", | - | ||||||||||||||||||||||||
| 479 | 0 | - | ||||||||||||||||||||||||
| 480 | , | - | ||||||||||||||||||||||||
| 481 | ((void *)0) | - | ||||||||||||||||||||||||
| 482 | , 'c'}, | - | ||||||||||||||||||||||||
| 483 | {"double-space", | - | ||||||||||||||||||||||||
| 484 | 0 | - | ||||||||||||||||||||||||
| 485 | , | - | ||||||||||||||||||||||||
| 486 | ((void *)0) | - | ||||||||||||||||||||||||
| 487 | , 'd'}, | - | ||||||||||||||||||||||||
| 488 | {"date-format", | - | ||||||||||||||||||||||||
| 489 | 1 | - | ||||||||||||||||||||||||
| 490 | , | - | ||||||||||||||||||||||||
| 491 | ((void *)0) | - | ||||||||||||||||||||||||
| 492 | , 'D'}, | - | ||||||||||||||||||||||||
| 493 | {"expand-tabs", | - | ||||||||||||||||||||||||
| 494 | 2 | - | ||||||||||||||||||||||||
| 495 | , | - | ||||||||||||||||||||||||
| 496 | ((void *)0) | - | ||||||||||||||||||||||||
| 497 | , 'e'}, | - | ||||||||||||||||||||||||
| 498 | {"form-feed", | - | ||||||||||||||||||||||||
| 499 | 0 | - | ||||||||||||||||||||||||
| 500 | , | - | ||||||||||||||||||||||||
| 501 | ((void *)0) | - | ||||||||||||||||||||||||
| 502 | , 'f'}, | - | ||||||||||||||||||||||||
| 503 | {"header", | - | ||||||||||||||||||||||||
| 504 | 1 | - | ||||||||||||||||||||||||
| 505 | , | - | ||||||||||||||||||||||||
| 506 | ((void *)0) | - | ||||||||||||||||||||||||
| 507 | , 'h'}, | - | ||||||||||||||||||||||||
| 508 | {"output-tabs", | - | ||||||||||||||||||||||||
| 509 | 2 | - | ||||||||||||||||||||||||
| 510 | , | - | ||||||||||||||||||||||||
| 511 | ((void *)0) | - | ||||||||||||||||||||||||
| 512 | , 'i'}, | - | ||||||||||||||||||||||||
| 513 | {"join-lines", | - | ||||||||||||||||||||||||
| 514 | 0 | - | ||||||||||||||||||||||||
| 515 | , | - | ||||||||||||||||||||||||
| 516 | ((void *)0) | - | ||||||||||||||||||||||||
| 517 | , 'J'}, | - | ||||||||||||||||||||||||
| 518 | {"length", | - | ||||||||||||||||||||||||
| 519 | 1 | - | ||||||||||||||||||||||||
| 520 | , | - | ||||||||||||||||||||||||
| 521 | ((void *)0) | - | ||||||||||||||||||||||||
| 522 | , 'l'}, | - | ||||||||||||||||||||||||
| 523 | {"merge", | - | ||||||||||||||||||||||||
| 524 | 0 | - | ||||||||||||||||||||||||
| 525 | , | - | ||||||||||||||||||||||||
| 526 | ((void *)0) | - | ||||||||||||||||||||||||
| 527 | , 'm'}, | - | ||||||||||||||||||||||||
| 528 | {"number-lines", | - | ||||||||||||||||||||||||
| 529 | 2 | - | ||||||||||||||||||||||||
| 530 | , | - | ||||||||||||||||||||||||
| 531 | ((void *)0) | - | ||||||||||||||||||||||||
| 532 | , 'n'}, | - | ||||||||||||||||||||||||
| 533 | {"first-line-number", | - | ||||||||||||||||||||||||
| 534 | 1 | - | ||||||||||||||||||||||||
| 535 | , | - | ||||||||||||||||||||||||
| 536 | ((void *)0) | - | ||||||||||||||||||||||||
| 537 | , 'N'}, | - | ||||||||||||||||||||||||
| 538 | {"indent", | - | ||||||||||||||||||||||||
| 539 | 1 | - | ||||||||||||||||||||||||
| 540 | , | - | ||||||||||||||||||||||||
| 541 | ((void *)0) | - | ||||||||||||||||||||||||
| 542 | , 'o'}, | - | ||||||||||||||||||||||||
| 543 | {"no-file-warnings", | - | ||||||||||||||||||||||||
| 544 | 0 | - | ||||||||||||||||||||||||
| 545 | , | - | ||||||||||||||||||||||||
| 546 | ((void *)0) | - | ||||||||||||||||||||||||
| 547 | , 'r'}, | - | ||||||||||||||||||||||||
| 548 | {"separator", | - | ||||||||||||||||||||||||
| 549 | 2 | - | ||||||||||||||||||||||||
| 550 | , | - | ||||||||||||||||||||||||
| 551 | ((void *)0) | - | ||||||||||||||||||||||||
| 552 | , 's'}, | - | ||||||||||||||||||||||||
| 553 | {"sep-string", | - | ||||||||||||||||||||||||
| 554 | 2 | - | ||||||||||||||||||||||||
| 555 | , | - | ||||||||||||||||||||||||
| 556 | ((void *)0) | - | ||||||||||||||||||||||||
| 557 | , 'S'}, | - | ||||||||||||||||||||||||
| 558 | {"omit-header", | - | ||||||||||||||||||||||||
| 559 | 0 | - | ||||||||||||||||||||||||
| 560 | , | - | ||||||||||||||||||||||||
| 561 | ((void *)0) | - | ||||||||||||||||||||||||
| 562 | , 't'}, | - | ||||||||||||||||||||||||
| 563 | {"omit-pagination", | - | ||||||||||||||||||||||||
| 564 | 0 | - | ||||||||||||||||||||||||
| 565 | , | - | ||||||||||||||||||||||||
| 566 | ((void *)0) | - | ||||||||||||||||||||||||
| 567 | , 'T'}, | - | ||||||||||||||||||||||||
| 568 | {"show-nonprinting", | - | ||||||||||||||||||||||||
| 569 | 0 | - | ||||||||||||||||||||||||
| 570 | , | - | ||||||||||||||||||||||||
| 571 | ((void *)0) | - | ||||||||||||||||||||||||
| 572 | , 'v'}, | - | ||||||||||||||||||||||||
| 573 | {"width", | - | ||||||||||||||||||||||||
| 574 | 1 | - | ||||||||||||||||||||||||
| 575 | , | - | ||||||||||||||||||||||||
| 576 | ((void *)0) | - | ||||||||||||||||||||||||
| 577 | , 'w'}, | - | ||||||||||||||||||||||||
| 578 | {"page-width", | - | ||||||||||||||||||||||||
| 579 | 1 | - | ||||||||||||||||||||||||
| 580 | , | - | ||||||||||||||||||||||||
| 581 | ((void *)0) | - | ||||||||||||||||||||||||
| 582 | , 'W'}, | - | ||||||||||||||||||||||||
| 583 | {"help", | - | ||||||||||||||||||||||||
| 584 | 0 | - | ||||||||||||||||||||||||
| 585 | , | - | ||||||||||||||||||||||||
| 586 | ((void *)0) | - | ||||||||||||||||||||||||
| 587 | , GETOPT_HELP_CHAR}, | - | ||||||||||||||||||||||||
| 588 | {"version", | - | ||||||||||||||||||||||||
| 589 | 0 | - | ||||||||||||||||||||||||
| 590 | , | - | ||||||||||||||||||||||||
| 591 | ((void *)0) | - | ||||||||||||||||||||||||
| 592 | , GETOPT_VERSION_CHAR}, | - | ||||||||||||||||||||||||
| 593 | { | - | ||||||||||||||||||||||||
| 594 | ((void *)0) | - | ||||||||||||||||||||||||
| 595 | , 0, | - | ||||||||||||||||||||||||
| 596 | ((void *)0) | - | ||||||||||||||||||||||||
| 597 | , 0} | - | ||||||||||||||||||||||||
| 598 | }; | - | ||||||||||||||||||||||||
| 599 | - | |||||||||||||||||||||||||
| 600 | static void | - | ||||||||||||||||||||||||
| 601 | integer_overflow (void) | - | ||||||||||||||||||||||||
| 602 | { | - | ||||||||||||||||||||||||
| 603 | ((!!sizeof (struct { _Static_assert ( | - | ||||||||||||||||||||||||
| 604 | 1 | - | ||||||||||||||||||||||||
| 605 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"integer overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( | - | ||||||||||||||||||||||||
| 606 | 1 | - | ||||||||||||||||||||||||
| 607 | , 0, | - | ||||||||||||||||||||||||
| 608 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 609 | "integer overflow" | - | ||||||||||||||||||||||||
| 610 | , 5) | - | ||||||||||||||||||||||||
| 611 | ), (( | - | ||||||||||||||||||||||||
| 612 | 0 | - | ||||||||||||||||||||||||
| 613 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( | - | ||||||||||||||||||||||||
| 614 | 1 | - | ||||||||||||||||||||||||
| 615 | , 0, | - | ||||||||||||||||||||||||
| 616 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 617 | "integer overflow" | - | ||||||||||||||||||||||||
| 618 | , 5) | - | ||||||||||||||||||||||||
| 619 | ), (( | - | ||||||||||||||||||||||||
| 620 | 0 | - | ||||||||||||||||||||||||
| 621 | ) ? (void) 0 : __builtin_unreachable ())))); | - | ||||||||||||||||||||||||
| 622 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 623 | - | |||||||||||||||||||||||||
| 624 | - | |||||||||||||||||||||||||
| 625 | - | |||||||||||||||||||||||||
| 626 | - | |||||||||||||||||||||||||
| 627 | static unsigned int __attribute__ ((__pure__)) | - | ||||||||||||||||||||||||
| 628 | cols_ready_to_print (void) | - | ||||||||||||||||||||||||
| 629 | { | - | ||||||||||||||||||||||||
| 630 | COLUMN *q; | - | ||||||||||||||||||||||||
| 631 | unsigned int i; | - | ||||||||||||||||||||||||
| 632 | unsigned int n; | - | ||||||||||||||||||||||||
| 633 | - | |||||||||||||||||||||||||
| 634 | n = 0; | - | ||||||||||||||||||||||||
| 635 | for (q = column_vector, i = 0; i < columns
| 56091-101299 | ||||||||||||||||||||||||
| 636 | if (q->status == OPEN
| 42339-58960 | ||||||||||||||||||||||||
| 637 | || q->status == FF_FOUND
| 4884-37455 | ||||||||||||||||||||||||
| 638 | || (storing_columns
| 4449-22986 | ||||||||||||||||||||||||
| 639 | ++ executed 75136 times by 1 test: n;++n;Executed by:
executed 75136 times by 1 test: ++n;Executed by:
| 75136 | ||||||||||||||||||||||||
| 640 | return executed 56091 times by 1 test: n;return n;Executed by:
executed 56091 times by 1 test: return n;Executed by:
| 56091 | ||||||||||||||||||||||||
| 641 | } | - | ||||||||||||||||||||||||
| 642 | - | |||||||||||||||||||||||||
| 643 | - | |||||||||||||||||||||||||
| 644 | - | |||||||||||||||||||||||||
| 645 | - | |||||||||||||||||||||||||
| 646 | static | - | ||||||||||||||||||||||||
| 647 | _Bool | - | ||||||||||||||||||||||||
| 648 | - | |||||||||||||||||||||||||
| 649 | first_last_page (int oi, char c, char const *pages) | - | ||||||||||||||||||||||||
| 650 | { | - | ||||||||||||||||||||||||
| 651 | char *p; | - | ||||||||||||||||||||||||
| 652 | uintmax_t first; | - | ||||||||||||||||||||||||
| 653 | uintmax_t last = | - | ||||||||||||||||||||||||
| 654 | (18446744073709551615UL) | - | ||||||||||||||||||||||||
| 655 | ; | - | ||||||||||||||||||||||||
| 656 | strtol_error err = xstrtoumax (pages, &p, 10, &first, ""); | - | ||||||||||||||||||||||||
| 657 | if (err != LONGINT_OK
| 3-221 | ||||||||||||||||||||||||
| 658 | xstrtol_fatal (err, oi, c, long_options, pages); executed 3 times by 1 test: xstrtol_fatal (err, oi, c, long_options, pages);Executed by:
| 3 | ||||||||||||||||||||||||
| 659 | - | |||||||||||||||||||||||||
| 660 | if (p == pages
| 0-246 | ||||||||||||||||||||||||
| 661 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 662 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 663 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 664 | - | |||||||||||||||||||||||||
| 665 | if (*
| 24-222 | ||||||||||||||||||||||||
| 666 | { | - | ||||||||||||||||||||||||
| 667 | char const *p1 = p + 1; | - | ||||||||||||||||||||||||
| 668 | err = xstrtoumax (p1, &p, 10, &last, ""); | - | ||||||||||||||||||||||||
| 669 | if (err != LONGINT_OK
| 3-21 | ||||||||||||||||||||||||
| 670 | xstrtol_fatal (err, oi, c, long_options, pages); executed 3 times by 1 test: xstrtol_fatal (err, oi, c, long_options, pages);Executed by:
| 3 | ||||||||||||||||||||||||
| 671 | if (p1 == p
| 0-21 | ||||||||||||||||||||||||
| 672 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 673 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 674 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 675 | } executed 21 times by 1 test: end of blockExecuted by:
| 21 | ||||||||||||||||||||||||
| 676 | - | |||||||||||||||||||||||||
| 677 | if (*
| 1-242 | ||||||||||||||||||||||||
| 678 | return executed 1 time by 1 test: return 0 ;Executed by:
executed 1 time by 1 test: return 0 ;Executed by:
| 1 | ||||||||||||||||||||||||
| 679 | 0 executed 1 time by 1 test: return 0 ;Executed by:
| 1 | ||||||||||||||||||||||||
| 680 | ; executed 1 time by 1 test: return 0 ;Executed by:
| 1 | ||||||||||||||||||||||||
| 681 | - | |||||||||||||||||||||||||
| 682 | first_page_number = first; | - | ||||||||||||||||||||||||
| 683 | last_page_number = last; | - | ||||||||||||||||||||||||
| 684 | return executed 242 times by 1 test: return 1 ;Executed by:
executed 242 times by 1 test: return 1 ;Executed by:
| 242 | ||||||||||||||||||||||||
| 685 | 1 executed 242 times by 1 test: return 1 ;Executed by:
| 242 | ||||||||||||||||||||||||
| 686 | ; executed 242 times by 1 test: return 1 ;Executed by:
| 242 | ||||||||||||||||||||||||
| 687 | } | - | ||||||||||||||||||||||||
| 688 | - | |||||||||||||||||||||||||
| 689 | - | |||||||||||||||||||||||||
| 690 | - | |||||||||||||||||||||||||
| 691 | - | |||||||||||||||||||||||||
| 692 | - | |||||||||||||||||||||||||
| 693 | static void | - | ||||||||||||||||||||||||
| 694 | parse_column_count (char const *s) | - | ||||||||||||||||||||||||
| 695 | { | - | ||||||||||||||||||||||||
| 696 | getoptnum (s, 1, &columns, | - | ||||||||||||||||||||||||
| 697 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 698 | "invalid number of columns" | - | ||||||||||||||||||||||||
| 699 | , 5) | - | ||||||||||||||||||||||||
| 700 | ); | - | ||||||||||||||||||||||||
| 701 | explicit_columns = | - | ||||||||||||||||||||||||
| 702 | 1 | - | ||||||||||||||||||||||||
| 703 | ; | - | ||||||||||||||||||||||||
| 704 | } executed 420 times by 1 test: end of blockExecuted by:
| 420 | ||||||||||||||||||||||||
| 705 | - | |||||||||||||||||||||||||
| 706 | - | |||||||||||||||||||||||||
| 707 | - | |||||||||||||||||||||||||
| 708 | static void | - | ||||||||||||||||||||||||
| 709 | separator_string (const char *optarg_S) | - | ||||||||||||||||||||||||
| 710 | { | - | ||||||||||||||||||||||||
| 711 | size_t len = strlen (optarg_S); | - | ||||||||||||||||||||||||
| 712 | if (0x7fffffff < len
| 0-45 | ||||||||||||||||||||||||
| 713 | integer_overflow (); never executed: integer_overflow (); | 0 | ||||||||||||||||||||||||
| 714 | col_sep_length = len; | - | ||||||||||||||||||||||||
| 715 | col_sep_string = optarg_S; | - | ||||||||||||||||||||||||
| 716 | } executed 45 times by 1 test: end of blockExecuted by:
| 45 | ||||||||||||||||||||||||
| 717 | - | |||||||||||||||||||||||||
| 718 | int | - | ||||||||||||||||||||||||
| 719 | main (int argc, char **argv) | - | ||||||||||||||||||||||||
| 720 | { | - | ||||||||||||||||||||||||
| 721 | unsigned int n_files; | - | ||||||||||||||||||||||||
| 722 | - | |||||||||||||||||||||||||
| 723 | _Bool | - | ||||||||||||||||||||||||
| 724 | old_options = | - | ||||||||||||||||||||||||
| 725 | 0 | - | ||||||||||||||||||||||||
| 726 | ; | - | ||||||||||||||||||||||||
| 727 | - | |||||||||||||||||||||||||
| 728 | _Bool | - | ||||||||||||||||||||||||
| 729 | old_w = | - | ||||||||||||||||||||||||
| 730 | 0 | - | ||||||||||||||||||||||||
| 731 | ; | - | ||||||||||||||||||||||||
| 732 | - | |||||||||||||||||||||||||
| 733 | _Bool | - | ||||||||||||||||||||||||
| 734 | old_s = | - | ||||||||||||||||||||||||
| 735 | 0 | - | ||||||||||||||||||||||||
| 736 | ; | - | ||||||||||||||||||||||||
| 737 | char **file_names; | - | ||||||||||||||||||||||||
| 738 | - | |||||||||||||||||||||||||
| 739 | - | |||||||||||||||||||||||||
| 740 | char *column_count_string = | - | ||||||||||||||||||||||||
| 741 | ((void *)0) | - | ||||||||||||||||||||||||
| 742 | ; | - | ||||||||||||||||||||||||
| 743 | size_t n_digits = 0; | - | ||||||||||||||||||||||||
| 744 | size_t n_alloc = 0; | - | ||||||||||||||||||||||||
| 745 | - | |||||||||||||||||||||||||
| 746 | ; | - | ||||||||||||||||||||||||
| 747 | set_program_name (argv[0]); | - | ||||||||||||||||||||||||
| 748 | setlocale ( | - | ||||||||||||||||||||||||
| 749 | 6 | - | ||||||||||||||||||||||||
| 750 | , ""); | - | ||||||||||||||||||||||||
| 751 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||||||||||||||
| 752 | textdomain ("coreutils"); | - | ||||||||||||||||||||||||
| 753 | - | |||||||||||||||||||||||||
| 754 | atexit (close_stdout); | - | ||||||||||||||||||||||||
| 755 | - | |||||||||||||||||||||||||
| 756 | n_files = 0; | - | ||||||||||||||||||||||||
| 757 | file_names = (argc > 1
| 2-790 | ||||||||||||||||||||||||
| 758 | ? xnmalloc (argc - 1, sizeof (char *)) | - | ||||||||||||||||||||||||
| 759 | : | - | ||||||||||||||||||||||||
| 760 | ((void *)0) | - | ||||||||||||||||||||||||
| 761 | ); | - | ||||||||||||||||||||||||
| 762 | - | |||||||||||||||||||||||||
| 763 | while ( | - | ||||||||||||||||||||||||
| 764 | 1 | - | ||||||||||||||||||||||||
| 765 | ) | - | ||||||||||||||||||||||||
| 766 | { | - | ||||||||||||||||||||||||
| 767 | int oi = -1; | - | ||||||||||||||||||||||||
| 768 | int c = getopt_long (argc, argv, short_options, long_options, &oi); | - | ||||||||||||||||||||||||
| 769 | if (c == -1
| 731-4637 | ||||||||||||||||||||||||
| 770 | break; executed 731 times by 1 test: break;Executed by:
| 731 | ||||||||||||||||||||||||
| 771 | - | |||||||||||||||||||||||||
| 772 | if (((
| 726-3911 | ||||||||||||||||||||||||
| 773 | { | - | ||||||||||||||||||||||||
| 774 | - | |||||||||||||||||||||||||
| 775 | if (n_digits + 1 >= n_alloc
| 300-426 | ||||||||||||||||||||||||
| 776 | column_count_string executed 426 times by 1 test: column_count_string = ((void) (!!sizeof (struct { _Static_assert (sizeof *(column_count_string) == 1, "verify_true (" "sizeof *(column_count_string) == 1" ")"); int _gl_dummy; })), x2realloc (column_count_string, &n_alloc));Executed by:
| 426 | ||||||||||||||||||||||||
| 777 | = ((void) (!!sizeof (struct { _Static_assert (sizeof *(column_count_string) == 1, "verify_true (" "sizeof *(column_count_string) == 1" ")"); int _gl_dummy; })), x2realloc (column_count_string, &n_alloc)); executed 426 times by 1 test: column_count_string = ((void) (!!sizeof (struct { _Static_assert (sizeof *(column_count_string) == 1, "verify_true (" "sizeof *(column_count_string) == 1" ")"); int _gl_dummy; })), x2realloc (column_count_string, &n_alloc));Executed by:
| 426 | ||||||||||||||||||||||||
| 778 | column_count_string[n_digits++] = c; | - | ||||||||||||||||||||||||
| 779 | column_count_string[n_digits] = '\0'; | - | ||||||||||||||||||||||||
| 780 | continue; executed 726 times by 1 test: continue;Executed by:
| 726 | ||||||||||||||||||||||||
| 781 | } | - | ||||||||||||||||||||||||
| 782 | - | |||||||||||||||||||||||||
| 783 | n_digits = 0; | - | ||||||||||||||||||||||||
| 784 | - | |||||||||||||||||||||||||
| 785 | switch (c) | - | ||||||||||||||||||||||||
| 786 | { | - | ||||||||||||||||||||||||
| 787 | case executed 561 times by 1 test: 1:case 1:Executed by:
executed 561 times by 1 test: case 1:Executed by:
| 561 | ||||||||||||||||||||||||
| 788 | - | |||||||||||||||||||||||||
| 789 | if (! (first_page_number == 0
| 94-467 | ||||||||||||||||||||||||
| 790 | && *
| 0-242 | ||||||||||||||||||||||||
| 791 | file_names[n_files++] = optarg; executed 319 times by 1 test: file_names[n_files++] = optarg;Executed by:
| 319 | ||||||||||||||||||||||||
| 792 | break; executed 561 times by 1 test: break;Executed by:
| 561 | ||||||||||||||||||||||||
| 793 | - | |||||||||||||||||||||||||
| 794 | case executed 7 times by 1 test: PAGES_OPTION:case PAGES_OPTION:Executed by:
executed 7 times by 1 test: case PAGES_OPTION:Executed by:
| 7 | ||||||||||||||||||||||||
| 795 | { | - | ||||||||||||||||||||||||
| 796 | if (! optarg
| 0-7 | ||||||||||||||||||||||||
| 797 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 798 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 799 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 800 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 801 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 802 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 803 | "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 804 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 805 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 806 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 807 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 808 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 809 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 810 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 811 | "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 812 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 813 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 814 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 815 | ) ? (void) 0 : __builtin_unreachable ())))) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 816 | ; never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 817 | else if (! first_last_page (oi, 0, optarg)
| 0-1 | ||||||||||||||||||||||||
| 818 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 819 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 820 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 821 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 822 | , 0, executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 823 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 824 | "invalid page range %s" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 825 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 826 | , quote (optarg)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 827 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 828 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 829 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 830 | , 0, executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 831 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 832 | "invalid page range %s" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 833 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 834 | , quote (optarg)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 835 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 836 | ) ? (void) 0 : __builtin_unreachable ())))) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 837 | ; executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid page range %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid page range %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;Executed by:
| 1 | ||||||||||||||||||||||||
| 838 | break; never executed: break; | 0 | ||||||||||||||||||||||||
| 839 | } | - | ||||||||||||||||||||||||
| 840 | - | |||||||||||||||||||||||||
| 841 | case executed 7 times by 1 test: COLUMNS_OPTION:case COLUMNS_OPTION:Executed by:
executed 7 times by 1 test: case COLUMNS_OPTION:Executed by:
| 7 | ||||||||||||||||||||||||
| 842 | { | - | ||||||||||||||||||||||||
| 843 | parse_column_count (optarg); | - | ||||||||||||||||||||||||
| 844 | - | |||||||||||||||||||||||||
| 845 | - | |||||||||||||||||||||||||
| 846 | - | |||||||||||||||||||||||||
| 847 | - | |||||||||||||||||||||||||
| 848 | free (column_count_string); | - | ||||||||||||||||||||||||
| 849 | column_count_string = | - | ||||||||||||||||||||||||
| 850 | ((void *)0) | - | ||||||||||||||||||||||||
| 851 | ; | - | ||||||||||||||||||||||||
| 852 | n_alloc = 0; | - | ||||||||||||||||||||||||
| 853 | break; executed 6 times by 1 test: break;Executed by:
| 6 | ||||||||||||||||||||||||
| 854 | } | - | ||||||||||||||||||||||||
| 855 | - | |||||||||||||||||||||||||
| 856 | case executed 161 times by 1 test: 'a':case 'a':Executed by:
executed 161 times by 1 test: case 'a':Executed by:
| 161 | ||||||||||||||||||||||||
| 857 | print_across_flag = | - | ||||||||||||||||||||||||
| 858 | 1 | - | ||||||||||||||||||||||||
| 859 | ; | - | ||||||||||||||||||||||||
| 860 | storing_columns = | - | ||||||||||||||||||||||||
| 861 | 0 | - | ||||||||||||||||||||||||
| 862 | ; | - | ||||||||||||||||||||||||
| 863 | break; executed 161 times by 1 test: break;Executed by:
| 161 | ||||||||||||||||||||||||
| 864 | case executed 186 times by 1 test: 'b':case 'b':Executed by:
executed 186 times by 1 test: case 'b':Executed by:
| 186 | ||||||||||||||||||||||||
| 865 | balance_columns = | - | ||||||||||||||||||||||||
| 866 | 1 | - | ||||||||||||||||||||||||
| 867 | ; | - | ||||||||||||||||||||||||
| 868 | break; executed 186 times by 1 test: break;Executed by:
| 186 | ||||||||||||||||||||||||
| 869 | case executed 2 times by 1 test: 'c':case 'c':Executed by:
executed 2 times by 1 test: case 'c':Executed by:
| 2 | ||||||||||||||||||||||||
| 870 | use_cntrl_prefix = | - | ||||||||||||||||||||||||
| 871 | 1 | - | ||||||||||||||||||||||||
| 872 | ; | - | ||||||||||||||||||||||||
| 873 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||
| 874 | case executed 8 times by 1 test: 'd':case 'd':Executed by:
executed 8 times by 1 test: case 'd':Executed by:
| 8 | ||||||||||||||||||||||||
| 875 | double_space = | - | ||||||||||||||||||||||||
| 876 | 1 | - | ||||||||||||||||||||||||
| 877 | ; | - | ||||||||||||||||||||||||
| 878 | break; executed 8 times by 1 test: break;Executed by:
| 8 | ||||||||||||||||||||||||
| 879 | case executed 732 times by 1 test: 'D':case 'D':Executed by:
executed 732 times by 1 test: case 'D':Executed by:
| 732 | ||||||||||||||||||||||||
| 880 | date_format = optarg; | - | ||||||||||||||||||||||||
| 881 | break; executed 732 times by 1 test: break;Executed by:
| 732 | ||||||||||||||||||||||||
| 882 | case executed 37 times by 1 test: 'e':case 'e':Executed by:
executed 37 times by 1 test: case 'e':Executed by:
| 37 | ||||||||||||||||||||||||
| 883 | if (optarg
| 10-27 | ||||||||||||||||||||||||
| 884 | getoptarg (optarg, 'e', &input_tab_char, executed 27 times by 1 test: getoptarg (optarg, 'e', &input_tab_char, &chars_per_input_tab);Executed by:
| 27 | ||||||||||||||||||||||||
| 885 | &chars_per_input_tab); executed 27 times by 1 test: getoptarg (optarg, 'e', &input_tab_char, &chars_per_input_tab);Executed by:
| 27 | ||||||||||||||||||||||||
| 886 | - | |||||||||||||||||||||||||
| 887 | untabify_input = | - | ||||||||||||||||||||||||
| 888 | 1 | - | ||||||||||||||||||||||||
| 889 | ; | - | ||||||||||||||||||||||||
| 890 | break; executed 37 times by 1 test: break;Executed by:
| 37 | ||||||||||||||||||||||||
| 891 | case executed 334 times by 1 test: 'f':case 'f':Executed by:
executed 334 times by 1 test: case 'f':Executed by:
| 334 | ||||||||||||||||||||||||
| 892 | case executed 1 time by 1 test: 'F':case 'F':Executed by:
executed 1 time by 1 test: case 'F':Executed by:
| 1 | ||||||||||||||||||||||||
| 893 | use_form_feed = | - | ||||||||||||||||||||||||
| 894 | 1 | - | ||||||||||||||||||||||||
| 895 | ; | - | ||||||||||||||||||||||||
| 896 | break; executed 335 times by 1 test: break;Executed by:
| 335 | ||||||||||||||||||||||||
| 897 | case executed 733 times by 1 test: 'h':case 'h':Executed by:
executed 733 times by 1 test: case 'h':Executed by:
| 733 | ||||||||||||||||||||||||
| 898 | custom_header = optarg; | - | ||||||||||||||||||||||||
| 899 | break; executed 733 times by 1 test: break;Executed by:
| 733 | ||||||||||||||||||||||||
| 900 | case executed 7 times by 1 test: 'i':case 'i':Executed by:
executed 7 times by 1 test: case 'i':Executed by:
| 7 | ||||||||||||||||||||||||
| 901 | if (optarg
| 1-6 | ||||||||||||||||||||||||
| 902 | getoptarg (optarg, 'i', &output_tab_char, executed 6 times by 1 test: getoptarg (optarg, 'i', &output_tab_char, &chars_per_output_tab);Executed by:
| 6 | ||||||||||||||||||||||||
| 903 | &chars_per_output_tab); executed 6 times by 1 test: getoptarg (optarg, 'i', &output_tab_char, &chars_per_output_tab);Executed by:
| 6 | ||||||||||||||||||||||||
| 904 | - | |||||||||||||||||||||||||
| 905 | tabify_output = | - | ||||||||||||||||||||||||
| 906 | 1 | - | ||||||||||||||||||||||||
| 907 | ; | - | ||||||||||||||||||||||||
| 908 | break; executed 7 times by 1 test: break;Executed by:
| 7 | ||||||||||||||||||||||||
| 909 | case executed 32 times by 1 test: 'J':case 'J':Executed by:
executed 32 times by 1 test: case 'J':Executed by:
| 32 | ||||||||||||||||||||||||
| 910 | join_lines = | - | ||||||||||||||||||||||||
| 911 | 1 | - | ||||||||||||||||||||||||
| 912 | ; | - | ||||||||||||||||||||||||
| 913 | break; executed 32 times by 1 test: break;Executed by:
| 32 | ||||||||||||||||||||||||
| 914 | case executed 472 times by 1 test: 'l':case 'l':Executed by:
executed 472 times by 1 test: case 'l':Executed by:
| 472 | ||||||||||||||||||||||||
| 915 | getoptnum (optarg, 1, &lines_per_page, | - | ||||||||||||||||||||||||
| 916 | - | |||||||||||||||||||||||||
| 917 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 918 | "'-l PAGE_LENGTH' invalid number of lines" | - | ||||||||||||||||||||||||
| 919 | , 5) | - | ||||||||||||||||||||||||
| 920 | ); | - | ||||||||||||||||||||||||
| 921 | break; executed 470 times by 1 test: break;Executed by:
| 470 | ||||||||||||||||||||||||
| 922 | case executed 39 times by 1 test: 'm':case 'm':Executed by:
executed 39 times by 1 test: case 'm':Executed by:
| 39 | ||||||||||||||||||||||||
| 923 | parallel_files = | - | ||||||||||||||||||||||||
| 924 | 1 | - | ||||||||||||||||||||||||
| 925 | ; | - | ||||||||||||||||||||||||
| 926 | storing_columns = | - | ||||||||||||||||||||||||
| 927 | 0 | - | ||||||||||||||||||||||||
| 928 | ; | - | ||||||||||||||||||||||||
| 929 | break; executed 39 times by 1 test: break;Executed by:
| 39 | ||||||||||||||||||||||||
| 930 | case executed 193 times by 1 test: 'n':case 'n':Executed by:
executed 193 times by 1 test: case 'n':Executed by:
| 193 | ||||||||||||||||||||||||
| 931 | numbered_lines = | - | ||||||||||||||||||||||||
| 932 | 1 | - | ||||||||||||||||||||||||
| 933 | ; | - | ||||||||||||||||||||||||
| 934 | if (optarg
| 25-168 | ||||||||||||||||||||||||
| 935 | getoptarg (optarg, 'n', &number_separator, executed 168 times by 1 test: getoptarg (optarg, 'n', &number_separator, &chars_per_number);Executed by:
| 168 | ||||||||||||||||||||||||
| 936 | &chars_per_number); executed 168 times by 1 test: getoptarg (optarg, 'n', &number_separator, &chars_per_number);Executed by:
| 168 | ||||||||||||||||||||||||
| 937 | break; executed 193 times by 1 test: break;Executed by:
| 193 | ||||||||||||||||||||||||
| 938 | case executed 17 times by 1 test: 'N':case 'N':Executed by:
executed 17 times by 1 test: case 'N':Executed by:
| 17 | ||||||||||||||||||||||||
| 939 | skip_count = | - | ||||||||||||||||||||||||
| 940 | 0 | - | ||||||||||||||||||||||||
| 941 | ; | - | ||||||||||||||||||||||||
| 942 | getoptnum (optarg, | - | ||||||||||||||||||||||||
| 943 | (-0x7fffffff - 1) | - | ||||||||||||||||||||||||
| 944 | , &start_line_num, | - | ||||||||||||||||||||||||
| 945 | - | |||||||||||||||||||||||||
| 946 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 947 | "'-N NUMBER' invalid starting line number" | - | ||||||||||||||||||||||||
| 948 | , 5) | - | ||||||||||||||||||||||||
| 949 | ); | - | ||||||||||||||||||||||||
| 950 | break; executed 15 times by 1 test: break;Executed by:
| 15 | ||||||||||||||||||||||||
| 951 | case executed 39 times by 1 test: 'o':case 'o':Executed by:
executed 39 times by 1 test: case 'o':Executed by:
| 39 | ||||||||||||||||||||||||
| 952 | getoptnum (optarg, 0, &chars_per_margin, | - | ||||||||||||||||||||||||
| 953 | - | |||||||||||||||||||||||||
| 954 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 955 | "'-o MARGIN' invalid line offset" | - | ||||||||||||||||||||||||
| 956 | , 5) | - | ||||||||||||||||||||||||
| 957 | ); | - | ||||||||||||||||||||||||
| 958 | break; executed 37 times by 1 test: break;Executed by:
| 37 | ||||||||||||||||||||||||
| 959 | case executed 2 times by 1 test: 'r':case 'r':Executed by:
executed 2 times by 1 test: case 'r':Executed by:
| 2 | ||||||||||||||||||||||||
| 960 | ignore_failed_opens = | - | ||||||||||||||||||||||||
| 961 | 1 | - | ||||||||||||||||||||||||
| 962 | ; | - | ||||||||||||||||||||||||
| 963 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||
| 964 | case executed 17 times by 1 test: 's':case 's':Executed by:
executed 17 times by 1 test: case 's':Executed by:
| 17 | ||||||||||||||||||||||||
| 965 | old_options = | - | ||||||||||||||||||||||||
| 966 | 1 | - | ||||||||||||||||||||||||
| 967 | ; | - | ||||||||||||||||||||||||
| 968 | old_s = | - | ||||||||||||||||||||||||
| 969 | 1 | - | ||||||||||||||||||||||||
| 970 | ; | - | ||||||||||||||||||||||||
| 971 | if (!use_col_separator
| 0-17 | ||||||||||||||||||||||||
| 972 | separator_string (optarg); executed 9 times by 1 test: separator_string (optarg);Executed by:
| 9 | ||||||||||||||||||||||||
| 973 | break; executed 17 times by 1 test: break;Executed by:
| 17 | ||||||||||||||||||||||||
| 974 | case executed 43 times by 1 test: 'S':case 'S':Executed by:
executed 43 times by 1 test: case 'S':Executed by:
| 43 | ||||||||||||||||||||||||
| 975 | old_s = | - | ||||||||||||||||||||||||
| 976 | 0 | - | ||||||||||||||||||||||||
| 977 | ; | - | ||||||||||||||||||||||||
| 978 | - | |||||||||||||||||||||||||
| 979 | col_sep_string = ""; | - | ||||||||||||||||||||||||
| 980 | col_sep_length = 0; | - | ||||||||||||||||||||||||
| 981 | use_col_separator = | - | ||||||||||||||||||||||||
| 982 | 1 | - | ||||||||||||||||||||||||
| 983 | ; | - | ||||||||||||||||||||||||
| 984 | if (optarg
| 7-36 | ||||||||||||||||||||||||
| 985 | separator_string (optarg); executed 36 times by 1 test: separator_string (optarg);Executed by:
| 36 | ||||||||||||||||||||||||
| 986 | break; executed 43 times by 1 test: break;Executed by:
| 43 | ||||||||||||||||||||||||
| 987 | case executed 118 times by 1 test: 't':case 't':Executed by:
executed 118 times by 1 test: case 't':Executed by:
| 118 | ||||||||||||||||||||||||
| 988 | extremities = | - | ||||||||||||||||||||||||
| 989 | 0 | - | ||||||||||||||||||||||||
| 990 | ; | - | ||||||||||||||||||||||||
| 991 | keep_FF = | - | ||||||||||||||||||||||||
| 992 | 1 | - | ||||||||||||||||||||||||
| 993 | ; | - | ||||||||||||||||||||||||
| 994 | break; executed 118 times by 1 test: break;Executed by:
| 118 | ||||||||||||||||||||||||
| 995 | case executed 41 times by 1 test: 'T':case 'T':Executed by:
executed 41 times by 1 test: case 'T':Executed by:
| 41 | ||||||||||||||||||||||||
| 996 | extremities = | - | ||||||||||||||||||||||||
| 997 | 0 | - | ||||||||||||||||||||||||
| 998 | ; | - | ||||||||||||||||||||||||
| 999 | keep_FF = | - | ||||||||||||||||||||||||
| 1000 | 0 | - | ||||||||||||||||||||||||
| 1001 | ; | - | ||||||||||||||||||||||||
| 1002 | break; executed 41 times by 1 test: break;Executed by:
| 41 | ||||||||||||||||||||||||
| 1003 | case executed 2 times by 1 test: 'v':case 'v':Executed by:
executed 2 times by 1 test: case 'v':Executed by:
| 2 | ||||||||||||||||||||||||
| 1004 | use_esc_sequence = | - | ||||||||||||||||||||||||
| 1005 | 1 | - | ||||||||||||||||||||||||
| 1006 | ; | - | ||||||||||||||||||||||||
| 1007 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||
| 1008 | case executed 19 times by 1 test: 'w':case 'w':Executed by:
executed 19 times by 1 test: case 'w':Executed by:
| 19 | ||||||||||||||||||||||||
| 1009 | old_options = | - | ||||||||||||||||||||||||
| 1010 | 1 | - | ||||||||||||||||||||||||
| 1011 | ; | - | ||||||||||||||||||||||||
| 1012 | old_w = | - | ||||||||||||||||||||||||
| 1013 | 1 | - | ||||||||||||||||||||||||
| 1014 | ; | - | ||||||||||||||||||||||||
| 1015 | { | - | ||||||||||||||||||||||||
| 1016 | int tmp_cpl; | - | ||||||||||||||||||||||||
| 1017 | getoptnum (optarg, 1, &tmp_cpl, | - | ||||||||||||||||||||||||
| 1018 | - | |||||||||||||||||||||||||
| 1019 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1020 | "'-w PAGE_WIDTH' invalid number of characters" | - | ||||||||||||||||||||||||
| 1021 | , 5) | - | ||||||||||||||||||||||||
| 1022 | ); | - | ||||||||||||||||||||||||
| 1023 | if (! truncate_lines
| 0-17 | ||||||||||||||||||||||||
| 1024 | chars_per_line = tmp_cpl; executed 17 times by 1 test: chars_per_line = tmp_cpl;Executed by:
| 17 | ||||||||||||||||||||||||
| 1025 | } | - | ||||||||||||||||||||||||
| 1026 | break; executed 17 times by 1 test: break;Executed by:
| 17 | ||||||||||||||||||||||||
| 1027 | case executed 58 times by 1 test: 'W':case 'W':Executed by:
executed 58 times by 1 test: case 'W':Executed by:
| 58 | ||||||||||||||||||||||||
| 1028 | old_w = | - | ||||||||||||||||||||||||
| 1029 | 0 | - | ||||||||||||||||||||||||
| 1030 | ; | - | ||||||||||||||||||||||||
| 1031 | truncate_lines = | - | ||||||||||||||||||||||||
| 1032 | 1 | - | ||||||||||||||||||||||||
| 1033 | ; | - | ||||||||||||||||||||||||
| 1034 | getoptnum (optarg, 1, &chars_per_line, | - | ||||||||||||||||||||||||
| 1035 | - | |||||||||||||||||||||||||
| 1036 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1037 | "'-W PAGE_WIDTH' invalid number of characters" | - | ||||||||||||||||||||||||
| 1038 | , 5) | - | ||||||||||||||||||||||||
| 1039 | ); | - | ||||||||||||||||||||||||
| 1040 | break; executed 56 times by 1 test: break;Executed by:
| 56 | ||||||||||||||||||||||||
| 1041 | case executed 33 times by 1 test: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR:Executed by:
executed 33 times by 1 test: usage (case GETOPT_HELP_CHAR:Executed by:
| 33 | ||||||||||||||||||||||||
| 1042 | 0 | - | ||||||||||||||||||||||||
| 1043 | ); break; never executed: ;break; | 0 | ||||||||||||||||||||||||
| 1044 | case executed 6 times by 1 test: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR:Executed by:
executed 6 times by 1 test: version_etc (case GETOPT_VERSION_CHAR:Executed by:
| 6 | ||||||||||||||||||||||||
| 1045 | stdout | - | ||||||||||||||||||||||||
| 1046 | , "pr", "GNU coreutils", Version, ("Pete TerMaat"), ("Roland Huebner"), (char *) | - | ||||||||||||||||||||||||
| 1047 | ((void *)0) | - | ||||||||||||||||||||||||
| 1048 | ); exit ( executed 6 times by 1 test: exit ( 0 );Executed by:
| 6 | ||||||||||||||||||||||||
| 1049 | 0 executed 6 times by 1 test: exit ( 0 );Executed by:
| 6 | ||||||||||||||||||||||||
| 1050 | ); executed 6 times by 1 test: break;exit ( 0 );Executed by:
never executed: ;break; | 0-6 | ||||||||||||||||||||||||
| 1051 | default executed 4 times by 1 test: :default:Executed by:
executed 4 times by 1 test: default:Executed by:
| 4 | ||||||||||||||||||||||||
| 1052 | usage ( | - | ||||||||||||||||||||||||
| 1053 | 1 | - | ||||||||||||||||||||||||
| 1054 | ); | - | ||||||||||||||||||||||||
| 1055 | break; never executed: break; | 0 | ||||||||||||||||||||||||
| 1056 | } | - | ||||||||||||||||||||||||
| 1057 | } | - | ||||||||||||||||||||||||
| 1058 | - | |||||||||||||||||||||||||
| 1059 | if (column_count_string
| 311-420 | ||||||||||||||||||||||||
| 1060 | { | - | ||||||||||||||||||||||||
| 1061 | parse_column_count (column_count_string); | - | ||||||||||||||||||||||||
| 1062 | free (column_count_string); | - | ||||||||||||||||||||||||
| 1063 | } executed 414 times by 1 test: end of blockExecuted by:
| 414 | ||||||||||||||||||||||||
| 1064 | - | |||||||||||||||||||||||||
| 1065 | if (! date_format
| 4-721 | ||||||||||||||||||||||||
| 1066 | date_format = (getenv ("POSIXLY_CORRECT")
executed 4 times by 1 test: date_format = (getenv ("POSIXLY_CORRECT") && !hard_locale ( 2 ) ? "%b %e %H:%M %Y" : "%Y-%m-%d %H:%M");Executed by:
| 0-4 | ||||||||||||||||||||||||
| 1067 | 2
executed 4 times by 1 test: date_format = (getenv ("POSIXLY_CORRECT") && !hard_locale ( 2 ) ? "%b %e %H:%M %Y" : "%Y-%m-%d %H:%M");Executed by:
| 0-4 | ||||||||||||||||||||||||
| 1068 | )
executed 4 times by 1 test: date_format = (getenv ("POSIXLY_CORRECT") && !hard_locale ( 2 ) ? "%b %e %H:%M %Y" : "%Y-%m-%d %H:%M");Executed by:
| 0-4 | ||||||||||||||||||||||||
| 1069 | ? "%b %e %H:%M %Y" executed 4 times by 1 test: date_format = (getenv ("POSIXLY_CORRECT") && !hard_locale ( 2 ) ? "%b %e %H:%M %Y" : "%Y-%m-%d %H:%M");Executed by:
| 4 | ||||||||||||||||||||||||
| 1070 | : "%Y-%m-%d %H:%M"); executed 4 times by 1 test: date_format = (getenv ("POSIXLY_CORRECT") && !hard_locale ( 2 ) ? "%b %e %H:%M %Y" : "%Y-%m-%d %H:%M");Executed by:
| 4 | ||||||||||||||||||||||||
| 1071 | - | |||||||||||||||||||||||||
| 1072 | localtz = tzalloc (getenv ("TZ")); | - | ||||||||||||||||||||||||
| 1073 | - | |||||||||||||||||||||||||
| 1074 | - | |||||||||||||||||||||||||
| 1075 | if (first_page_number == 0
| 242-483 | ||||||||||||||||||||||||
| 1076 | first_page_number = 1; executed 483 times by 1 test: first_page_number = 1;Executed by:
| 483 | ||||||||||||||||||||||||
| 1077 | - | |||||||||||||||||||||||||
| 1078 | if (parallel_files
| 0-688 | ||||||||||||||||||||||||
| 1079 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1080 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1081 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1082 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1083 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1084 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1085 | "cannot specify number of columns when printing in parallel" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1086 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1087 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1088 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1089 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1090 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1091 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1092 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1093 | "cannot specify number of columns when printing in parallel" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1094 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1095 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1096 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1097 | ) ? (void) 0 : __builtin_unreachable ())))) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1098 | ; never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of columns when printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *...f columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify number of columns when printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1099 | - | |||||||||||||||||||||||||
| 1100 | if (parallel_files
| 0-688 | ||||||||||||||||||||||||
| 1101 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1102 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1103 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1104 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1105 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1106 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1107 | "cannot specify both printing across and printing in parallel" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1108 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1109 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1110 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1111 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1112 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1113 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1114 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1115 | "cannot specify both printing across and printing in parallel" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1116 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1117 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1118 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1119 | ) ? (void) 0 : __builtin_unreachable ())))) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1120 | ; never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"cannot specify both printing across and printing in parallel\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void...g across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "cannot specify both printing across and printing in parallel" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||
| 1121 | - | |||||||||||||||||||||||||
| 1122 | - | |||||||||||||||||||||||||
| 1123 | - | |||||||||||||||||||||||||
| 1124 | - | |||||||||||||||||||||||||
| 1125 | - | |||||||||||||||||||||||||
| 1126 | if (old_options
| 27-698 | ||||||||||||||||||||||||
| 1127 | { | - | ||||||||||||||||||||||||
| 1128 | if (old_w
| 10-17 | ||||||||||||||||||||||||
| 1129 | { | - | ||||||||||||||||||||||||
| 1130 | if (parallel_files
| 2-15 | ||||||||||||||||||||||||
| 1131 | { | - | ||||||||||||||||||||||||
| 1132 | - | |||||||||||||||||||||||||
| 1133 | truncate_lines = | - | ||||||||||||||||||||||||
| 1134 | 1 | - | ||||||||||||||||||||||||
| 1135 | ; | - | ||||||||||||||||||||||||
| 1136 | if (old_s
| 5-6 | ||||||||||||||||||||||||
| 1137 | - | |||||||||||||||||||||||||
| 1138 | - | |||||||||||||||||||||||||
| 1139 | use_col_separator = executed 6 times by 1 test: use_col_separator = 1 ;Executed by:
| 6 | ||||||||||||||||||||||||
| 1140 | 1 executed 6 times by 1 test: use_col_separator = 1 ;Executed by:
| 6 | ||||||||||||||||||||||||
| 1141 | ; executed 6 times by 1 test: use_col_separator = 1 ;Executed by:
| 6 | ||||||||||||||||||||||||
| 1142 | } executed 11 times by 1 test: end of blockExecuted by:
| 11 | ||||||||||||||||||||||||
| 1143 | else | - | ||||||||||||||||||||||||
| 1144 | - | |||||||||||||||||||||||||
| 1145 | - | |||||||||||||||||||||||||
| 1146 | join_lines = executed 6 times by 1 test: join_lines = 1 ;Executed by:
| 6 | ||||||||||||||||||||||||
| 1147 | 1 executed 6 times by 1 test: join_lines = 1 ;Executed by:
| 6 | ||||||||||||||||||||||||
| 1148 | ; executed 6 times by 1 test: join_lines = 1 ;Executed by:
| 6 | ||||||||||||||||||||||||
| 1149 | } | - | ||||||||||||||||||||||||
| 1150 | else if (!use_col_separator
| 0-10 | ||||||||||||||||||||||||
| 1151 | { | - | ||||||||||||||||||||||||
| 1152 | - | |||||||||||||||||||||||||
| 1153 | if (old_s
| 0-10 | ||||||||||||||||||||||||
| 1154 | { | - | ||||||||||||||||||||||||
| 1155 | if (!truncate_lines
| 0-10 | ||||||||||||||||||||||||
| 1156 | { | - | ||||||||||||||||||||||||
| 1157 | - | |||||||||||||||||||||||||
| 1158 | - | |||||||||||||||||||||||||
| 1159 | join_lines = | - | ||||||||||||||||||||||||
| 1160 | 1 | - | ||||||||||||||||||||||||
| 1161 | ; | - | ||||||||||||||||||||||||
| 1162 | if (col_sep_length > 0
| 4-6 | ||||||||||||||||||||||||
| 1163 | - | |||||||||||||||||||||||||
| 1164 | use_col_separator = executed 6 times by 1 test: use_col_separator = 1 ;Executed by:
| 6 | ||||||||||||||||||||||||
| 1165 | 1 executed 6 times by 1 test: use_col_separator = 1 ;Executed by:
| 6 | ||||||||||||||||||||||||
| 1166 | ; executed 6 times by 1 test: use_col_separator = 1 ;Executed by:
| 6 | ||||||||||||||||||||||||
| 1167 | } executed 10 times by 1 test: end of blockExecuted by:
| 10 | ||||||||||||||||||||||||
| 1168 | else | - | ||||||||||||||||||||||||
| 1169 | - | |||||||||||||||||||||||||
| 1170 | - | |||||||||||||||||||||||||
| 1171 | - | |||||||||||||||||||||||||
| 1172 | use_col_separator = never executed: use_col_separator = 1 ; | 0 | ||||||||||||||||||||||||
| 1173 | 1 never executed: use_col_separator = 1 ; | 0 | ||||||||||||||||||||||||
| 1174 | ; never executed: use_col_separator = 1 ; | 0 | ||||||||||||||||||||||||
| 1175 | } | - | ||||||||||||||||||||||||
| 1176 | } executed 10 times by 1 test: end of blockExecuted by:
| 10 | ||||||||||||||||||||||||
| 1177 | } executed 27 times by 1 test: end of blockExecuted by:
| 27 | ||||||||||||||||||||||||
| 1178 | - | |||||||||||||||||||||||||
| 1179 | for (; optind < argc
| 0-725 | ||||||||||||||||||||||||
| 1180 | { | - | ||||||||||||||||||||||||
| 1181 | file_names[n_files++] = argv[optind]; | - | ||||||||||||||||||||||||
| 1182 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1183 | - | |||||||||||||||||||||||||
| 1184 | if (n_files == 0
| 271-454 | ||||||||||||||||||||||||
| 1185 | { | - | ||||||||||||||||||||||||
| 1186 | - | |||||||||||||||||||||||||
| 1187 | print_files (0, | - | ||||||||||||||||||||||||
| 1188 | ((void *)0) | - | ||||||||||||||||||||||||
| 1189 | ); | - | ||||||||||||||||||||||||
| 1190 | } executed 454 times by 1 test: end of blockExecuted by:
| 454 | ||||||||||||||||||||||||
| 1191 | else | - | ||||||||||||||||||||||||
| 1192 | { | - | ||||||||||||||||||||||||
| 1193 | if (parallel_files
| 37-234 | ||||||||||||||||||||||||
| 1194 | print_files (n_files, file_names); executed 37 times by 1 test: print_files (n_files, file_names);Executed by:
| 37 | ||||||||||||||||||||||||
| 1195 | else | - | ||||||||||||||||||||||||
| 1196 | { | - | ||||||||||||||||||||||||
| 1197 | for (unsigned int i = 0; i < n_files
| 234 | ||||||||||||||||||||||||
| 1198 | print_files (1, &file_names[i]); executed 234 times by 1 test: print_files (1, &file_names[i]);Executed by:
| 234 | ||||||||||||||||||||||||
| 1199 | } executed 234 times by 1 test: end of blockExecuted by:
| 234 | ||||||||||||||||||||||||
| 1200 | } | - | ||||||||||||||||||||||||
| 1201 | - | |||||||||||||||||||||||||
| 1202 | cleanup (); | - | ||||||||||||||||||||||||
| 1203 | ; | - | ||||||||||||||||||||||||
| 1204 | - | |||||||||||||||||||||||||
| 1205 | if (have_read_stdin
| 271-454 | ||||||||||||||||||||||||
| 1206 | rpl_fclose
| 0-454 | ||||||||||||||||||||||||
| 1207 | (
| 0-454 | ||||||||||||||||||||||||
| 1208 | stdin
| 0-454 | ||||||||||||||||||||||||
| 1209 | ) ==
| 0-454 | ||||||||||||||||||||||||
| 1210 | (-1)
| 0-454 | ||||||||||||||||||||||||
| 1211 | ) | - | ||||||||||||||||||||||||
| 1212 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1213 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1214 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1215 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1216 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1217 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1218 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1219 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1220 | "standard input" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1221 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1222 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1223 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1224 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1225 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1226 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1227 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1228 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1229 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1230 | "standard input" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1231 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1232 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1233 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1234 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1235 | return executed 725 times by 1 test: failed_opens ? return failed_opens ? 1 : 0 ;Executed by:
executed 725 times by 1 test: return failed_opens ? 1 : 0 ;Executed by:
| 725 | ||||||||||||||||||||||||
| 1236 | 1 executed 725 times by 1 test: return failed_opens ? 1 : 0 ;Executed by:
| 725 | ||||||||||||||||||||||||
| 1237 | : executed 725 times by 1 test: return failed_opens ? 1 : 0 ;Executed by:
| 725 | ||||||||||||||||||||||||
| 1238 | 0 executed 725 times by 1 test: return failed_opens ? 1 : 0 ;Executed by:
| 725 | ||||||||||||||||||||||||
| 1239 | ; executed 725 times by 1 test: return failed_opens ? 1 : 0 ;Executed by:
| 725 | ||||||||||||||||||||||||
| 1240 | } | - | ||||||||||||||||||||||||
| 1241 | - | |||||||||||||||||||||||||
| 1242 | - | |||||||||||||||||||||||||
| 1243 | - | |||||||||||||||||||||||||
| 1244 | static void | - | ||||||||||||||||||||||||
| 1245 | getoptnum (const char *n_str, int min, int *num, const char *err) | - | ||||||||||||||||||||||||
| 1246 | { | - | ||||||||||||||||||||||||
| 1247 | intmax_t tnum = xdectoimax (n_str, min, 0x7fffffff, "", err, 0); | - | ||||||||||||||||||||||||
| 1248 | *num = tnum; | - | ||||||||||||||||||||||||
| 1249 | } executed 1015 times by 1 test: end of blockExecuted by:
| 1015 | ||||||||||||||||||||||||
| 1250 | - | |||||||||||||||||||||||||
| 1251 | - | |||||||||||||||||||||||||
| 1252 | - | |||||||||||||||||||||||||
| 1253 | - | |||||||||||||||||||||||||
| 1254 | - | |||||||||||||||||||||||||
| 1255 | - | |||||||||||||||||||||||||
| 1256 | - | |||||||||||||||||||||||||
| 1257 | static void | - | ||||||||||||||||||||||||
| 1258 | getoptarg (char *arg, char switch_char, char *character, int *number) | - | ||||||||||||||||||||||||
| 1259 | { | - | ||||||||||||||||||||||||
| 1260 | if (!((unsigned int) (*arg) - '0' <= 9)
| 33-168 | ||||||||||||||||||||||||
| 1261 | * executed 168 times by 1 test: character = *arg++;*character = *arg++;Executed by:
executed 168 times by 1 test: *character = *arg++;Executed by:
| 168 | ||||||||||||||||||||||||
| 1262 | if (*
| 13-188 | ||||||||||||||||||||||||
| 1263 | { | - | ||||||||||||||||||||||||
| 1264 | long int tmp_long; | - | ||||||||||||||||||||||||
| 1265 | if (xstrtol (arg,
| 0-188 | ||||||||||||||||||||||||
| 1266 | ((void *)0)
| 0-188 | ||||||||||||||||||||||||
| 1267 | , 10, &tmp_long, "") != LONGINT_OK
| 0-188 | ||||||||||||||||||||||||
| 1268 | || tmp_long <= 0
| 0-188 | ||||||||||||||||||||||||
| 1269 | { | - | ||||||||||||||||||||||||
| 1270 | error (0, 0x7fffffff < tmp_long ? | - | ||||||||||||||||||||||||
| 1271 | 75 | - | ||||||||||||||||||||||||
| 1272 | : | - | ||||||||||||||||||||||||
| 1273 | (*__errno_location ()) | - | ||||||||||||||||||||||||
| 1274 | , | - | ||||||||||||||||||||||||
| 1275 | - | |||||||||||||||||||||||||
| 1276 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1277 | "'-%c' extra characters or invalid number in the argument: %s" | - | ||||||||||||||||||||||||
| 1278 | , 5) | - | ||||||||||||||||||||||||
| 1279 | , | - | ||||||||||||||||||||||||
| 1280 | switch_char, quote (arg)); | - | ||||||||||||||||||||||||
| 1281 | usage ( | - | ||||||||||||||||||||||||
| 1282 | 1 | - | ||||||||||||||||||||||||
| 1283 | ); | - | ||||||||||||||||||||||||
| 1284 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1285 | *number = tmp_long; | - | ||||||||||||||||||||||||
| 1286 | } executed 188 times by 1 test: end of blockExecuted by:
| 188 | ||||||||||||||||||||||||
| 1287 | } executed 201 times by 1 test: end of blockExecuted by:
| 201 | ||||||||||||||||||||||||
| 1288 | - | |||||||||||||||||||||||||
| 1289 | - | |||||||||||||||||||||||||
| 1290 | - | |||||||||||||||||||||||||
| 1291 | static void | - | ||||||||||||||||||||||||
| 1292 | init_parameters (int number_of_files) | - | ||||||||||||||||||||||||
| 1293 | { | - | ||||||||||||||||||||||||
| 1294 | int chars_used_by_number = 0; | - | ||||||||||||||||||||||||
| 1295 | - | |||||||||||||||||||||||||
| 1296 | lines_per_body = lines_per_page - lines_per_header - lines_per_footer; | - | ||||||||||||||||||||||||
| 1297 | if (lines_per_body <= 0
| 3-722 | ||||||||||||||||||||||||
| 1298 | { | - | ||||||||||||||||||||||||
| 1299 | extremities = | - | ||||||||||||||||||||||||
| 1300 | 0 | - | ||||||||||||||||||||||||
| 1301 | ; | - | ||||||||||||||||||||||||
| 1302 | keep_FF = | - | ||||||||||||||||||||||||
| 1303 | 1 | - | ||||||||||||||||||||||||
| 1304 | ; | - | ||||||||||||||||||||||||
| 1305 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||||||||
| 1306 | if (extremities ==
| 158-567 | ||||||||||||||||||||||||
| 1307 | 0
| 158-567 | ||||||||||||||||||||||||
| 1308 | ) | - | ||||||||||||||||||||||||
| 1309 | lines_per_body = lines_per_page; executed 158 times by 1 test: lines_per_body = lines_per_page;Executed by:
| 158 | ||||||||||||||||||||||||
| 1310 | - | |||||||||||||||||||||||||
| 1311 | if (double_space
| 6-719 | ||||||||||||||||||||||||
| 1312 | lines_per_body = lines_per_body / 2; executed 6 times by 1 test: lines_per_body = lines_per_body / 2;Executed by:
| 6 | ||||||||||||||||||||||||
| 1313 | - | |||||||||||||||||||||||||
| 1314 | - | |||||||||||||||||||||||||
| 1315 | - | |||||||||||||||||||||||||
| 1316 | if (number_of_files == 0
| 271-454 | ||||||||||||||||||||||||
| 1317 | parallel_files = executed 454 times by 1 test: parallel_files = 0 ;Executed by:
| 454 | ||||||||||||||||||||||||
| 1318 | 0 executed 454 times by 1 test: parallel_files = 0 ;Executed by:
| 454 | ||||||||||||||||||||||||
| 1319 | ; executed 454 times by 1 test: parallel_files = 0 ;Executed by:
| 454 | ||||||||||||||||||||||||
| 1320 | - | |||||||||||||||||||||||||
| 1321 | if (parallel_files
| 37-688 | ||||||||||||||||||||||||
| 1322 | columns = number_of_files; executed 37 times by 1 test: columns = number_of_files;Executed by:
| 37 | ||||||||||||||||||||||||
| 1323 | - | |||||||||||||||||||||||||
| 1324 | - | |||||||||||||||||||||||||
| 1325 | - | |||||||||||||||||||||||||
| 1326 | if (storing_columns
| 196-529 | ||||||||||||||||||||||||
| 1327 | balance_columns = executed 529 times by 1 test: balance_columns = 1 ;Executed by:
| 529 | ||||||||||||||||||||||||
| 1328 | 1 executed 529 times by 1 test: balance_columns = 1 ;Executed by:
| 529 | ||||||||||||||||||||||||
| 1329 | ; executed 529 times by 1 test: balance_columns = 1 ;Executed by:
| 529 | ||||||||||||||||||||||||
| 1330 | - | |||||||||||||||||||||||||
| 1331 | - | |||||||||||||||||||||||||
| 1332 | if (columns > 1
| 271-454 | ||||||||||||||||||||||||
| 1333 | { | - | ||||||||||||||||||||||||
| 1334 | if (!use_col_separator
| 54-400 | ||||||||||||||||||||||||
| 1335 | { | - | ||||||||||||||||||||||||
| 1336 | - | |||||||||||||||||||||||||
| 1337 | if (join_lines
| 22-378 | ||||||||||||||||||||||||
| 1338 | col_sep_string = line_separator; executed 22 times by 1 test: col_sep_string = line_separator;Executed by:
| 22 | ||||||||||||||||||||||||
| 1339 | else | - | ||||||||||||||||||||||||
| 1340 | col_sep_string = column_separator; executed 378 times by 1 test: col_sep_string = column_separator;Executed by:
| 378 | ||||||||||||||||||||||||
| 1341 | - | |||||||||||||||||||||||||
| 1342 | col_sep_length = 1; | - | ||||||||||||||||||||||||
| 1343 | use_col_separator = | - | ||||||||||||||||||||||||
| 1344 | 1 | - | ||||||||||||||||||||||||
| 1345 | ; | - | ||||||||||||||||||||||||
| 1346 | } executed 400 times by 1 test: end of blockExecuted by:
| 400 | ||||||||||||||||||||||||
| 1347 | - | |||||||||||||||||||||||||
| 1348 | - | |||||||||||||||||||||||||
| 1349 | else if (!join_lines
| 0-42 | ||||||||||||||||||||||||
| 1350 | col_sep_string = column_separator; never executed: col_sep_string = column_separator; | 0 | ||||||||||||||||||||||||
| 1351 | - | |||||||||||||||||||||||||
| 1352 | truncate_lines = | - | ||||||||||||||||||||||||
| 1353 | 1 | - | ||||||||||||||||||||||||
| 1354 | ; | - | ||||||||||||||||||||||||
| 1355 | tabify_output = | - | ||||||||||||||||||||||||
| 1356 | 1 | - | ||||||||||||||||||||||||
| 1357 | ; | - | ||||||||||||||||||||||||
| 1358 | } executed 454 times by 1 test: end of blockExecuted by:
| 454 | ||||||||||||||||||||||||
| 1359 | else | - | ||||||||||||||||||||||||
| 1360 | storing_columns = executed 271 times by 1 test: storing_columns = 0 ;Executed by:
| 271 | ||||||||||||||||||||||||
| 1361 | 0 executed 271 times by 1 test: storing_columns = 0 ;Executed by:
| 271 | ||||||||||||||||||||||||
| 1362 | ; executed 271 times by 1 test: storing_columns = 0 ;Executed by:
| 271 | ||||||||||||||||||||||||
| 1363 | - | |||||||||||||||||||||||||
| 1364 | - | |||||||||||||||||||||||||
| 1365 | if (join_lines
| 43-682 | ||||||||||||||||||||||||
| 1366 | truncate_lines = executed 43 times by 1 test: truncate_lines = 0 ;Executed by:
| 43 | ||||||||||||||||||||||||
| 1367 | 0 executed 43 times by 1 test: truncate_lines = 0 ;Executed by:
| 43 | ||||||||||||||||||||||||
| 1368 | ; executed 43 times by 1 test: truncate_lines = 0 ;Executed by:
| 43 | ||||||||||||||||||||||||
| 1369 | - | |||||||||||||||||||||||||
| 1370 | if (numbered_lines
| 192-533 | ||||||||||||||||||||||||
| 1371 | { | - | ||||||||||||||||||||||||
| 1372 | int chars_per_default_tab = 8; | - | ||||||||||||||||||||||||
| 1373 | - | |||||||||||||||||||||||||
| 1374 | line_count = start_line_num; | - | ||||||||||||||||||||||||
| 1375 | - | |||||||||||||||||||||||||
| 1376 | - | |||||||||||||||||||||||||
| 1377 | - | |||||||||||||||||||||||||
| 1378 | - | |||||||||||||||||||||||||
| 1379 | - | |||||||||||||||||||||||||
| 1380 | - | |||||||||||||||||||||||||
| 1381 | - | |||||||||||||||||||||||||
| 1382 | if (number_separator == '\t'
| 27-165 | ||||||||||||||||||||||||
| 1383 | number_width = (chars_per_number executed 27 times by 1 test: number_width = (chars_per_number + ((chars_per_default_tab) - ((chars_per_number) % (chars_per_default_tab))));Executed by:
| 27 | ||||||||||||||||||||||||
| 1384 | + ((chars_per_default_tab) - ((chars_per_number) % (chars_per_default_tab)))); executed 27 times by 1 test: number_width = (chars_per_number + ((chars_per_default_tab) - ((chars_per_number) % (chars_per_default_tab))));Executed by:
| 27 | ||||||||||||||||||||||||
| 1385 | else | - | ||||||||||||||||||||||||
| 1386 | number_width = chars_per_number + 1; executed 165 times by 1 test: number_width = chars_per_number + 1;Executed by:
| 165 | ||||||||||||||||||||||||
| 1387 | - | |||||||||||||||||||||||||
| 1388 | - | |||||||||||||||||||||||||
| 1389 | - | |||||||||||||||||||||||||
| 1390 | if (parallel_files
| 12-180 | ||||||||||||||||||||||||
| 1391 | chars_used_by_number = number_width; executed 12 times by 1 test: chars_used_by_number = number_width;Executed by:
| 12 | ||||||||||||||||||||||||
| 1392 | } executed 192 times by 1 test: end of blockExecuted by:
| 192 | ||||||||||||||||||||||||
| 1393 | - | |||||||||||||||||||||||||
| 1394 | int sep_chars, useful_chars; | - | ||||||||||||||||||||||||
| 1395 | if (__builtin_mul_overflow (columns - 1, col_sep_length, &sep_chars)
| 0-725 | ||||||||||||||||||||||||
| 1396 | sep_chars = 0x7fffffff; never executed: sep_chars = 0x7fffffff; | 0 | ||||||||||||||||||||||||
| 1397 | if (__builtin_sub_overflow (chars_per_line - chars_used_by_number, sep_chars, &useful_chars)
| 0-725 | ||||||||||||||||||||||||
| 1398 | ) | - | ||||||||||||||||||||||||
| 1399 | useful_chars = 0; never executed: useful_chars = 0; | 0 | ||||||||||||||||||||||||
| 1400 | chars_per_column = useful_chars / columns; | - | ||||||||||||||||||||||||
| 1401 | - | |||||||||||||||||||||||||
| 1402 | if (chars_per_column < 1
| 0-725 | ||||||||||||||||||||||||
| 1403 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1404 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1405 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1406 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1407 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1408 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1409 | "page width too narrow" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1410 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1411 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1412 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1413 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1414 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1415 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1416 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1417 | "page width too narrow" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1418 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1419 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1420 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1421 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page width too narrow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page width too narrow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1422 | - | |||||||||||||||||||||||||
| 1423 | if (numbered_lines
| 192-533 | ||||||||||||||||||||||||
| 1424 | { | - | ||||||||||||||||||||||||
| 1425 | free (number_buff); | - | ||||||||||||||||||||||||
| 1426 | number_buff = xmalloc ( | - | ||||||||||||||||||||||||
| 1427 | ((( | - | ||||||||||||||||||||||||
| 1428 | chars_per_number | - | ||||||||||||||||||||||||
| 1429 | )>( | - | ||||||||||||||||||||||||
| 1430 | (((((sizeof (line_number) * 8) - (! ((__typeof__ (line_number)) 0 < (__typeof__ (line_number)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (line_number)) 0 < (__typeof__ (line_number)) -1))) | - | ||||||||||||||||||||||||
| 1431 | ))?( | - | ||||||||||||||||||||||||
| 1432 | chars_per_number | - | ||||||||||||||||||||||||
| 1433 | ):( | - | ||||||||||||||||||||||||
| 1434 | (((((sizeof (line_number) * 8) - (! ((__typeof__ (line_number)) 0 < (__typeof__ (line_number)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (line_number)) 0 < (__typeof__ (line_number)) -1))) | - | ||||||||||||||||||||||||
| 1435 | )) | - | ||||||||||||||||||||||||
| 1436 | - | |||||||||||||||||||||||||
| 1437 | + 1); | - | ||||||||||||||||||||||||
| 1438 | } executed 192 times by 1 test: end of blockExecuted by:
| 192 | ||||||||||||||||||||||||
| 1439 | - | |||||||||||||||||||||||||
| 1440 | - | |||||||||||||||||||||||||
| 1441 | - | |||||||||||||||||||||||||
| 1442 | - | |||||||||||||||||||||||||
| 1443 | - | |||||||||||||||||||||||||
| 1444 | - | |||||||||||||||||||||||||
| 1445 | free (clump_buff); | - | ||||||||||||||||||||||||
| 1446 | clump_buff = xmalloc ( | - | ||||||||||||||||||||||||
| 1447 | ((( | - | ||||||||||||||||||||||||
| 1448 | 8 | - | ||||||||||||||||||||||||
| 1449 | )>( | - | ||||||||||||||||||||||||
| 1450 | chars_per_input_tab | - | ||||||||||||||||||||||||
| 1451 | ))?( | - | ||||||||||||||||||||||||
| 1452 | 8 | - | ||||||||||||||||||||||||
| 1453 | ):( | - | ||||||||||||||||||||||||
| 1454 | chars_per_input_tab | - | ||||||||||||||||||||||||
| 1455 | )) | - | ||||||||||||||||||||||||
| 1456 | ); | - | ||||||||||||||||||||||||
| 1457 | } executed 725 times by 1 test: end of blockExecuted by:
| 725 | ||||||||||||||||||||||||
| 1458 | static | - | ||||||||||||||||||||||||
| 1459 | _Bool | - | ||||||||||||||||||||||||
| 1460 | - | |||||||||||||||||||||||||
| 1461 | init_fps (int number_of_files, char **av) | - | ||||||||||||||||||||||||
| 1462 | { | - | ||||||||||||||||||||||||
| 1463 | COLUMN *p; | - | ||||||||||||||||||||||||
| 1464 | - | |||||||||||||||||||||||||
| 1465 | total_files = 0; | - | ||||||||||||||||||||||||
| 1466 | - | |||||||||||||||||||||||||
| 1467 | free (column_vector); | - | ||||||||||||||||||||||||
| 1468 | column_vector = xnmalloc (columns, sizeof (COLUMN)); | - | ||||||||||||||||||||||||
| 1469 | - | |||||||||||||||||||||||||
| 1470 | if (parallel_files
| 37-688 | ||||||||||||||||||||||||
| 1471 | { | - | ||||||||||||||||||||||||
| 1472 | int files_left = number_of_files; | - | ||||||||||||||||||||||||
| 1473 | for (p = column_vector; files_left--
| 37-83 | ||||||||||||||||||||||||
| 1474 | { | - | ||||||||||||||||||||||||
| 1475 | if (! open_file (*av, p)
| 0-83 | ||||||||||||||||||||||||
| 1476 | { | - | ||||||||||||||||||||||||
| 1477 | --p; | - | ||||||||||||||||||||||||
| 1478 | --columns; | - | ||||||||||||||||||||||||
| 1479 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1480 | } executed 83 times by 1 test: end of blockExecuted by:
| 83 | ||||||||||||||||||||||||
| 1481 | if (columns == 0
| 0-37 | ||||||||||||||||||||||||
| 1482 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1483 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1484 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1485 | init_header ("", -1); | - | ||||||||||||||||||||||||
| 1486 | } executed 37 times by 1 test: end of blockExecuted by:
| 37 | ||||||||||||||||||||||||
| 1487 | else | - | ||||||||||||||||||||||||
| 1488 | { | - | ||||||||||||||||||||||||
| 1489 | p = column_vector; | - | ||||||||||||||||||||||||
| 1490 | if (number_of_files > 0
| 234-454 | ||||||||||||||||||||||||
| 1491 | { | - | ||||||||||||||||||||||||
| 1492 | if (! open_file (*av, p)
| 0-234 | ||||||||||||||||||||||||
| 1493 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1494 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1495 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1496 | init_header (*av, fileno (p->fp)); | - | ||||||||||||||||||||||||
| 1497 | p->lines_stored = 0; | - | ||||||||||||||||||||||||
| 1498 | } executed 234 times by 1 test: end of blockExecuted by:
| 234 | ||||||||||||||||||||||||
| 1499 | else | - | ||||||||||||||||||||||||
| 1500 | { | - | ||||||||||||||||||||||||
| 1501 | p->name = | - | ||||||||||||||||||||||||
| 1502 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1503 | "standard input" | - | ||||||||||||||||||||||||
| 1504 | , 5) | - | ||||||||||||||||||||||||
| 1505 | ; | - | ||||||||||||||||||||||||
| 1506 | p->fp = | - | ||||||||||||||||||||||||
| 1507 | stdin | - | ||||||||||||||||||||||||
| 1508 | ; | - | ||||||||||||||||||||||||
| 1509 | have_read_stdin = | - | ||||||||||||||||||||||||
| 1510 | 1 | - | ||||||||||||||||||||||||
| 1511 | ; | - | ||||||||||||||||||||||||
| 1512 | p->status = OPEN; | - | ||||||||||||||||||||||||
| 1513 | p->full_page_printed = | - | ||||||||||||||||||||||||
| 1514 | 0 | - | ||||||||||||||||||||||||
| 1515 | ; | - | ||||||||||||||||||||||||
| 1516 | ++total_files; | - | ||||||||||||||||||||||||
| 1517 | init_header ("", -1); | - | ||||||||||||||||||||||||
| 1518 | p->lines_stored = 0; | - | ||||||||||||||||||||||||
| 1519 | } executed 454 times by 1 test: end of blockExecuted by:
| 454 | ||||||||||||||||||||||||
| 1520 | - | |||||||||||||||||||||||||
| 1521 | char const *firstname = p->name; | - | ||||||||||||||||||||||||
| 1522 | FILE *firstfp = p->fp; | - | ||||||||||||||||||||||||
| 1523 | int i; | - | ||||||||||||||||||||||||
| 1524 | for (i = columns - 1, ++p; i
| 627-688 | ||||||||||||||||||||||||
| 1525 | { | - | ||||||||||||||||||||||||
| 1526 | p->name = firstname; | - | ||||||||||||||||||||||||
| 1527 | p->fp = firstfp; | - | ||||||||||||||||||||||||
| 1528 | p->status = OPEN; | - | ||||||||||||||||||||||||
| 1529 | p->full_page_printed = | - | ||||||||||||||||||||||||
| 1530 | 0 | - | ||||||||||||||||||||||||
| 1531 | ; | - | ||||||||||||||||||||||||
| 1532 | p->lines_stored = 0; | - | ||||||||||||||||||||||||
| 1533 | } executed 627 times by 1 test: end of blockExecuted by:
| 627 | ||||||||||||||||||||||||
| 1534 | } executed 688 times by 1 test: end of blockExecuted by:
| 688 | ||||||||||||||||||||||||
| 1535 | files_ready_to_read = total_files; | - | ||||||||||||||||||||||||
| 1536 | return executed 725 times by 1 test: return 1 ;Executed by:
executed 725 times by 1 test: return 1 ;Executed by:
| 725 | ||||||||||||||||||||||||
| 1537 | 1 executed 725 times by 1 test: return 1 ;Executed by:
| 725 | ||||||||||||||||||||||||
| 1538 | ; executed 725 times by 1 test: return 1 ;Executed by:
| 725 | ||||||||||||||||||||||||
| 1539 | } | - | ||||||||||||||||||||||||
| 1540 | - | |||||||||||||||||||||||||
| 1541 | - | |||||||||||||||||||||||||
| 1542 | - | |||||||||||||||||||||||||
| 1543 | - | |||||||||||||||||||||||||
| 1544 | - | |||||||||||||||||||||||||
| 1545 | - | |||||||||||||||||||||||||
| 1546 | - | |||||||||||||||||||||||||
| 1547 | static void | - | ||||||||||||||||||||||||
| 1548 | init_funcs (void) | - | ||||||||||||||||||||||||
| 1549 | { | - | ||||||||||||||||||||||||
| 1550 | int i, h, h_next; | - | ||||||||||||||||||||||||
| 1551 | COLUMN *p; | - | ||||||||||||||||||||||||
| 1552 | - | |||||||||||||||||||||||||
| 1553 | h = chars_per_margin; | - | ||||||||||||||||||||||||
| 1554 | - | |||||||||||||||||||||||||
| 1555 | if (!truncate_lines
| 287-438 | ||||||||||||||||||||||||
| 1556 | h_next = 0; executed 287 times by 1 test: h_next = 0;Executed by:
| 287 | ||||||||||||||||||||||||
| 1557 | else | - | ||||||||||||||||||||||||
| 1558 | { | - | ||||||||||||||||||||||||
| 1559 | - | |||||||||||||||||||||||||
| 1560 | - | |||||||||||||||||||||||||
| 1561 | - | |||||||||||||||||||||||||
| 1562 | if (parallel_files
| 10-408 | ||||||||||||||||||||||||
| 1563 | h_next = h + chars_per_column + number_width; executed 10 times by 1 test: h_next = h + chars_per_column + number_width;Executed by:
| 10 | ||||||||||||||||||||||||
| 1564 | else | - | ||||||||||||||||||||||||
| 1565 | h_next = h + chars_per_column; executed 428 times by 1 test: h_next = h + chars_per_column;Executed by:
| 428 | ||||||||||||||||||||||||
| 1566 | } | - | ||||||||||||||||||||||||
| 1567 | - | |||||||||||||||||||||||||
| 1568 | - | |||||||||||||||||||||||||
| 1569 | - | |||||||||||||||||||||||||
| 1570 | h = h + col_sep_length; | - | ||||||||||||||||||||||||
| 1571 | - | |||||||||||||||||||||||||
| 1572 | - | |||||||||||||||||||||||||
| 1573 | - | |||||||||||||||||||||||||
| 1574 | for (p = column_vector, i = 1; i < columns
| 673-725 | ||||||||||||||||||||||||
| 1575 | { | - | ||||||||||||||||||||||||
| 1576 | if (storing_columns
| 292-381 | ||||||||||||||||||||||||
| 1577 | { | - | ||||||||||||||||||||||||
| 1578 | p->char_func = store_char; | - | ||||||||||||||||||||||||
| 1579 | p->print_func = print_stored; | - | ||||||||||||||||||||||||
| 1580 | } executed 381 times by 1 test: end of blockExecuted by:
| 381 | ||||||||||||||||||||||||
| 1581 | else | - | ||||||||||||||||||||||||
| 1582 | - | |||||||||||||||||||||||||
| 1583 | { | - | ||||||||||||||||||||||||
| 1584 | p->char_func = print_char; | - | ||||||||||||||||||||||||
| 1585 | p->print_func = read_line; | - | ||||||||||||||||||||||||
| 1586 | } executed 292 times by 1 test: end of blockExecuted by:
| 292 | ||||||||||||||||||||||||
| 1587 | - | |||||||||||||||||||||||||
| 1588 | - | |||||||||||||||||||||||||
| 1589 | - | |||||||||||||||||||||||||
| 1590 | p->numbered = numbered_lines
| 8-524 | ||||||||||||||||||||||||
| 1591 | p->start_position = h; | - | ||||||||||||||||||||||||
| 1592 | - | |||||||||||||||||||||||||
| 1593 | - | |||||||||||||||||||||||||
| 1594 | - | |||||||||||||||||||||||||
| 1595 | - | |||||||||||||||||||||||||
| 1596 | - | |||||||||||||||||||||||||
| 1597 | if (!truncate_lines
| 49-624 | ||||||||||||||||||||||||
| 1598 | { | - | ||||||||||||||||||||||||
| 1599 | h = 0; | - | ||||||||||||||||||||||||
| 1600 | h_next = 0; | - | ||||||||||||||||||||||||
| 1601 | } executed 49 times by 1 test: end of blockExecuted by:
| 49 | ||||||||||||||||||||||||
| 1602 | else | - | ||||||||||||||||||||||||
| 1603 | { | - | ||||||||||||||||||||||||
| 1604 | h = h_next + col_sep_length; | - | ||||||||||||||||||||||||
| 1605 | h_next = h + chars_per_column; | - | ||||||||||||||||||||||||
| 1606 | } executed 624 times by 1 test: end of blockExecuted by:
| 624 | ||||||||||||||||||||||||
| 1607 | } | - | ||||||||||||||||||||||||
| 1608 | - | |||||||||||||||||||||||||
| 1609 | - | |||||||||||||||||||||||||
| 1610 | - | |||||||||||||||||||||||||
| 1611 | - | |||||||||||||||||||||||||
| 1612 | - | |||||||||||||||||||||||||
| 1613 | if (storing_columns
| 0-467 | ||||||||||||||||||||||||
| 1614 | { | - | ||||||||||||||||||||||||
| 1615 | p->char_func = store_char; | - | ||||||||||||||||||||||||
| 1616 | p->print_func = print_stored; | - | ||||||||||||||||||||||||
| 1617 | } executed 258 times by 1 test: end of blockExecuted by:
| 258 | ||||||||||||||||||||||||
| 1618 | else | - | ||||||||||||||||||||||||
| 1619 | { | - | ||||||||||||||||||||||||
| 1620 | p->char_func = print_char; | - | ||||||||||||||||||||||||
| 1621 | p->print_func = read_line; | - | ||||||||||||||||||||||||
| 1622 | } executed 467 times by 1 test: end of blockExecuted by:
| 467 | ||||||||||||||||||||||||
| 1623 | - | |||||||||||||||||||||||||
| 1624 | p->numbered = numbered_lines
| 0-533 | ||||||||||||||||||||||||
| 1625 | p->start_position = h; | - | ||||||||||||||||||||||||
| 1626 | } executed 725 times by 1 test: end of blockExecuted by:
| 725 | ||||||||||||||||||||||||
| 1627 | - | |||||||||||||||||||||||||
| 1628 | - | |||||||||||||||||||||||||
| 1629 | - | |||||||||||||||||||||||||
| 1630 | - | |||||||||||||||||||||||||
| 1631 | - | |||||||||||||||||||||||||
| 1632 | - | |||||||||||||||||||||||||
| 1633 | static | - | ||||||||||||||||||||||||
| 1634 | _Bool | - | ||||||||||||||||||||||||
| 1635 | - | |||||||||||||||||||||||||
| 1636 | open_file (char *name, COLUMN *p) | - | ||||||||||||||||||||||||
| 1637 | { | - | ||||||||||||||||||||||||
| 1638 | if ((
| 0-317 | ||||||||||||||||||||||||
| 1639 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0-317 | ||||||||||||||||||||||||
| 1640 | name
| 0-317 | ||||||||||||||||||||||||
| 1641 | ) && __builtin_constant_p (
| 0-317 | ||||||||||||||||||||||||
| 1642 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1643 | ) && (__s1_len = __builtin_strlen (
| 0-317 | ||||||||||||||||||||||||
| 1644 | name
| 0-317 | ||||||||||||||||||||||||
| 1645 | ), __s2_len = __builtin_strlen (
| 0-317 | ||||||||||||||||||||||||
| 1646 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1647 | ), (!((size_t)(const void *)((
| 0-317 | ||||||||||||||||||||||||
| 1648 | name
| 0-317 | ||||||||||||||||||||||||
| 1649 | ) + 1) - (size_t)(const void *)(
| 0-317 | ||||||||||||||||||||||||
| 1650 | name
| 0-317 | ||||||||||||||||||||||||
| 1651 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0-317 | ||||||||||||||||||||||||
| 1652 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1653 | ) + 1) - (size_t)(const void *)(
| 0-317 | ||||||||||||||||||||||||
| 1654 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1655 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0-317 | ||||||||||||||||||||||||
| 1656 | name
| 0-317 | ||||||||||||||||||||||||
| 1657 | ,
| 0-317 | ||||||||||||||||||||||||
| 1658 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1659 | ) : (__builtin_constant_p (
| 0-317 | ||||||||||||||||||||||||
| 1660 | name
| 0-317 | ||||||||||||||||||||||||
| 1661 | ) && ((size_t)(const void *)((
| 0-317 | ||||||||||||||||||||||||
| 1662 | name
| 0-317 | ||||||||||||||||||||||||
| 1663 | ) + 1) - (size_t)(const void *)(
| 0-317 | ||||||||||||||||||||||||
| 1664 | name
| 0-317 | ||||||||||||||||||||||||
| 1665 | ) == 1) && (__s1_len = __builtin_strlen (
| 0-317 | ||||||||||||||||||||||||
| 1666 | name
| 0-317 | ||||||||||||||||||||||||
| 1667 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0-317 | ||||||||||||||||||||||||
| 1668 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1669 | ) && ((size_t)(const void *)((
| 0-317 | ||||||||||||||||||||||||
| 1670 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1671 | ) + 1) - (size_t)(const void *)(
| 0-317 | ||||||||||||||||||||||||
| 1672 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1673 | ) == 1) ? __builtin_strcmp (
| 0-317 | ||||||||||||||||||||||||
| 1674 | name
| 0-317 | ||||||||||||||||||||||||
| 1675 | ,
| 0-317 | ||||||||||||||||||||||||
| 1676 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1677 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-317 | ||||||||||||||||||||||||
| 1678 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1679 | ); int __result = (((const unsigned char *) (const char *) (
| 0-317 | ||||||||||||||||||||||||
| 1680 | name
| 0-317 | ||||||||||||||||||||||||
| 1681 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-317 | ||||||||||||||||||||||||
| 1682 | name
| 0-317 | ||||||||||||||||||||||||
| 1683 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-317 | ||||||||||||||||||||||||
| 1684 | name
| 0-317 | ||||||||||||||||||||||||
| 1685 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]);
| 0-317 | ||||||||||||||||||||||||
| 1686 | name
never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); | 0-317 | ||||||||||||||||||||||||
| 1687 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block
| 0-317 | ||||||||||||||||||||||||
| 1688 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1689 | ) && ((size_t)(const void *)((
| 0-317 | ||||||||||||||||||||||||
| 1690 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1691 | ) + 1) - (size_t)(const void *)(
| 0-317 | ||||||||||||||||||||||||
| 1692 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1693 | ) == 1) && (__s2_len = __builtin_strlen (
| 0-317 | ||||||||||||||||||||||||
| 1694 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1695 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0-317 | ||||||||||||||||||||||||
| 1696 | name
| 0-317 | ||||||||||||||||||||||||
| 1697 | ) && ((size_t)(const void *)((
| 0-317 | ||||||||||||||||||||||||
| 1698 | name
| 0-317 | ||||||||||||||||||||||||
| 1699 | ) + 1) - (size_t)(const void *)(
| 0-317 | ||||||||||||||||||||||||
| 1700 | name
| 0-317 | ||||||||||||||||||||||||
| 1701 | ) == 1) ? __builtin_strcmp (
| 0-317 | ||||||||||||||||||||||||
| 1702 | name
| 0-317 | ||||||||||||||||||||||||
| 1703 | ,
| 0-317 | ||||||||||||||||||||||||
| 1704 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1705 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-317 | ||||||||||||||||||||||||
| 1706 | name
| 0-317 | ||||||||||||||||||||||||
| 1707 | ); int __result = (((const unsigned char *) (const char *) (
| 0-317 | ||||||||||||||||||||||||
| 1708 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1709 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-317 | ||||||||||||||||||||||||
| 1710 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1711 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-317 | ||||||||||||||||||||||||
| 1712 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1713 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-317 | ||||||||||||||||||||||||
| 1714 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-317 | ||||||||||||||||||||||||
| 1715 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : __builtin_strcmp (end of block
| 0-317 | ||||||||||||||||||||||||
| 1716 | name
| 0-317 | ||||||||||||||||||||||||
| 1717 | ,
| 0-317 | ||||||||||||||||||||||||
| 1718 | "-"
| 0-317 | ||||||||||||||||||||||||
| 1719 | )))); })
| 0-317 | ||||||||||||||||||||||||
| 1720 | == 0)
| 0-317 | ||||||||||||||||||||||||
| 1721 | { | - | ||||||||||||||||||||||||
| 1722 | p->name = | - | ||||||||||||||||||||||||
| 1723 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1724 | "standard input" | - | ||||||||||||||||||||||||
| 1725 | , 5) | - | ||||||||||||||||||||||||
| 1726 | ; | - | ||||||||||||||||||||||||
| 1727 | p->fp = | - | ||||||||||||||||||||||||
| 1728 | stdin | - | ||||||||||||||||||||||||
| 1729 | ; | - | ||||||||||||||||||||||||
| 1730 | have_read_stdin = | - | ||||||||||||||||||||||||
| 1731 | 1 | - | ||||||||||||||||||||||||
| 1732 | ; | - | ||||||||||||||||||||||||
| 1733 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1734 | else | - | ||||||||||||||||||||||||
| 1735 | { | - | ||||||||||||||||||||||||
| 1736 | p->name = name; | - | ||||||||||||||||||||||||
| 1737 | p->fp = fopen_safer (name, "r"); | - | ||||||||||||||||||||||||
| 1738 | } executed 317 times by 1 test: end of blockExecuted by:
| 317 | ||||||||||||||||||||||||
| 1739 | if (p->fp ==
| 0-317 | ||||||||||||||||||||||||
| 1740 | ((void *)0)
| 0-317 | ||||||||||||||||||||||||
| 1741 | ) | - | ||||||||||||||||||||||||
| 1742 | { | - | ||||||||||||||||||||||||
| 1743 | failed_opens = | - | ||||||||||||||||||||||||
| 1744 | 1 | - | ||||||||||||||||||||||||
| 1745 | ; | - | ||||||||||||||||||||||||
| 1746 | if (!ignore_failed_opens
| 0 | ||||||||||||||||||||||||
| 1747 | error (0, never executed: error (0, (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, name)); | 0 | ||||||||||||||||||||||||
| 1748 | (*__errno_location ()) never executed: error (0, (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, name)); | 0 | ||||||||||||||||||||||||
| 1749 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, name)); never executed: error (0, (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, name)); | 0 | ||||||||||||||||||||||||
| 1750 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1751 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1752 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1753 | } | - | ||||||||||||||||||||||||
| 1754 | fadvise (p->fp, FADVISE_SEQUENTIAL); | - | ||||||||||||||||||||||||
| 1755 | p->status = OPEN; | - | ||||||||||||||||||||||||
| 1756 | p->full_page_printed = | - | ||||||||||||||||||||||||
| 1757 | 0 | - | ||||||||||||||||||||||||
| 1758 | ; | - | ||||||||||||||||||||||||
| 1759 | ++total_files; | - | ||||||||||||||||||||||||
| 1760 | return executed 317 times by 1 test: return 1 ;Executed by:
executed 317 times by 1 test: return 1 ;Executed by:
| 317 | ||||||||||||||||||||||||
| 1761 | 1 executed 317 times by 1 test: return 1 ;Executed by:
| 317 | ||||||||||||||||||||||||
| 1762 | ; executed 317 times by 1 test: return 1 ;Executed by:
| 317 | ||||||||||||||||||||||||
| 1763 | } | - | ||||||||||||||||||||||||
| 1764 | - | |||||||||||||||||||||||||
| 1765 | - | |||||||||||||||||||||||||
| 1766 | - | |||||||||||||||||||||||||
| 1767 | - | |||||||||||||||||||||||||
| 1768 | - | |||||||||||||||||||||||||
| 1769 | - | |||||||||||||||||||||||||
| 1770 | static void | - | ||||||||||||||||||||||||
| 1771 | close_file (COLUMN *p) | - | ||||||||||||||||||||||||
| 1772 | { | - | ||||||||||||||||||||||||
| 1773 | COLUMN *q; | - | ||||||||||||||||||||||||
| 1774 | int i; | - | ||||||||||||||||||||||||
| 1775 | - | |||||||||||||||||||||||||
| 1776 | if (p->status == CLOSED
| 0-753 | ||||||||||||||||||||||||
| 1777 | return; never executed: return; | 0 | ||||||||||||||||||||||||
| 1778 | if (ferror_unlocked (p->fp)
| 0-753 | ||||||||||||||||||||||||
| 1779 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1780 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1781 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1782 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1783 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1784 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1785 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1786 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1787 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1788 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1789 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1790 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1791 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1792 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1793 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1794 | if (fileno (p->fp) !=
| 311-442 | ||||||||||||||||||||||||
| 1795 | 0
| 311-442 | ||||||||||||||||||||||||
| 1796 | && | - | ||||||||||||||||||||||||
| 1797 | rpl_fclose
| 0-311 | ||||||||||||||||||||||||
| 1798 | (p->fp) != 0
| 0-311 | ||||||||||||||||||||||||
| 1799 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1800 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1801 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1802 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1803 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1804 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1805 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1806 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1807 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1808 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1809 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1810 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1811 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1812 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1813 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, p->name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 1814 | - | |||||||||||||||||||||||||
| 1815 | if (!parallel_files
| 83-670 | ||||||||||||||||||||||||
| 1816 | { | - | ||||||||||||||||||||||||
| 1817 | for (q = column_vector, i = columns; i
| 670-1285 | ||||||||||||||||||||||||
| 1818 | { | - | ||||||||||||||||||||||||
| 1819 | q->status = CLOSED; | - | ||||||||||||||||||||||||
| 1820 | if (q->lines_stored == 0
| 279-1006 | ||||||||||||||||||||||||
| 1821 | { | - | ||||||||||||||||||||||||
| 1822 | q->lines_to_print = 0; | - | ||||||||||||||||||||||||
| 1823 | } executed 1006 times by 1 test: end of blockExecuted by:
| 1006 | ||||||||||||||||||||||||
| 1824 | } executed 1285 times by 1 test: end of blockExecuted by:
| 1285 | ||||||||||||||||||||||||
| 1825 | } executed 670 times by 1 test: end of blockExecuted by:
| 670 | ||||||||||||||||||||||||
| 1826 | else | - | ||||||||||||||||||||||||
| 1827 | { | - | ||||||||||||||||||||||||
| 1828 | p->status = CLOSED; | - | ||||||||||||||||||||||||
| 1829 | p->lines_to_print = 0; | - | ||||||||||||||||||||||||
| 1830 | } executed 83 times by 1 test: end of blockExecuted by:
| 83 | ||||||||||||||||||||||||
| 1831 | - | |||||||||||||||||||||||||
| 1832 | --files_ready_to_read; | - | ||||||||||||||||||||||||
| 1833 | } executed 753 times by 1 test: end of blockExecuted by:
| 753 | ||||||||||||||||||||||||
| 1834 | - | |||||||||||||||||||||||||
| 1835 | - | |||||||||||||||||||||||||
| 1836 | - | |||||||||||||||||||||||||
| 1837 | - | |||||||||||||||||||||||||
| 1838 | - | |||||||||||||||||||||||||
| 1839 | - | |||||||||||||||||||||||||
| 1840 | - | |||||||||||||||||||||||||
| 1841 | static void | - | ||||||||||||||||||||||||
| 1842 | hold_file (COLUMN *p) | - | ||||||||||||||||||||||||
| 1843 | { | - | ||||||||||||||||||||||||
| 1844 | COLUMN *q; | - | ||||||||||||||||||||||||
| 1845 | int i; | - | ||||||||||||||||||||||||
| 1846 | - | |||||||||||||||||||||||||
| 1847 | if (!parallel_files
| 284-3084 | ||||||||||||||||||||||||
| 1848 | for (q = column_vector, i = columns; i
| 3084-6132 | ||||||||||||||||||||||||
| 1849 | { | - | ||||||||||||||||||||||||
| 1850 | if (storing_columns
| 2832-3300 | ||||||||||||||||||||||||
| 1851 | q->status = FF_FOUND; executed 2832 times by 1 test: q->status = FF_FOUND;Executed by:
| 2832 | ||||||||||||||||||||||||
| 1852 | else | - | ||||||||||||||||||||||||
| 1853 | q->status = ON_HOLD; executed 3300 times by 1 test: q->status = ON_HOLD;Executed by:
| 3300 | ||||||||||||||||||||||||
| 1854 | } | - | ||||||||||||||||||||||||
| 1855 | else | - | ||||||||||||||||||||||||
| 1856 | p->status = ON_HOLD; executed 284 times by 1 test: p->status = ON_HOLD;Executed by:
| 284 | ||||||||||||||||||||||||
| 1857 | - | |||||||||||||||||||||||||
| 1858 | p->lines_to_print = 0; | - | ||||||||||||||||||||||||
| 1859 | --files_ready_to_read; | - | ||||||||||||||||||||||||
| 1860 | } executed 3368 times by 1 test: end of blockExecuted by:
| 3368 | ||||||||||||||||||||||||
| 1861 | - | |||||||||||||||||||||||||
| 1862 | - | |||||||||||||||||||||||||
| 1863 | - | |||||||||||||||||||||||||
| 1864 | - | |||||||||||||||||||||||||
| 1865 | static void | - | ||||||||||||||||||||||||
| 1866 | reset_status (void) | - | ||||||||||||||||||||||||
| 1867 | { | - | ||||||||||||||||||||||||
| 1868 | int i = columns; | - | ||||||||||||||||||||||||
| 1869 | COLUMN *p; | - | ||||||||||||||||||||||||
| 1870 | - | |||||||||||||||||||||||||
| 1871 | for (p = column_vector; i
| 4919-9727 | ||||||||||||||||||||||||
| 1872 | if (p->status == ON_HOLD
| 3146-6581 | ||||||||||||||||||||||||
| 1873 | { | - | ||||||||||||||||||||||||
| 1874 | p->status = OPEN; | - | ||||||||||||||||||||||||
| 1875 | files_ready_to_read++; | - | ||||||||||||||||||||||||
| 1876 | } executed 6581 times by 1 test: end of blockExecuted by:
| 6581 | ||||||||||||||||||||||||
| 1877 | - | |||||||||||||||||||||||||
| 1878 | if (storing_columns
| 1602-3317 | ||||||||||||||||||||||||
| 1879 | { | - | ||||||||||||||||||||||||
| 1880 | if (column_vector->status == CLOSED
| 252-1350 | ||||||||||||||||||||||||
| 1881 | - | |||||||||||||||||||||||||
| 1882 | files_ready_to_read = 0; executed 252 times by 1 test: files_ready_to_read = 0;Executed by:
| 252 | ||||||||||||||||||||||||
| 1883 | else | - | ||||||||||||||||||||||||
| 1884 | files_ready_to_read = 1; executed 1350 times by 1 test: files_ready_to_read = 1;Executed by:
| 1350 | ||||||||||||||||||||||||
| 1885 | } | - | ||||||||||||||||||||||||
| 1886 | } executed 4919 times by 1 test: end of blockExecuted by:
| 4919 | ||||||||||||||||||||||||
| 1887 | static void | - | ||||||||||||||||||||||||
| 1888 | print_files (int number_of_files, char **av) | - | ||||||||||||||||||||||||
| 1889 | { | - | ||||||||||||||||||||||||
| 1890 | init_parameters (number_of_files); | - | ||||||||||||||||||||||||
| 1891 | if (! init_fps (number_of_files, av)
| 0-725 | ||||||||||||||||||||||||
| 1892 | return; never executed: return; | 0 | ||||||||||||||||||||||||
| 1893 | if (storing_columns
| 258-467 | ||||||||||||||||||||||||
| 1894 | init_store_cols (); executed 258 times by 1 test: init_store_cols ();Executed by:
| 258 | ||||||||||||||||||||||||
| 1895 | - | |||||||||||||||||||||||||
| 1896 | if (first_page_number > 1
| 239-486 | ||||||||||||||||||||||||
| 1897 | { | - | ||||||||||||||||||||||||
| 1898 | if (!skip_to_page (first_page_number)
| 0-239 | ||||||||||||||||||||||||
| 1899 | return; never executed: return; | 0 | ||||||||||||||||||||||||
| 1900 | else | - | ||||||||||||||||||||||||
| 1901 | page_number = first_page_number; executed 239 times by 1 test: page_number = first_page_number;Executed by:
| 239 | ||||||||||||||||||||||||
| 1902 | } | - | ||||||||||||||||||||||||
| 1903 | else | - | ||||||||||||||||||||||||
| 1904 | page_number = 1; executed 486 times by 1 test: page_number = 1;Executed by:
| 486 | ||||||||||||||||||||||||
| 1905 | - | |||||||||||||||||||||||||
| 1906 | init_funcs (); | - | ||||||||||||||||||||||||
| 1907 | - | |||||||||||||||||||||||||
| 1908 | line_number = line_count; | - | ||||||||||||||||||||||||
| 1909 | while (print_page ()
| 725-4204 | ||||||||||||||||||||||||
| 1910 | ; executed 4204 times by 1 test: ;Executed by:
| 4204 | ||||||||||||||||||||||||
| 1911 | } executed 725 times by 1 test: end of blockExecuted by:
| 725 | ||||||||||||||||||||||||
| 1912 | - | |||||||||||||||||||||||||
| 1913 | - | |||||||||||||||||||||||||
| 1914 | - | |||||||||||||||||||||||||
| 1915 | - | |||||||||||||||||||||||||
| 1916 | - | |||||||||||||||||||||||||
| 1917 | static void | - | ||||||||||||||||||||||||
| 1918 | init_header (char const *filename, int desc) | - | ||||||||||||||||||||||||
| 1919 | { | - | ||||||||||||||||||||||||
| 1920 | char *buf = | - | ||||||||||||||||||||||||
| 1921 | ((void *)0) | - | ||||||||||||||||||||||||
| 1922 | ; | - | ||||||||||||||||||||||||
| 1923 | struct stat st; | - | ||||||||||||||||||||||||
| 1924 | struct timespec t; | - | ||||||||||||||||||||||||
| 1925 | int ns; | - | ||||||||||||||||||||||||
| 1926 | struct tm tm; | - | ||||||||||||||||||||||||
| 1927 | - | |||||||||||||||||||||||||
| 1928 | - | |||||||||||||||||||||||||
| 1929 | if ((
| 0-725 | ||||||||||||||||||||||||
| 1930 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0-725 | ||||||||||||||||||||||||
| 1931 | filename
| 0-725 | ||||||||||||||||||||||||
| 1932 | ) && __builtin_constant_p (
| 0-725 | ||||||||||||||||||||||||
| 1933 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1934 | ) && (__s1_len = __builtin_strlen (
| 0-725 | ||||||||||||||||||||||||
| 1935 | filename
| 0-725 | ||||||||||||||||||||||||
| 1936 | ), __s2_len = __builtin_strlen (
| 0-725 | ||||||||||||||||||||||||
| 1937 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1938 | ), (!((size_t)(const void *)((
| 0-725 | ||||||||||||||||||||||||
| 1939 | filename
| 0-725 | ||||||||||||||||||||||||
| 1940 | ) + 1) - (size_t)(const void *)(
| 0-725 | ||||||||||||||||||||||||
| 1941 | filename
| 0-725 | ||||||||||||||||||||||||
| 1942 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0-725 | ||||||||||||||||||||||||
| 1943 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1944 | ) + 1) - (size_t)(const void *)(
| 0-725 | ||||||||||||||||||||||||
| 1945 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1946 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0-725 | ||||||||||||||||||||||||
| 1947 | filename
| 0-725 | ||||||||||||||||||||||||
| 1948 | ,
| 0-725 | ||||||||||||||||||||||||
| 1949 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1950 | ) : (__builtin_constant_p (
| 0-725 | ||||||||||||||||||||||||
| 1951 | filename
| 0-725 | ||||||||||||||||||||||||
| 1952 | ) && ((size_t)(const void *)((
| 0-725 | ||||||||||||||||||||||||
| 1953 | filename
| 0-725 | ||||||||||||||||||||||||
| 1954 | ) + 1) - (size_t)(const void *)(
| 0-725 | ||||||||||||||||||||||||
| 1955 | filename
| 0-725 | ||||||||||||||||||||||||
| 1956 | ) == 1) && (__s1_len = __builtin_strlen (
| 0-725 | ||||||||||||||||||||||||
| 1957 | filename
| 0-725 | ||||||||||||||||||||||||
| 1958 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0-725 | ||||||||||||||||||||||||
| 1959 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1960 | ) && ((size_t)(const void *)((
| 0-725 | ||||||||||||||||||||||||
| 1961 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1962 | ) + 1) - (size_t)(const void *)(
| 0-725 | ||||||||||||||||||||||||
| 1963 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1964 | ) == 1) ? __builtin_strcmp (
| 0-725 | ||||||||||||||||||||||||
| 1965 | filename
| 0-725 | ||||||||||||||||||||||||
| 1966 | ,
| 0-725 | ||||||||||||||||||||||||
| 1967 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1968 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-725 | ||||||||||||||||||||||||
| 1969 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1970 | ); int __result = (((const unsigned char *) (const char *) (
| 0-725 | ||||||||||||||||||||||||
| 1971 | filename
| 0-725 | ||||||||||||||||||||||||
| 1972 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-725 | ||||||||||||||||||||||||
| 1973 | filename
| 0-725 | ||||||||||||||||||||||||
| 1974 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-725 | ||||||||||||||||||||||||
| 1975 | filename
| 0-725 | ||||||||||||||||||||||||
| 1976 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
| 0-725 | ||||||||||||||||||||||||
| 1977 | filename
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); | 0-725 | ||||||||||||||||||||||||
| 1978 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block
| 0-725 | ||||||||||||||||||||||||
| 1979 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1980 | ) && ((size_t)(const void *)((
| 0-725 | ||||||||||||||||||||||||
| 1981 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1982 | ) + 1) - (size_t)(const void *)(
| 0-725 | ||||||||||||||||||||||||
| 1983 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1984 | ) == 1) && (__s2_len = __builtin_strlen (
| 0-725 | ||||||||||||||||||||||||
| 1985 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1986 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0-725 | ||||||||||||||||||||||||
| 1987 | filename
| 0-725 | ||||||||||||||||||||||||
| 1988 | ) && ((size_t)(const void *)((
| 0-725 | ||||||||||||||||||||||||
| 1989 | filename
| 0-725 | ||||||||||||||||||||||||
| 1990 | ) + 1) - (size_t)(const void *)(
| 0-725 | ||||||||||||||||||||||||
| 1991 | filename
| 0-725 | ||||||||||||||||||||||||
| 1992 | ) == 1) ? __builtin_strcmp (
| 0-725 | ||||||||||||||||||||||||
| 1993 | filename
| 0-725 | ||||||||||||||||||||||||
| 1994 | ,
| 0-725 | ||||||||||||||||||||||||
| 1995 | "-"
| 0-725 | ||||||||||||||||||||||||
| 1996 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-725 | ||||||||||||||||||||||||
| 1997 | filename
| 0-725 | ||||||||||||||||||||||||
| 1998 | ); int __result = (((const unsigned char *) (const char *) (
| 0-725 | ||||||||||||||||||||||||
| 1999 | "-"
| 0-725 | ||||||||||||||||||||||||
| 2000 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-725 | ||||||||||||||||||||||||
| 2001 | "-"
| 0-725 | ||||||||||||||||||||||||
| 2002 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-725 | ||||||||||||||||||||||||
| 2003 | "-"
| 0-725 | ||||||||||||||||||||||||
| 2004 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-725 | ||||||||||||||||||||||||
| 2005 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-725 | ||||||||||||||||||||||||
| 2006 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : __builtin_strcmp (end of block
| 0-725 | ||||||||||||||||||||||||
| 2007 | filename
| 0-725 | ||||||||||||||||||||||||
| 2008 | ,
| 0-725 | ||||||||||||||||||||||||
| 2009 | "-"
| 0-725 | ||||||||||||||||||||||||
| 2010 | )))); })
| 0-725 | ||||||||||||||||||||||||
| 2011 | == 0)
| 0-725 | ||||||||||||||||||||||||
| 2012 | desc = -1; never executed: desc = -1; | 0 | ||||||||||||||||||||||||
| 2013 | if (0 <= desc
| 0-491 | ||||||||||||||||||||||||
| 2014 | t = get_stat_mtime (&st); executed 234 times by 1 test: t = get_stat_mtime (&st);Executed by:
| 234 | ||||||||||||||||||||||||
| 2015 | else | - | ||||||||||||||||||||||||
| 2016 | { | - | ||||||||||||||||||||||||
| 2017 | static struct timespec timespec; | - | ||||||||||||||||||||||||
| 2018 | if (! timespec.tv_sec
| 0-491 | ||||||||||||||||||||||||
| 2019 | gettime (×pec); executed 491 times by 1 test: gettime (×pec);Executed by:
| 491 | ||||||||||||||||||||||||
| 2020 | t = timespec; | - | ||||||||||||||||||||||||
| 2021 | } executed 491 times by 1 test: end of blockExecuted by:
| 491 | ||||||||||||||||||||||||
| 2022 | - | |||||||||||||||||||||||||
| 2023 | ns = t.tv_nsec; | - | ||||||||||||||||||||||||
| 2024 | if (localtime_rz (localtz, &t.tv_sec, &tm)
| 0-725 | ||||||||||||||||||||||||
| 2025 | { | - | ||||||||||||||||||||||||
| 2026 | size_t bufsize | - | ||||||||||||||||||||||||
| 2027 | = nstrftime ( | - | ||||||||||||||||||||||||
| 2028 | ((void *)0) | - | ||||||||||||||||||||||||
| 2029 | , | - | ||||||||||||||||||||||||
| 2030 | (18446744073709551615UL) | - | ||||||||||||||||||||||||
| 2031 | , date_format, &tm, localtz, ns) + 1; | - | ||||||||||||||||||||||||
| 2032 | buf = xmalloc (bufsize); | - | ||||||||||||||||||||||||
| 2033 | nstrftime (buf, bufsize, date_format, &tm, localtz, ns); | - | ||||||||||||||||||||||||
| 2034 | } executed 725 times by 1 test: end of blockExecuted by:
| 725 | ||||||||||||||||||||||||
| 2035 | else | - | ||||||||||||||||||||||||
| 2036 | { | - | ||||||||||||||||||||||||
| 2037 | char secbuf[((((((sizeof (intmax_t) * 8) - (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) + 1)]; | - | ||||||||||||||||||||||||
| 2038 | buf = xmalloc (sizeof secbuf + | - | ||||||||||||||||||||||||
| 2039 | ((( | - | ||||||||||||||||||||||||
| 2040 | 10 | - | ||||||||||||||||||||||||
| 2041 | )>( | - | ||||||||||||||||||||||||
| 2042 | ((((((sizeof (int) * 8) - (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) + 1) | - | ||||||||||||||||||||||||
| 2043 | ))?( | - | ||||||||||||||||||||||||
| 2044 | 10 | - | ||||||||||||||||||||||||
| 2045 | ):( | - | ||||||||||||||||||||||||
| 2046 | ((((((sizeof (int) * 8) - (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) + 1) | - | ||||||||||||||||||||||||
| 2047 | )) | - | ||||||||||||||||||||||||
| 2048 | ); | - | ||||||||||||||||||||||||
| 2049 | sprintf (buf, "%s.%09d", timetostr (t.tv_sec, secbuf), ns); | - | ||||||||||||||||||||||||
| 2050 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 2051 | - | |||||||||||||||||||||||||
| 2052 | free (date_text); | - | ||||||||||||||||||||||||
| 2053 | date_text = buf; | - | ||||||||||||||||||||||||
| 2054 | file_text = custom_header
| 4-713 | ||||||||||||||||||||||||
| 2055 | header_width_available = (chars_per_line | - | ||||||||||||||||||||||||
| 2056 | - gnu_mbswidth (date_text, 0) | - | ||||||||||||||||||||||||
| 2057 | - gnu_mbswidth (file_text, 0)); | - | ||||||||||||||||||||||||
| 2058 | } executed 725 times by 1 test: end of blockExecuted by:
| 725 | ||||||||||||||||||||||||
| 2059 | static void | - | ||||||||||||||||||||||||
| 2060 | init_page (void) | - | ||||||||||||||||||||||||
| 2061 | { | - | ||||||||||||||||||||||||
| 2062 | int j; | - | ||||||||||||||||||||||||
| 2063 | COLUMN *p; | - | ||||||||||||||||||||||||
| 2064 | - | |||||||||||||||||||||||||
| 2065 | if (storing_columns
| 1644-3285 | ||||||||||||||||||||||||
| 2066 | { | - | ||||||||||||||||||||||||
| 2067 | store_columns (); | - | ||||||||||||||||||||||||
| 2068 | for (j = columns - 1, p = column_vector; j
| 1644-2565 | ||||||||||||||||||||||||
| 2069 | { | - | ||||||||||||||||||||||||
| 2070 | p->lines_to_print = p->lines_stored; | - | ||||||||||||||||||||||||
| 2071 | } executed 2565 times by 1 test: end of blockExecuted by:
| 2565 | ||||||||||||||||||||||||
| 2072 | - | |||||||||||||||||||||||||
| 2073 | - | |||||||||||||||||||||||||
| 2074 | if (balance_columns
| 0-1644 | ||||||||||||||||||||||||
| 2075 | { | - | ||||||||||||||||||||||||
| 2076 | p->lines_to_print = p->lines_stored; | - | ||||||||||||||||||||||||
| 2077 | } executed 1644 times by 1 test: end of blockExecuted by:
| 1644 | ||||||||||||||||||||||||
| 2078 | - | |||||||||||||||||||||||||
| 2079 | - | |||||||||||||||||||||||||
| 2080 | else | - | ||||||||||||||||||||||||
| 2081 | { | - | ||||||||||||||||||||||||
| 2082 | if (p->status == OPEN
| 0 | ||||||||||||||||||||||||
| 2083 | { | - | ||||||||||||||||||||||||
| 2084 | p->lines_to_print = lines_per_body; | - | ||||||||||||||||||||||||
| 2085 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 2086 | else | - | ||||||||||||||||||||||||
| 2087 | p->lines_to_print = 0; never executed: p->lines_to_print = 0; | 0 | ||||||||||||||||||||||||
| 2088 | } | - | ||||||||||||||||||||||||
| 2089 | } | - | ||||||||||||||||||||||||
| 2090 | else | - | ||||||||||||||||||||||||
| 2091 | for (j = columns, p = column_vector; j
| 3285-5558 | ||||||||||||||||||||||||
| 2092 | if (p->status == OPEN
| 867-4691 | ||||||||||||||||||||||||
| 2093 | { | - | ||||||||||||||||||||||||
| 2094 | p->lines_to_print = lines_per_body; | - | ||||||||||||||||||||||||
| 2095 | } executed 4691 times by 1 test: end of blockExecuted by:
| 4691 | ||||||||||||||||||||||||
| 2096 | else | - | ||||||||||||||||||||||||
| 2097 | p->lines_to_print = 0; executed 867 times by 1 test: p->lines_to_print = 0;Executed by:
| 867 | ||||||||||||||||||||||||
| 2098 | } executed 4929 times by 1 test: end of blockExecuted by:
| 4929 | ||||||||||||||||||||||||
| 2099 | - | |||||||||||||||||||||||||
| 2100 | - | |||||||||||||||||||||||||
| 2101 | - | |||||||||||||||||||||||||
| 2102 | - | |||||||||||||||||||||||||
| 2103 | - | |||||||||||||||||||||||||
| 2104 | static void | - | ||||||||||||||||||||||||
| 2105 | align_column (COLUMN *p) | - | ||||||||||||||||||||||||
| 2106 | { | - | ||||||||||||||||||||||||
| 2107 | padding_not_printed = p->start_position; | - | ||||||||||||||||||||||||
| 2108 | if (col_sep_length < padding_not_printed
| 665-781 | ||||||||||||||||||||||||
| 2109 | { | - | ||||||||||||||||||||||||
| 2110 | pad_across_to (padding_not_printed - col_sep_length); | - | ||||||||||||||||||||||||
| 2111 | padding_not_printed = 0; | - | ||||||||||||||||||||||||
| 2112 | } executed 781 times by 1 test: end of blockExecuted by:
| 781 | ||||||||||||||||||||||||
| 2113 | - | |||||||||||||||||||||||||
| 2114 | if (use_col_separator
| 0-1446 | ||||||||||||||||||||||||
| 2115 | print_sep_string (); executed 1446 times by 1 test: print_sep_string ();Executed by:
| 1446 | ||||||||||||||||||||||||
| 2116 | - | |||||||||||||||||||||||||
| 2117 | if (p->numbered
| 247-1199 | ||||||||||||||||||||||||
| 2118 | add_line_number (p); executed 247 times by 1 test: add_line_number (p);Executed by:
| 247 | ||||||||||||||||||||||||
| 2119 | } executed 1446 times by 1 test: end of blockExecuted by:
| 1446 | ||||||||||||||||||||||||
| 2120 | static | - | ||||||||||||||||||||||||
| 2121 | _Bool | - | ||||||||||||||||||||||||
| 2122 | - | |||||||||||||||||||||||||
| 2123 | print_page (void) | - | ||||||||||||||||||||||||
| 2124 | { | - | ||||||||||||||||||||||||
| 2125 | int j; | - | ||||||||||||||||||||||||
| 2126 | int lines_left_on_page; | - | ||||||||||||||||||||||||
| 2127 | COLUMN *p; | - | ||||||||||||||||||||||||
| 2128 | - | |||||||||||||||||||||||||
| 2129 | _Bool | - | ||||||||||||||||||||||||
| 2130 | pv; | - | ||||||||||||||||||||||||
| 2131 | - | |||||||||||||||||||||||||
| 2132 | init_page (); | - | ||||||||||||||||||||||||
| 2133 | - | |||||||||||||||||||||||||
| 2134 | if (cols_ready_to_print () == 0
| 704-4225 | ||||||||||||||||||||||||
| 2135 | return executed 704 times by 1 test: return 0 ;Executed by:
executed 704 times by 1 test: return 0 ;Executed by:
| 704 | ||||||||||||||||||||||||
| 2136 | 0 executed 704 times by 1 test: return 0 ;Executed by:
| 704 | ||||||||||||||||||||||||
| 2137 | ; executed 704 times by 1 test: return 0 ;Executed by:
| 704 | ||||||||||||||||||||||||
| 2138 | - | |||||||||||||||||||||||||
| 2139 | if (extremities
| 662-3563 | ||||||||||||||||||||||||
| 2140 | print_a_header = executed 3563 times by 1 test: print_a_header = 1 ;Executed by:
| 3563 | ||||||||||||||||||||||||
| 2141 | 1 executed 3563 times by 1 test: print_a_header = 1 ;Executed by:
| 3563 | ||||||||||||||||||||||||
| 2142 | ; executed 3563 times by 1 test: print_a_header = 1 ;Executed by:
| 3563 | ||||||||||||||||||||||||
| 2143 | - | |||||||||||||||||||||||||
| 2144 | - | |||||||||||||||||||||||||
| 2145 | pad_vertically = | - | ||||||||||||||||||||||||
| 2146 | 0 | - | ||||||||||||||||||||||||
| 2147 | ; | - | ||||||||||||||||||||||||
| 2148 | pv = | - | ||||||||||||||||||||||||
| 2149 | 0 | - | ||||||||||||||||||||||||
| 2150 | ; | - | ||||||||||||||||||||||||
| 2151 | - | |||||||||||||||||||||||||
| 2152 | lines_left_on_page = lines_per_body; | - | ||||||||||||||||||||||||
| 2153 | if (double_space
| 9-4216 | ||||||||||||||||||||||||
| 2154 | lines_left_on_page *= 2; executed 9 times by 1 test: lines_left_on_page *= 2;Executed by:
| 9 | ||||||||||||||||||||||||
| 2155 | - | |||||||||||||||||||||||||
| 2156 | while (lines_left_on_page > 0
| 1150-23710 | ||||||||||||||||||||||||
| 2157 | { | - | ||||||||||||||||||||||||
| 2158 | output_position = 0; | - | ||||||||||||||||||||||||
| 2159 | spaces_not_printed = 0; | - | ||||||||||||||||||||||||
| 2160 | separators_not_printed = 0; | - | ||||||||||||||||||||||||
| 2161 | pad_vertically = | - | ||||||||||||||||||||||||
| 2162 | 0 | - | ||||||||||||||||||||||||
| 2163 | ; | - | ||||||||||||||||||||||||
| 2164 | align_empty_cols = | - | ||||||||||||||||||||||||
| 2165 | 0 | - | ||||||||||||||||||||||||
| 2166 | ; | - | ||||||||||||||||||||||||
| 2167 | empty_line = | - | ||||||||||||||||||||||||
| 2168 | 1 | - | ||||||||||||||||||||||||
| 2169 | ; | - | ||||||||||||||||||||||||
| 2170 | - | |||||||||||||||||||||||||
| 2171 | for (j = 1, p = column_vector; j <= columns
| 17831-34201 | ||||||||||||||||||||||||
| 2172 | { | - | ||||||||||||||||||||||||
| 2173 | input_position = 0; | - | ||||||||||||||||||||||||
| 2174 | if (p->lines_to_print > 0
| 513-32279 | ||||||||||||||||||||||||
| 2175 | { | - | ||||||||||||||||||||||||
| 2176 | FF_only = | - | ||||||||||||||||||||||||
| 2177 | 0 | - | ||||||||||||||||||||||||
| 2178 | ; | - | ||||||||||||||||||||||||
| 2179 | padding_not_printed = p->start_position; | - | ||||||||||||||||||||||||
| 2180 | if (!(p->print_func) (p)
| 8005-24787 | ||||||||||||||||||||||||
| 2181 | read_rest_of_line (p); executed 8005 times by 1 test: read_rest_of_line (p);Executed by:
| 8005 | ||||||||||||||||||||||||
| 2182 | pv |= pad_vertically; | - | ||||||||||||||||||||||||
| 2183 | - | |||||||||||||||||||||||||
| 2184 | --p->lines_to_print; | - | ||||||||||||||||||||||||
| 2185 | if (p->lines_to_print <= 0
| 6182-26610 | ||||||||||||||||||||||||
| 2186 | { | - | ||||||||||||||||||||||||
| 2187 | if (cols_ready_to_print () == 0
| 2743-3439 | ||||||||||||||||||||||||
| 2188 | break; executed 3439 times by 1 test: break;Executed by:
| 3439 | ||||||||||||||||||||||||
| 2189 | } executed 2743 times by 1 test: end of blockExecuted by:
| 2743 | ||||||||||||||||||||||||
| 2190 | - | |||||||||||||||||||||||||
| 2191 | - | |||||||||||||||||||||||||
| 2192 | if (parallel_files
| 193-24790 | ||||||||||||||||||||||||
| 2193 | { | - | ||||||||||||||||||||||||
| 2194 | if (empty_line
| 92-101 | ||||||||||||||||||||||||
| 2195 | align_empty_cols = executed 101 times by 1 test: align_empty_cols = 1 ;Executed by:
| 101 | ||||||||||||||||||||||||
| 2196 | 1 executed 101 times by 1 test: align_empty_cols = 1 ;Executed by:
| 101 | ||||||||||||||||||||||||
| 2197 | ; executed 101 times by 1 test: align_empty_cols = 1 ;Executed by:
| 101 | ||||||||||||||||||||||||
| 2198 | else if (p->status == CLOSED
| 18-74 | ||||||||||||||||||||||||
| 2199 | || (p->status == ON_HOLD
| 0-74 | ||||||||||||||||||||||||
| 2200 | align_column (p); executed 44 times by 1 test: align_column (p);Executed by:
| 44 | ||||||||||||||||||||||||
| 2201 | } executed 193 times by 1 test: end of blockExecuted by:
| 193 | ||||||||||||||||||||||||
| 2202 | } executed 29353 times by 1 test: end of blockExecuted by:
| 29353 | ||||||||||||||||||||||||
| 2203 | else if (parallel_files
| 0-1409 | ||||||||||||||||||||||||
| 2204 | { | - | ||||||||||||||||||||||||
| 2205 | - | |||||||||||||||||||||||||
| 2206 | if (empty_line
| 685-724 | ||||||||||||||||||||||||
| 2207 | align_empty_cols = executed 724 times by 1 test: align_empty_cols = 1 ;Executed by:
| 724 | ||||||||||||||||||||||||
| 2208 | 1 executed 724 times by 1 test: align_empty_cols = 1 ;Executed by:
| 724 | ||||||||||||||||||||||||
| 2209 | ; executed 724 times by 1 test: align_empty_cols = 1 ;Executed by:
| 724 | ||||||||||||||||||||||||
| 2210 | else | - | ||||||||||||||||||||||||
| 2211 | align_column (p); executed 685 times by 1 test: align_column (p);Executed by:
| 685 | ||||||||||||||||||||||||
| 2212 | } | - | ||||||||||||||||||||||||
| 2213 | - | |||||||||||||||||||||||||
| 2214 | - | |||||||||||||||||||||||||
| 2215 | if (use_col_separator
| 9553-21209 | ||||||||||||||||||||||||
| 2216 | ++ executed 21209 times by 1 test: separators_not_printed;++separators_not_printed;Executed by:
executed 21209 times by 1 test: ++separators_not_printed;Executed by:
| 21209 | ||||||||||||||||||||||||
| 2217 | } executed 30762 times by 1 test: end of blockExecuted by:
| 30762 | ||||||||||||||||||||||||
| 2218 | - | |||||||||||||||||||||||||
| 2219 | if (pad_vertically
| 831-20439 | ||||||||||||||||||||||||
| 2220 | { | - | ||||||||||||||||||||||||
| 2221 | putchar_unlocked ('\n'); | - | ||||||||||||||||||||||||
| 2222 | --lines_left_on_page; | - | ||||||||||||||||||||||||
| 2223 | } executed 20439 times by 1 test: end of blockExecuted by:
| 20439 | ||||||||||||||||||||||||
| 2224 | - | |||||||||||||||||||||||||
| 2225 | if (cols_ready_to_print () == 0
| 635-17831 | ||||||||||||||||||||||||
| 2226 | break; executed 635 times by 1 test: break;Executed by:
| 635 | ||||||||||||||||||||||||
| 2227 | - | |||||||||||||||||||||||||
| 2228 | if (double_space
| 3-20620 | ||||||||||||||||||||||||
| 2229 | { | - | ||||||||||||||||||||||||
| 2230 | putchar_unlocked ('\n'); | - | ||||||||||||||||||||||||
| 2231 | --lines_left_on_page; | - | ||||||||||||||||||||||||
| 2232 | } executed 12 times by 1 test: end of blockExecuted by:
| 12 | ||||||||||||||||||||||||
| 2233 | } executed 20635 times by 1 test: end of blockExecuted by:
| 20635 | ||||||||||||||||||||||||
| 2234 | - | |||||||||||||||||||||||||
| 2235 | if (lines_left_on_page == 0
| 1150-3075 | ||||||||||||||||||||||||
| 2236 | for (j = 1, p = column_vector; j <= columns
| 1150-2072 | ||||||||||||||||||||||||
| 2237 | if (p->status == OPEN
| 665-1407 | ||||||||||||||||||||||||
| 2238 | p->full_page_printed = executed 1407 times by 1 test: p->full_page_printed = 1 ;Executed by:
| 1407 | ||||||||||||||||||||||||
| 2239 | 1 executed 1407 times by 1 test: p->full_page_printed = 1 ;Executed by:
| 1407 | ||||||||||||||||||||||||
| 2240 | ; executed 1407 times by 1 test: p->full_page_printed = 1 ;Executed by:
| 1407 | ||||||||||||||||||||||||
| 2241 | - | |||||||||||||||||||||||||
| 2242 | pad_vertically = pv; | - | ||||||||||||||||||||||||
| 2243 | - | |||||||||||||||||||||||||
| 2244 | if (pad_vertically
| 281-3944 | ||||||||||||||||||||||||
| 2245 | pad_down (lines_left_on_page + lines_per_footer); executed 3534 times by 1 test: pad_down (lines_left_on_page + lines_per_footer);Executed by:
| 3534 | ||||||||||||||||||||||||
| 2246 | else if (keep_FF
| 131-371 | ||||||||||||||||||||||||
| 2247 | { | - | ||||||||||||||||||||||||
| 2248 | putchar_unlocked ('\f'); | - | ||||||||||||||||||||||||
| 2249 | print_a_FF = | - | ||||||||||||||||||||||||
| 2250 | 0 | - | ||||||||||||||||||||||||
| 2251 | ; | - | ||||||||||||||||||||||||
| 2252 | } executed 240 times by 1 test: end of blockExecuted by:
| 240 | ||||||||||||||||||||||||
| 2253 | - | |||||||||||||||||||||||||
| 2254 | if (last_page_number < ++page_number
| 21-4204 | ||||||||||||||||||||||||
| 2255 | return executed 21 times by 1 test: return 0 ;Executed by:
executed 21 times by 1 test: return 0 ;Executed by:
| 21 | ||||||||||||||||||||||||
| 2256 | 0 executed 21 times by 1 test: return 0 ;Executed by:
| 21 | ||||||||||||||||||||||||
| 2257 | ; executed 21 times by 1 test: return 0 ;Executed by:
| 21 | ||||||||||||||||||||||||
| 2258 | - | |||||||||||||||||||||||||
| 2259 | reset_status (); | - | ||||||||||||||||||||||||
| 2260 | - | |||||||||||||||||||||||||
| 2261 | return executed 4204 times by 1 test: return 1 ;Executed by:
executed 4204 times by 1 test: return 1 ;Executed by:
| 4204 | ||||||||||||||||||||||||
| 2262 | 1 executed 4204 times by 1 test: return 1 ;Executed by:
| 4204 | ||||||||||||||||||||||||
| 2263 | ; executed 4204 times by 1 test: return 1 ;Executed by:
| 4204 | ||||||||||||||||||||||||
| 2264 | } | - | ||||||||||||||||||||||||
| 2265 | static void | - | ||||||||||||||||||||||||
| 2266 | init_store_cols (void) | - | ||||||||||||||||||||||||
| 2267 | { | - | ||||||||||||||||||||||||
| 2268 | int total_lines, total_lines_1, chars_per_column_1, chars_if_truncate; | - | ||||||||||||||||||||||||
| 2269 | if (__builtin_mul_overflow (lines_per_body, columns, &total_lines)
| 0-258 | ||||||||||||||||||||||||
| 2270 | || __builtin_add_overflow (total_lines, 1, &total_lines_1)
| 0-258 | ||||||||||||||||||||||||
| 2271 | || __builtin_add_overflow (chars_per_column, 1, &chars_per_column_1)
| 0-258 | ||||||||||||||||||||||||
| 2272 | || __builtin_mul_overflow (total_lines, chars_per_column_1, &chars_if_truncate)
| 0-258 | ||||||||||||||||||||||||
| 2273 | ) | - | ||||||||||||||||||||||||
| 2274 | integer_overflow (); never executed: integer_overflow (); | 0 | ||||||||||||||||||||||||
| 2275 | - | |||||||||||||||||||||||||
| 2276 | free (line_vector); | - | ||||||||||||||||||||||||
| 2277 | - | |||||||||||||||||||||||||
| 2278 | line_vector = xnmalloc (total_lines_1, sizeof *line_vector); | - | ||||||||||||||||||||||||
| 2279 | - | |||||||||||||||||||||||||
| 2280 | free (end_vector); | - | ||||||||||||||||||||||||
| 2281 | end_vector = xnmalloc (total_lines, sizeof *end_vector); | - | ||||||||||||||||||||||||
| 2282 | - | |||||||||||||||||||||||||
| 2283 | free (buff); | - | ||||||||||||||||||||||||
| 2284 | buff = xnmalloc (chars_if_truncate, use_col_separator + 1); | - | ||||||||||||||||||||||||
| 2285 | buff_allocated = chars_if_truncate; | - | ||||||||||||||||||||||||
| 2286 | buff_allocated *= use_col_separator + 1; | - | ||||||||||||||||||||||||
| 2287 | } executed 258 times by 1 test: end of blockExecuted by:
| 258 | ||||||||||||||||||||||||
| 2288 | static void | - | ||||||||||||||||||||||||
| 2289 | store_columns (void) | - | ||||||||||||||||||||||||
| 2290 | { | - | ||||||||||||||||||||||||
| 2291 | int i, j; | - | ||||||||||||||||||||||||
| 2292 | unsigned int line = 0; | - | ||||||||||||||||||||||||
| 2293 | unsigned int buff_start; | - | ||||||||||||||||||||||||
| 2294 | int last_col; | - | ||||||||||||||||||||||||
| 2295 | COLUMN *p; | - | ||||||||||||||||||||||||
| 2296 | - | |||||||||||||||||||||||||
| 2297 | buff_current = 0; | - | ||||||||||||||||||||||||
| 2298 | buff_start = 0; | - | ||||||||||||||||||||||||
| 2299 | - | |||||||||||||||||||||||||
| 2300 | if (balance_columns
| 0-1644 | ||||||||||||||||||||||||
| 2301 | last_col = columns; executed 1644 times by 1 test: last_col = columns;Executed by:
| 1644 | ||||||||||||||||||||||||
| 2302 | else | - | ||||||||||||||||||||||||
| 2303 | last_col = columns - 1; never executed: last_col = columns - 1; | 0 | ||||||||||||||||||||||||
| 2304 | - | |||||||||||||||||||||||||
| 2305 | for (i = 1, p = column_vector; i <= last_col
| 1644-4209 | ||||||||||||||||||||||||
| 2306 | p->lines_stored = 0; executed 4209 times by 1 test: p->lines_stored = 0;Executed by:
| 4209 | ||||||||||||||||||||||||
| 2307 | - | |||||||||||||||||||||||||
| 2308 | for (i = 1, p = column_vector; i <= last_col
| 288-3186 | ||||||||||||||||||||||||
| 2309 | ++i, ++p) | - | ||||||||||||||||||||||||
| 2310 | { | - | ||||||||||||||||||||||||
| 2311 | p->current_line = line; | - | ||||||||||||||||||||||||
| 2312 | for (j = lines_per_body; j
| 837-10899 | ||||||||||||||||||||||||
| 2313 | - | |||||||||||||||||||||||||
| 2314 | if (p->status == OPEN
| 0-9906 | ||||||||||||||||||||||||
| 2315 | { | - | ||||||||||||||||||||||||
| 2316 | input_position = 0; | - | ||||||||||||||||||||||||
| 2317 | - | |||||||||||||||||||||||||
| 2318 | if (!read_line (p)
| 3276-6630 | ||||||||||||||||||||||||
| 2319 | read_rest_of_line (p); executed 6630 times by 1 test: read_rest_of_line (p);Executed by:
| 6630 | ||||||||||||||||||||||||
| 2320 | - | |||||||||||||||||||||||||
| 2321 | if (p->status == OPEN
| 1173-8733 | ||||||||||||||||||||||||
| 2322 | || buff_start != buff_current
| 177-996 | ||||||||||||||||||||||||
| 2323 | { | - | ||||||||||||||||||||||||
| 2324 | ++p->lines_stored; | - | ||||||||||||||||||||||||
| 2325 | line_vector[line] = buff_start; | - | ||||||||||||||||||||||||
| 2326 | end_vector[line++] = input_position; | - | ||||||||||||||||||||||||
| 2327 | buff_start = buff_current; | - | ||||||||||||||||||||||||
| 2328 | } executed 8910 times by 1 test: end of blockExecuted by:
| 8910 | ||||||||||||||||||||||||
| 2329 | } executed 9906 times by 1 test: end of blockExecuted by:
| 9906 | ||||||||||||||||||||||||
| 2330 | } executed 1830 times by 1 test: end of blockExecuted by:
| 1830 | ||||||||||||||||||||||||
| 2331 | - | |||||||||||||||||||||||||
| 2332 | - | |||||||||||||||||||||||||
| 2333 | line_vector[line] = buff_start; | - | ||||||||||||||||||||||||
| 2334 | - | |||||||||||||||||||||||||
| 2335 | if (balance_columns
| 0-1644 | ||||||||||||||||||||||||
| 2336 | balance (line); executed 1644 times by 1 test: balance (line);Executed by:
| 1644 | ||||||||||||||||||||||||
| 2337 | } executed 1644 times by 1 test: end of blockExecuted by:
| 1644 | ||||||||||||||||||||||||
| 2338 | - | |||||||||||||||||||||||||
| 2339 | static void | - | ||||||||||||||||||||||||
| 2340 | balance (int total_stored) | - | ||||||||||||||||||||||||
| 2341 | { | - | ||||||||||||||||||||||||
| 2342 | COLUMN *p; | - | ||||||||||||||||||||||||
| 2343 | int i, lines; | - | ||||||||||||||||||||||||
| 2344 | int first_line = 0; | - | ||||||||||||||||||||||||
| 2345 | - | |||||||||||||||||||||||||
| 2346 | for (i = 1, p = column_vector; i <= columns
| 1644-4209 | ||||||||||||||||||||||||
| 2347 | { | - | ||||||||||||||||||||||||
| 2348 | lines = total_stored / columns; | - | ||||||||||||||||||||||||
| 2349 | if (i <= total_stored % columns
| 768-3441 | ||||||||||||||||||||||||
| 2350 | ++ executed 768 times by 1 test: lines;++lines;Executed by:
executed 768 times by 1 test: ++lines;Executed by:
| 768 | ||||||||||||||||||||||||
| 2351 | - | |||||||||||||||||||||||||
| 2352 | p->lines_stored = lines; | - | ||||||||||||||||||||||||
| 2353 | p->current_line = first_line; | - | ||||||||||||||||||||||||
| 2354 | - | |||||||||||||||||||||||||
| 2355 | first_line += lines; | - | ||||||||||||||||||||||||
| 2356 | } executed 4209 times by 1 test: end of blockExecuted by:
| 4209 | ||||||||||||||||||||||||
| 2357 | } executed 1644 times by 1 test: end of blockExecuted by:
| 1644 | ||||||||||||||||||||||||
| 2358 | - | |||||||||||||||||||||||||
| 2359 | - | |||||||||||||||||||||||||
| 2360 | - | |||||||||||||||||||||||||
| 2361 | static void | - | ||||||||||||||||||||||||
| 2362 | store_char (char c) | - | ||||||||||||||||||||||||
| 2363 | { | - | ||||||||||||||||||||||||
| 2364 | if (buff_current >= buff_allocated
| 0-223917 | ||||||||||||||||||||||||
| 2365 | { | - | ||||||||||||||||||||||||
| 2366 | - | |||||||||||||||||||||||||
| 2367 | buff = ((void) (!!sizeof (struct { _Static_assert (sizeof *(buff) == 1, "verify_true (" "sizeof *(buff) == 1" ")"); int _gl_dummy; })), x2realloc (buff, &buff_allocated)); | - | ||||||||||||||||||||||||
| 2368 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 2369 | buff[buff_current++] = c; | - | ||||||||||||||||||||||||
| 2370 | } executed 223917 times by 1 test: end of blockExecuted by:
| 223917 | ||||||||||||||||||||||||
| 2371 | - | |||||||||||||||||||||||||
| 2372 | static void | - | ||||||||||||||||||||||||
| 2373 | add_line_number (COLUMN *p) | - | ||||||||||||||||||||||||
| 2374 | { | - | ||||||||||||||||||||||||
| 2375 | int i; | - | ||||||||||||||||||||||||
| 2376 | char *s; | - | ||||||||||||||||||||||||
| 2377 | int num_width; | - | ||||||||||||||||||||||||
| 2378 | - | |||||||||||||||||||||||||
| 2379 | - | |||||||||||||||||||||||||
| 2380 | - | |||||||||||||||||||||||||
| 2381 | num_width = sprintf (number_buff, "%*d", chars_per_number, line_number); | - | ||||||||||||||||||||||||
| 2382 | line_number++; | - | ||||||||||||||||||||||||
| 2383 | s = number_buff + (num_width - chars_per_number); | - | ||||||||||||||||||||||||
| 2384 | for (i = chars_per_number; i > 0
| 5383-17500 | ||||||||||||||||||||||||
| 2385 | ( executed 17500 times by 1 test: p->char_func) (*s++);(p->char_func) (*s++);Executed by:
executed 17500 times by 1 test: (p->char_func) (*s++);Executed by:
| 17500 | ||||||||||||||||||||||||
| 2386 | - | |||||||||||||||||||||||||
| 2387 | if (columns > 1
| 2403-2980 | ||||||||||||||||||||||||
| 2388 | { | - | ||||||||||||||||||||||||
| 2389 | - | |||||||||||||||||||||||||
| 2390 | - | |||||||||||||||||||||||||
| 2391 | - | |||||||||||||||||||||||||
| 2392 | if (number_separator == '\t'
| 48-2932 | ||||||||||||||||||||||||
| 2393 | { | - | ||||||||||||||||||||||||
| 2394 | i = number_width - chars_per_number; | - | ||||||||||||||||||||||||
| 2395 | while (i-- > 0
| 48-144 | ||||||||||||||||||||||||
| 2396 | ( executed 144 times by 1 test: p->char_func) (' ');(p->char_func) (' ');Executed by:
executed 144 times by 1 test: (p->char_func) (' ');Executed by:
| 144 | ||||||||||||||||||||||||
| 2397 | } executed 48 times by 1 test: end of blockExecuted by:
| 48 | ||||||||||||||||||||||||
| 2398 | else | - | ||||||||||||||||||||||||
| 2399 | ( executed 2932 times by 1 test: p->char_func) (number_separator);(p->char_func) (number_separator);Executed by:
executed 2932 times by 1 test: (p->char_func) (number_separator);Executed by:
| 2932 | ||||||||||||||||||||||||
| 2400 | } | - | ||||||||||||||||||||||||
| 2401 | else | - | ||||||||||||||||||||||||
| 2402 | - | |||||||||||||||||||||||||
| 2403 | - | |||||||||||||||||||||||||
| 2404 | - | |||||||||||||||||||||||||
| 2405 | { | - | ||||||||||||||||||||||||
| 2406 | (p->char_func) (number_separator); | - | ||||||||||||||||||||||||
| 2407 | if (number_separator == '\t'
| 45-2358 | ||||||||||||||||||||||||
| 2408 | output_position = ((output_position) + ((chars_per_output_tab) - ((output_position) % (chars_per_output_tab)))) executed 45 times by 1 test: output_position = ((output_position) + ((chars_per_output_tab) - ((output_position) % (chars_per_output_tab)))) ;Executed by:
| 45 | ||||||||||||||||||||||||
| 2409 | ; executed 45 times by 1 test: output_position = ((output_position) + ((chars_per_output_tab) - ((output_position) % (chars_per_output_tab)))) ;Executed by:
| 45 | ||||||||||||||||||||||||
| 2410 | } executed 2403 times by 1 test: end of blockExecuted by:
| 2403 | ||||||||||||||||||||||||
| 2411 | - | |||||||||||||||||||||||||
| 2412 | if (truncate_lines
| 830-2804 | ||||||||||||||||||||||||
| 2413 | input_position += number_width; executed 1974 times by 1 test: input_position += number_width;Executed by:
| 1974 | ||||||||||||||||||||||||
| 2414 | } executed 5383 times by 1 test: end of blockExecuted by:
| 5383 | ||||||||||||||||||||||||
| 2415 | - | |||||||||||||||||||||||||
| 2416 | - | |||||||||||||||||||||||||
| 2417 | - | |||||||||||||||||||||||||
| 2418 | - | |||||||||||||||||||||||||
| 2419 | static void | - | ||||||||||||||||||||||||
| 2420 | pad_across_to (int position) | - | ||||||||||||||||||||||||
| 2421 | { | - | ||||||||||||||||||||||||
| 2422 | int h = output_position; | - | ||||||||||||||||||||||||
| 2423 | - | |||||||||||||||||||||||||
| 2424 | if (tabify_output
| 1096-14692 | ||||||||||||||||||||||||
| 2425 | spaces_not_printed = position - output_position; executed 14692 times by 1 test: spaces_not_printed = position - output_position;Executed by:
| 14692 | ||||||||||||||||||||||||
| 2426 | else | - | ||||||||||||||||||||||||
| 2427 | { | - | ||||||||||||||||||||||||
| 2428 | while (++
| 36-1096 | ||||||||||||||||||||||||
| 2429 | putchar_unlocked (' '); executed 36 times by 1 test: putchar_unlocked (' ');Executed by:
| 36 | ||||||||||||||||||||||||
| 2430 | output_position = position; | - | ||||||||||||||||||||||||
| 2431 | } executed 1096 times by 1 test: end of blockExecuted by:
| 1096 | ||||||||||||||||||||||||
| 2432 | } | - | ||||||||||||||||||||||||
| 2433 | - | |||||||||||||||||||||||||
| 2434 | - | |||||||||||||||||||||||||
| 2435 | - | |||||||||||||||||||||||||
| 2436 | - | |||||||||||||||||||||||||
| 2437 | - | |||||||||||||||||||||||||
| 2438 | - | |||||||||||||||||||||||||
| 2439 | static void | - | ||||||||||||||||||||||||
| 2440 | pad_down (unsigned int lines) | - | ||||||||||||||||||||||||
| 2441 | { | - | ||||||||||||||||||||||||
| 2442 | if (use_form_feed
| 1750-1784 | ||||||||||||||||||||||||
| 2443 | putchar_unlocked ('\f'); executed 1784 times by 1 test: putchar_unlocked ('\f');Executed by:
| 1784 | ||||||||||||||||||||||||
| 2444 | else | - | ||||||||||||||||||||||||
| 2445 | for (unsigned int i = lines; i
| 1750-23903 | ||||||||||||||||||||||||
| 2446 | putchar_unlocked ('\n'); executed 23903 times by 1 test: putchar_unlocked ('\n');Executed by:
| 23903 | ||||||||||||||||||||||||
| 2447 | } executed 3534 times by 1 test: end of blockExecuted by:
| 3534 | ||||||||||||||||||||||||
| 2448 | - | |||||||||||||||||||||||||
| 2449 | - | |||||||||||||||||||||||||
| 2450 | - | |||||||||||||||||||||||||
| 2451 | - | |||||||||||||||||||||||||
| 2452 | - | |||||||||||||||||||||||||
| 2453 | - | |||||||||||||||||||||||||
| 2454 | - | |||||||||||||||||||||||||
| 2455 | static void | - | ||||||||||||||||||||||||
| 2456 | read_rest_of_line (COLUMN *p) | - | ||||||||||||||||||||||||
| 2457 | { | - | ||||||||||||||||||||||||
| 2458 | int c; | - | ||||||||||||||||||||||||
| 2459 | FILE *f = p->fp; | - | ||||||||||||||||||||||||
| 2460 | - | |||||||||||||||||||||||||
| 2461 | while ((
| 14331-242757 | ||||||||||||||||||||||||
| 2462 | { | - | ||||||||||||||||||||||||
| 2463 | if (c == '\f'
| 304-242453 | ||||||||||||||||||||||||
| 2464 | { | - | ||||||||||||||||||||||||
| 2465 | if ((
| 107-197 | ||||||||||||||||||||||||
| 2466 | ungetc (c, f); executed 197 times by 1 test: ungetc (c, f);Executed by:
| 197 | ||||||||||||||||||||||||
| 2467 | if (keep_FF
| 0-304 | ||||||||||||||||||||||||
| 2468 | print_a_FF = never executed: print_a_FF = 1 ; | 0 | ||||||||||||||||||||||||
| 2469 | 1 never executed: print_a_FF = 1 ; | 0 | ||||||||||||||||||||||||
| 2470 | ; never executed: print_a_FF = 1 ; | 0 | ||||||||||||||||||||||||
| 2471 | hold_file (p); | - | ||||||||||||||||||||||||
| 2472 | break; executed 304 times by 1 test: break;Executed by:
| 304 | ||||||||||||||||||||||||
| 2473 | } | - | ||||||||||||||||||||||||
| 2474 | else if (c ==
| 0-242453 | ||||||||||||||||||||||||
| 2475 | (-1)
| 0-242453 | ||||||||||||||||||||||||
| 2476 | ) | - | ||||||||||||||||||||||||
| 2477 | { | - | ||||||||||||||||||||||||
| 2478 | close_file (p); | - | ||||||||||||||||||||||||
| 2479 | break; never executed: break; | 0 | ||||||||||||||||||||||||
| 2480 | } | - | ||||||||||||||||||||||||
| 2481 | } executed 242453 times by 1 test: end of blockExecuted by:
| 242453 | ||||||||||||||||||||||||
| 2482 | } executed 14635 times by 1 test: end of blockExecuted by:
| 14635 | ||||||||||||||||||||||||
| 2483 | static void | - | ||||||||||||||||||||||||
| 2484 | skip_read (COLUMN *p, int column_number) | - | ||||||||||||||||||||||||
| 2485 | { | - | ||||||||||||||||||||||||
| 2486 | int c; | - | ||||||||||||||||||||||||
| 2487 | FILE *f = p->fp; | - | ||||||||||||||||||||||||
| 2488 | int i; | - | ||||||||||||||||||||||||
| 2489 | - | |||||||||||||||||||||||||
| 2490 | _Bool | - | ||||||||||||||||||||||||
| 2491 | single_ff = | - | ||||||||||||||||||||||||
| 2492 | 0 | - | ||||||||||||||||||||||||
| 2493 | ; | - | ||||||||||||||||||||||||
| 2494 | COLUMN *q; | - | ||||||||||||||||||||||||
| 2495 | - | |||||||||||||||||||||||||
| 2496 | - | |||||||||||||||||||||||||
| 2497 | if ((
| 79-5014 | ||||||||||||||||||||||||
| 2498 | - | |||||||||||||||||||||||||
| 2499 | - | |||||||||||||||||||||||||
| 2500 | if ((
| 28-51 | ||||||||||||||||||||||||
| 2501 | c = getc_unlocked (f); executed 28 times by 1 test: c = getc_unlocked (f);Executed by:
| 28 | ||||||||||||||||||||||||
| 2502 | - | |||||||||||||||||||||||||
| 2503 | p->full_page_printed = | - | ||||||||||||||||||||||||
| 2504 | 0 | - | ||||||||||||||||||||||||
| 2505 | ; | - | ||||||||||||||||||||||||
| 2506 | - | |||||||||||||||||||||||||
| 2507 | - | |||||||||||||||||||||||||
| 2508 | - | |||||||||||||||||||||||||
| 2509 | if (c == '\f'
| 365-5014 | ||||||||||||||||||||||||
| 2510 | single_ff = executed 365 times by 1 test: single_ff = 1 ;Executed by:
| 365 | ||||||||||||||||||||||||
| 2511 | 1 executed 365 times by 1 test: single_ff = 1 ;Executed by:
| 365 | ||||||||||||||||||||||||
| 2512 | ; executed 365 times by 1 test: single_ff = 1 ;Executed by:
| 365 | ||||||||||||||||||||||||
| 2513 | - | |||||||||||||||||||||||||
| 2514 | - | |||||||||||||||||||||||||
| 2515 | - | |||||||||||||||||||||||||
| 2516 | if (last_line
| 581-4798 | ||||||||||||||||||||||||
| 2517 | p->full_page_printed = executed 581 times by 1 test: p->full_page_printed = 1 ;Executed by:
| 581 | ||||||||||||||||||||||||
| 2518 | 1 executed 581 times by 1 test: p->full_page_printed = 1 ;Executed by:
| 581 | ||||||||||||||||||||||||
| 2519 | ; executed 581 times by 1 test: p->full_page_printed = 1 ;Executed by:
| 581 | ||||||||||||||||||||||||
| 2520 | - | |||||||||||||||||||||||||
| 2521 | while (c != '\n'
| 4890-191560 | ||||||||||||||||||||||||
| 2522 | { | - | ||||||||||||||||||||||||
| 2523 | if (c == '\f'
| 489-191071 | ||||||||||||||||||||||||
| 2524 | { | - | ||||||||||||||||||||||||
| 2525 | - | |||||||||||||||||||||||||
| 2526 | - | |||||||||||||||||||||||||
| 2527 | if (last_line
| 87-402 | ||||||||||||||||||||||||
| 2528 | { | - | ||||||||||||||||||||||||
| 2529 | if (!parallel_files
| 3-84 | ||||||||||||||||||||||||
| 2530 | for (q = column_vector, i = columns; i
| 84-135 | ||||||||||||||||||||||||
| 2531 | q->full_page_printed = executed 135 times by 1 test: q->full_page_printed = 0 ;Executed by:
| 135 | ||||||||||||||||||||||||
| 2532 | 0 executed 135 times by 1 test: q->full_page_printed = 0 ;Executed by:
| 135 | ||||||||||||||||||||||||
| 2533 | ; executed 135 times by 1 test: q->full_page_printed = 0 ;Executed by:
| 135 | ||||||||||||||||||||||||
| 2534 | else | - | ||||||||||||||||||||||||
| 2535 | p->full_page_printed = executed 3 times by 1 test: p->full_page_printed = 0 ;Executed by:
| 3 | ||||||||||||||||||||||||
| 2536 | 0 executed 3 times by 1 test: p->full_page_printed = 0 ;Executed by:
| 3 | ||||||||||||||||||||||||
| 2537 | ; executed 3 times by 1 test: p->full_page_printed = 0 ;Executed by:
| 3 | ||||||||||||||||||||||||
| 2538 | } executed 87 times by 1 test: end of blockExecuted by:
| 87 | ||||||||||||||||||||||||
| 2539 | - | |||||||||||||||||||||||||
| 2540 | if ((
| 213-276 | ||||||||||||||||||||||||
| 2541 | ungetc (c, f); executed 276 times by 1 test: ungetc (c, f);Executed by:
| 276 | ||||||||||||||||||||||||
| 2542 | hold_file (p); | - | ||||||||||||||||||||||||
| 2543 | break; executed 489 times by 1 test: break;Executed by:
| 489 | ||||||||||||||||||||||||
| 2544 | } | - | ||||||||||||||||||||||||
| 2545 | else if (c ==
| 0-191071 | ||||||||||||||||||||||||
| 2546 | (-1)
| 0-191071 | ||||||||||||||||||||||||
| 2547 | ) | - | ||||||||||||||||||||||||
| 2548 | { | - | ||||||||||||||||||||||||
| 2549 | close_file (p); | - | ||||||||||||||||||||||||
| 2550 | break; never executed: break; | 0 | ||||||||||||||||||||||||
| 2551 | } | - | ||||||||||||||||||||||||
| 2552 | c = getc_unlocked (f); | - | ||||||||||||||||||||||||
| 2553 | } executed 191071 times by 1 test: end of blockExecuted by:
| 191071 | ||||||||||||||||||||||||
| 2554 | - | |||||||||||||||||||||||||
| 2555 | if (skip_count
| 45-5334 | ||||||||||||||||||||||||
| 2556 | if ((!parallel_files
| 159-5004 | ||||||||||||||||||||||||
| 2557 | ++ executed 4818 times by 1 test: line_count;++line_count;Executed by:
executed 4818 times by 1 test: ++line_count;Executed by:
| 4818 | ||||||||||||||||||||||||
| 2558 | } executed 5379 times by 1 test: end of blockExecuted by:
| 5379 | ||||||||||||||||||||||||
| 2559 | - | |||||||||||||||||||||||||
| 2560 | - | |||||||||||||||||||||||||
| 2561 | - | |||||||||||||||||||||||||
| 2562 | - | |||||||||||||||||||||||||
| 2563 | - | |||||||||||||||||||||||||
| 2564 | - | |||||||||||||||||||||||||
| 2565 | - | |||||||||||||||||||||||||
| 2566 | static void | - | ||||||||||||||||||||||||
| 2567 | print_white_space (void) | - | ||||||||||||||||||||||||
| 2568 | { | - | ||||||||||||||||||||||||
| 2569 | int h_new; | - | ||||||||||||||||||||||||
| 2570 | int h_old = output_position; | - | ||||||||||||||||||||||||
| 2571 | int goal = h_old + spaces_not_printed; | - | ||||||||||||||||||||||||
| 2572 | - | |||||||||||||||||||||||||
| 2573 | while (goal - h_old > 1
| 34115-39096 | ||||||||||||||||||||||||
| 2574 | && (
| 10412-23703 | ||||||||||||||||||||||||
| 2575 | { | - | ||||||||||||||||||||||||
| 2576 | putchar_unlocked (output_tab_char); | - | ||||||||||||||||||||||||
| 2577 | h_old = h_new; | - | ||||||||||||||||||||||||
| 2578 | } executed 23703 times by 1 test: end of blockExecuted by:
| 23703 | ||||||||||||||||||||||||
| 2579 | while (++
| 49508-63789 | ||||||||||||||||||||||||
| 2580 | putchar_unlocked (' '); executed 63789 times by 1 test: putchar_unlocked (' ');Executed by:
| 63789 | ||||||||||||||||||||||||
| 2581 | - | |||||||||||||||||||||||||
| 2582 | output_position = goal; | - | ||||||||||||||||||||||||
| 2583 | spaces_not_printed = 0; | - | ||||||||||||||||||||||||
| 2584 | } executed 49508 times by 1 test: end of blockExecuted by:
| 49508 | ||||||||||||||||||||||||
| 2585 | - | |||||||||||||||||||||||||
| 2586 | - | |||||||||||||||||||||||||
| 2587 | - | |||||||||||||||||||||||||
| 2588 | - | |||||||||||||||||||||||||
| 2589 | - | |||||||||||||||||||||||||
| 2590 | - | |||||||||||||||||||||||||
| 2591 | static void | - | ||||||||||||||||||||||||
| 2592 | print_sep_string (void) | - | ||||||||||||||||||||||||
| 2593 | { | - | ||||||||||||||||||||||||
| 2594 | char const *s = col_sep_string; | - | ||||||||||||||||||||||||
| 2595 | int l = col_sep_length; | - | ||||||||||||||||||||||||
| 2596 | - | |||||||||||||||||||||||||
| 2597 | if (separators_not_printed <= 0
| 9323-12628 | ||||||||||||||||||||||||
| 2598 | { | - | ||||||||||||||||||||||||
| 2599 | - | |||||||||||||||||||||||||
| 2600 | if (spaces_not_printed > 0
| 790-8533 | ||||||||||||||||||||||||
| 2601 | print_white_space (); executed 790 times by 1 test: print_white_space ();Executed by:
| 790 | ||||||||||||||||||||||||
| 2602 | } executed 9323 times by 1 test: end of blockExecuted by:
| 9323 | ||||||||||||||||||||||||
| 2603 | else | - | ||||||||||||||||||||||||
| 2604 | { | - | ||||||||||||||||||||||||
| 2605 | for (; separators_not_printed > 0
| 12628 | ||||||||||||||||||||||||
| 2606 | { | - | ||||||||||||||||||||||||
| 2607 | while (l-- > 0
| 12628-17898 | ||||||||||||||||||||||||
| 2608 | { | - | ||||||||||||||||||||||||
| 2609 | - | |||||||||||||||||||||||||
| 2610 | - | |||||||||||||||||||||||||
| 2611 | if (*
| 8245-9653 | ||||||||||||||||||||||||
| 2612 | { | - | ||||||||||||||||||||||||
| 2613 | - | |||||||||||||||||||||||||
| 2614 | - | |||||||||||||||||||||||||
| 2615 | s++; | - | ||||||||||||||||||||||||
| 2616 | ++spaces_not_printed; | - | ||||||||||||||||||||||||
| 2617 | } executed 9653 times by 1 test: end of blockExecuted by:
| 9653 | ||||||||||||||||||||||||
| 2618 | else | - | ||||||||||||||||||||||||
| 2619 | { | - | ||||||||||||||||||||||||
| 2620 | if (spaces_not_printed > 0
| 1290-6955 | ||||||||||||||||||||||||
| 2621 | print_white_space (); executed 1290 times by 1 test: print_white_space ();Executed by:
| 1290 | ||||||||||||||||||||||||
| 2622 | putchar_unlocked (*s++); | - | ||||||||||||||||||||||||
| 2623 | ++output_position; | - | ||||||||||||||||||||||||
| 2624 | } executed 8245 times by 1 test: end of blockExecuted by:
| 8245 | ||||||||||||||||||||||||
| 2625 | } | - | ||||||||||||||||||||||||
| 2626 | - | |||||||||||||||||||||||||
| 2627 | if (spaces_not_printed > 0
| 2975-9653 | ||||||||||||||||||||||||
| 2628 | print_white_space (); executed 9653 times by 1 test: print_white_space ();Executed by:
| 9653 | ||||||||||||||||||||||||
| 2629 | } executed 12628 times by 1 test: end of blockExecuted by:
| 12628 | ||||||||||||||||||||||||
| 2630 | } executed 12628 times by 1 test: end of blockExecuted by:
| 12628 | ||||||||||||||||||||||||
| 2631 | } | - | ||||||||||||||||||||||||
| 2632 | - | |||||||||||||||||||||||||
| 2633 | - | |||||||||||||||||||||||||
| 2634 | - | |||||||||||||||||||||||||
| 2635 | - | |||||||||||||||||||||||||
| 2636 | static void | - | ||||||||||||||||||||||||
| 2637 | print_clump (COLUMN *p, int n, char *clump) | - | ||||||||||||||||||||||||
| 2638 | { | - | ||||||||||||||||||||||||
| 2639 | while (n--
| 849176-851093 | ||||||||||||||||||||||||
| 2640 | ( executed 851093 times by 1 test: p->char_func) (*clump++);(p->char_func) (*clump++);Executed by:
executed 851093 times by 1 test: (p->char_func) (*clump++);Executed by:
| 851093 | ||||||||||||||||||||||||
| 2641 | } executed 849176 times by 1 test: end of blockExecuted by:
| 849176 | ||||||||||||||||||||||||
| 2642 | static void | - | ||||||||||||||||||||||||
| 2643 | print_char (char c) | - | ||||||||||||||||||||||||
| 2644 | { | - | ||||||||||||||||||||||||
| 2645 | if (tabify_output
| 350512-523560 | ||||||||||||||||||||||||
| 2646 | { | - | ||||||||||||||||||||||||
| 2647 | if (c == ' '
| 254425-269135 | ||||||||||||||||||||||||
| 2648 | { | - | ||||||||||||||||||||||||
| 2649 | ++spaces_not_printed; | - | ||||||||||||||||||||||||
| 2650 | return; executed 269135 times by 1 test: return;Executed by:
| 269135 | ||||||||||||||||||||||||
| 2651 | } | - | ||||||||||||||||||||||||
| 2652 | else if (spaces_not_printed > 0
| 34241-220184 | ||||||||||||||||||||||||
| 2653 | print_white_space (); executed 34241 times by 1 test: print_white_space ();Executed by:
| 34241 | ||||||||||||||||||||||||
| 2654 | - | |||||||||||||||||||||||||
| 2655 | - | |||||||||||||||||||||||||
| 2656 | if (!
| 12-254413 | ||||||||||||||||||||||||
| 2657 | ((*__ctype_b_loc ())[(int) ((
| 12-254413 | ||||||||||||||||||||||||
| 2658 | to_uchar (c)
| 12-254413 | ||||||||||||||||||||||||
| 2659 | ))] & (unsigned short int) _ISprint)
| 12-254413 | ||||||||||||||||||||||||
| 2660 | ) | - | ||||||||||||||||||||||||
| 2661 | { | - | ||||||||||||||||||||||||
| 2662 | if (c == '\b'
| 0-12 | ||||||||||||||||||||||||
| 2663 | -- never executed: output_position;--output_position;never executed: --output_position; | 0 | ||||||||||||||||||||||||
| 2664 | } executed 12 times by 1 test: end of blockExecuted by:
| 12 | ||||||||||||||||||||||||
| 2665 | else | - | ||||||||||||||||||||||||
| 2666 | ++ executed 254413 times by 1 test: output_position;++output_position;Executed by:
executed 254413 times by 1 test: ++output_position;Executed by:
| 254413 | ||||||||||||||||||||||||
| 2667 | } | - | ||||||||||||||||||||||||
| 2668 | putchar_unlocked (c); | - | ||||||||||||||||||||||||
| 2669 | } executed 604937 times by 1 test: end of blockExecuted by:
| 604937 | ||||||||||||||||||||||||
| 2670 | - | |||||||||||||||||||||||||
| 2671 | - | |||||||||||||||||||||||||
| 2672 | - | |||||||||||||||||||||||||
| 2673 | - | |||||||||||||||||||||||||
| 2674 | static | - | ||||||||||||||||||||||||
| 2675 | _Bool | - | ||||||||||||||||||||||||
| 2676 | - | |||||||||||||||||||||||||
| 2677 | skip_to_page (uintmax_t page) | - | ||||||||||||||||||||||||
| 2678 | { | - | ||||||||||||||||||||||||
| 2679 | for (uintmax_t n = 1; n < page
| 239-715 | ||||||||||||||||||||||||
| 2680 | { | - | ||||||||||||||||||||||||
| 2681 | COLUMN *p; | - | ||||||||||||||||||||||||
| 2682 | int j; | - | ||||||||||||||||||||||||
| 2683 | - | |||||||||||||||||||||||||
| 2684 | for (int i = 1; i < lines_per_body
| 715-8288 | ||||||||||||||||||||||||
| 2685 | { | - | ||||||||||||||||||||||||
| 2686 | for (j = 1, p = column_vector; j <= columns
| 8288-14578 | ||||||||||||||||||||||||
| 2687 | if (p->status == OPEN
| 4798-9780 | ||||||||||||||||||||||||
| 2688 | skip_read (p, j); executed 4798 times by 1 test: skip_read (p, j);Executed by:
| 4798 | ||||||||||||||||||||||||
| 2689 | } executed 8288 times by 1 test: end of blockExecuted by:
| 8288 | ||||||||||||||||||||||||
| 2690 | last_line = | - | ||||||||||||||||||||||||
| 2691 | 1 | - | ||||||||||||||||||||||||
| 2692 | ; | - | ||||||||||||||||||||||||
| 2693 | for (j = 1, p = column_vector; j <= columns
| 715-1358 | ||||||||||||||||||||||||
| 2694 | if (p->status == OPEN
| 581-777 | ||||||||||||||||||||||||
| 2695 | skip_read (p, j); executed 581 times by 1 test: skip_read (p, j);Executed by:
| 581 | ||||||||||||||||||||||||
| 2696 | - | |||||||||||||||||||||||||
| 2697 | if (storing_columns
| 216-499 | ||||||||||||||||||||||||
| 2698 | for (j = 1, p = column_vector; j <= columns
| 216-576 | ||||||||||||||||||||||||
| 2699 | if (p->status != CLOSED
| 0-576 | ||||||||||||||||||||||||
| 2700 | p->status = ON_HOLD; executed 576 times by 1 test: p->status = ON_HOLD;Executed by:
| 576 | ||||||||||||||||||||||||
| 2701 | - | |||||||||||||||||||||||||
| 2702 | reset_status (); | - | ||||||||||||||||||||||||
| 2703 | last_line = | - | ||||||||||||||||||||||||
| 2704 | 0 | - | ||||||||||||||||||||||||
| 2705 | ; | - | ||||||||||||||||||||||||
| 2706 | - | |||||||||||||||||||||||||
| 2707 | if (files_ready_to_read < 1
| 0-715 | ||||||||||||||||||||||||
| 2708 | { | - | ||||||||||||||||||||||||
| 2709 | - | |||||||||||||||||||||||||
| 2710 | - | |||||||||||||||||||||||||
| 2711 | error (0, 0, | - | ||||||||||||||||||||||||
| 2712 | - | |||||||||||||||||||||||||
| 2713 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 2714 | "starting page number %" | - | ||||||||||||||||||||||||
| 2715 | "l" "u" | - | ||||||||||||||||||||||||
| 2716 | " exceeds page count %" | - | ||||||||||||||||||||||||
| 2717 | "l" "u", 5) | - | ||||||||||||||||||||||||
| 2718 | - | |||||||||||||||||||||||||
| 2719 | , | - | ||||||||||||||||||||||||
| 2720 | page, n); | - | ||||||||||||||||||||||||
| 2721 | break; never executed: break; | 0 | ||||||||||||||||||||||||
| 2722 | } | - | ||||||||||||||||||||||||
| 2723 | } executed 715 times by 1 test: end of blockExecuted by:
| 715 | ||||||||||||||||||||||||
| 2724 | return executed 239 times by 1 test: files_ready_to_read > 0;return files_ready_to_read > 0;Executed by:
executed 239 times by 1 test: return files_ready_to_read > 0;Executed by:
| 239 | ||||||||||||||||||||||||
| 2725 | } | - | ||||||||||||||||||||||||
| 2726 | - | |||||||||||||||||||||||||
| 2727 | - | |||||||||||||||||||||||||
| 2728 | - | |||||||||||||||||||||||||
| 2729 | - | |||||||||||||||||||||||||
| 2730 | - | |||||||||||||||||||||||||
| 2731 | - | |||||||||||||||||||||||||
| 2732 | static void | - | ||||||||||||||||||||||||
| 2733 | print_header (void) | - | ||||||||||||||||||||||||
| 2734 | { | - | ||||||||||||||||||||||||
| 2735 | char page_text[256 + (((((sizeof (page_number) * 8) - (! ((__typeof__ (page_number)) 0 < (__typeof__ (page_number)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (page_number)) 0 < (__typeof__ (page_number)) -1)))]; | - | ||||||||||||||||||||||||
| 2736 | int available_width; | - | ||||||||||||||||||||||||
| 2737 | int lhs_spaces; | - | ||||||||||||||||||||||||
| 2738 | int rhs_spaces; | - | ||||||||||||||||||||||||
| 2739 | - | |||||||||||||||||||||||||
| 2740 | output_position = 0; | - | ||||||||||||||||||||||||
| 2741 | pad_across_to (chars_per_margin); | - | ||||||||||||||||||||||||
| 2742 | print_white_space (); | - | ||||||||||||||||||||||||
| 2743 | - | |||||||||||||||||||||||||
| 2744 | if (page_number == 0
| 0-3534 | ||||||||||||||||||||||||
| 2745 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2746 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2747 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2748 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2749 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2750 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2751 | "page number overflow" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2752 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2753 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2754 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2755 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2756 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2757 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2758 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2759 | "page number overflow" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2760 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2761 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2762 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2763 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"page number overflow\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "page number overflow" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||
| 2764 | - | |||||||||||||||||||||||||
| 2765 | - | |||||||||||||||||||||||||
| 2766 | - | |||||||||||||||||||||||||
| 2767 | - | |||||||||||||||||||||||||
| 2768 | sprintf (page_text, | - | ||||||||||||||||||||||||
| 2769 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 2770 | "Page %" | - | ||||||||||||||||||||||||
| 2771 | "l" "u", 5) | - | ||||||||||||||||||||||||
| 2772 | , page_number); | - | ||||||||||||||||||||||||
| 2773 | available_width = header_width_available - gnu_mbswidth (page_text, 0); | - | ||||||||||||||||||||||||
| 2774 | available_width = | - | ||||||||||||||||||||||||
| 2775 | (((
| 27-3507 | ||||||||||||||||||||||||
| 2776 | 0
| 27-3507 | ||||||||||||||||||||||||
| 2777 | )>(
| 27-3507 | ||||||||||||||||||||||||
| 2778 | available_width
| 27-3507 | ||||||||||||||||||||||||
| 2779 | ))
| 27-3507 | ||||||||||||||||||||||||
| 2780 | 0 | - | ||||||||||||||||||||||||
| 2781 | ):( | - | ||||||||||||||||||||||||
| 2782 | available_width | - | ||||||||||||||||||||||||
| 2783 | )) | - | ||||||||||||||||||||||||
| 2784 | ; | - | ||||||||||||||||||||||||
| 2785 | lhs_spaces = available_width >> 1; | - | ||||||||||||||||||||||||
| 2786 | rhs_spaces = available_width - lhs_spaces; | - | ||||||||||||||||||||||||
| 2787 | - | |||||||||||||||||||||||||
| 2788 | printf ("\n\n%*s%s%*s%s%*s%s\n\n\n", | - | ||||||||||||||||||||||||
| 2789 | chars_per_margin, "", | - | ||||||||||||||||||||||||
| 2790 | date_text, lhs_spaces, " ", | - | ||||||||||||||||||||||||
| 2791 | file_text, rhs_spaces, " ", page_text); | - | ||||||||||||||||||||||||
| 2792 | - | |||||||||||||||||||||||||
| 2793 | print_a_header = | - | ||||||||||||||||||||||||
| 2794 | 0 | - | ||||||||||||||||||||||||
| 2795 | ; | - | ||||||||||||||||||||||||
| 2796 | output_position = 0; | - | ||||||||||||||||||||||||
| 2797 | } executed 3534 times by 1 test: end of blockExecuted by:
| 3534 | ||||||||||||||||||||||||
| 2798 | static | - | ||||||||||||||||||||||||
| 2799 | _Bool | - | ||||||||||||||||||||||||
| 2800 | - | |||||||||||||||||||||||||
| 2801 | read_line (COLUMN *p) | - | ||||||||||||||||||||||||
| 2802 | { | - | ||||||||||||||||||||||||
| 2803 | int c; | - | ||||||||||||||||||||||||
| 2804 | int chars ; | - | ||||||||||||||||||||||||
| 2805 | int last_input_position; | - | ||||||||||||||||||||||||
| 2806 | int j, k; | - | ||||||||||||||||||||||||
| 2807 | COLUMN *q; | - | ||||||||||||||||||||||||
| 2808 | - | |||||||||||||||||||||||||
| 2809 | - | |||||||||||||||||||||||||
| 2810 | c = getc_unlocked (p->fp); | - | ||||||||||||||||||||||||
| 2811 | - | |||||||||||||||||||||||||
| 2812 | last_input_position = input_position; | - | ||||||||||||||||||||||||
| 2813 | - | |||||||||||||||||||||||||
| 2814 | if (c == '\f'
| 364-30934 | ||||||||||||||||||||||||
| 2815 | if ((
| 167-197 | ||||||||||||||||||||||||
| 2816 | c = getc_unlocked (p->fp); executed 167 times by 1 test: c = getc_unlocked (p->fp);Executed by:
| 167 | ||||||||||||||||||||||||
| 2817 | p->full_page_printed = | - | ||||||||||||||||||||||||
| 2818 | 0 | - | ||||||||||||||||||||||||
| 2819 | ; | - | ||||||||||||||||||||||||
| 2820 | - | |||||||||||||||||||||||||
| 2821 | switch (c) | - | ||||||||||||||||||||||||
| 2822 | { | - | ||||||||||||||||||||||||
| 2823 | case executed 2218 times by 1 test: '\f':case '\f':Executed by:
executed 2218 times by 1 test: case '\f':Executed by:
| 2218 | ||||||||||||||||||||||||
| 2824 | if ((
| 1042-1176 | ||||||||||||||||||||||||
| 2825 | ungetc (c, p->fp); executed 1042 times by 1 test: ungetc (c, p->fp);Executed by:
| 1042 | ||||||||||||||||||||||||
| 2826 | FF_only = | - | ||||||||||||||||||||||||
| 2827 | 1 | - | ||||||||||||||||||||||||
| 2828 | ; | - | ||||||||||||||||||||||||
| 2829 | if (print_a_header
| 0-1330 | ||||||||||||||||||||||||
| 2830 | { | - | ||||||||||||||||||||||||
| 2831 | pad_vertically = | - | ||||||||||||||||||||||||
| 2832 | 1 | - | ||||||||||||||||||||||||
| 2833 | ; | - | ||||||||||||||||||||||||
| 2834 | print_header (); | - | ||||||||||||||||||||||||
| 2835 | } executed 888 times by 1 test: end of blockExecuted by:
| 888 | ||||||||||||||||||||||||
| 2836 | else if (keep_FF
| 228-1102 | ||||||||||||||||||||||||
| 2837 | print_a_FF = executed 228 times by 1 test: print_a_FF = 1 ;Executed by:
| 228 | ||||||||||||||||||||||||
| 2838 | 1 executed 228 times by 1 test: print_a_FF = 1 ;Executed by:
| 228 | ||||||||||||||||||||||||
| 2839 | ; executed 228 times by 1 test: print_a_FF = 1 ;Executed by:
| 228 | ||||||||||||||||||||||||
| 2840 | hold_file (p); | - | ||||||||||||||||||||||||
| 2841 | return executed 2218 times by 1 test: return 1 ;Executed by:
executed 2218 times by 1 test: return 1 ;Executed by:
| 2218 | ||||||||||||||||||||||||
| 2842 | 1 executed 2218 times by 1 test: return 1 ;Executed by:
| 2218 | ||||||||||||||||||||||||
| 2843 | ; executed 2218 times by 1 test: return 1 ;Executed by:
| 2218 | ||||||||||||||||||||||||
| 2844 | case executed 744 times by 1 test: case (-1) :Executed by:
executed 744 times by 1 test: case (-1) :Executed by:
| 744 | ||||||||||||||||||||||||
| 2845 | (-1) executed 744 times by 1 test: case (-1) :Executed by:
| 744 | ||||||||||||||||||||||||
| 2846 | : executed 744 times by 1 test: case (-1) :Executed by:
| 744 | ||||||||||||||||||||||||
| 2847 | close_file (p); | - | ||||||||||||||||||||||||
| 2848 | return executed 744 times by 1 test: return 1 ;Executed by:
executed 744 times by 1 test: return 1 ;Executed by:
| 744 | ||||||||||||||||||||||||
| 2849 | 1 executed 744 times by 1 test: return 1 ;Executed by:
| 744 | ||||||||||||||||||||||||
| 2850 | ; executed 744 times by 1 test: return 1 ;Executed by:
| 744 | ||||||||||||||||||||||||
| 2851 | case executed 501 times by 1 test: '\n':case '\n':Executed by:
executed 501 times by 1 test: case '\n':Executed by:
| 501 | ||||||||||||||||||||||||
| 2852 | break; executed 501 times by 1 test: break;Executed by:
| 501 | ||||||||||||||||||||||||
| 2853 | default executed 29812 times by 1 test: :default:Executed by:
executed 29812 times by 1 test: default:Executed by:
| 29812 | ||||||||||||||||||||||||
| 2854 | chars = char_to_clump (c); | - | ||||||||||||||||||||||||
| 2855 | } executed 29812 times by 1 test: end of blockExecuted by:
| 29812 | ||||||||||||||||||||||||
| 2856 | - | |||||||||||||||||||||||||
| 2857 | if (truncate_lines
| 0-19761 | ||||||||||||||||||||||||
| 2858 | { | - | ||||||||||||||||||||||||
| 2859 | input_position = last_input_position; | - | ||||||||||||||||||||||||
| 2860 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 2861 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 2862 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 2863 | } | - | ||||||||||||||||||||||||
| 2864 | - | |||||||||||||||||||||||||
| 2865 | if (p->char_func != store_char
| 8910-21403 | ||||||||||||||||||||||||
| 2866 | { | - | ||||||||||||||||||||||||
| 2867 | pad_vertically = | - | ||||||||||||||||||||||||
| 2868 | 1 | - | ||||||||||||||||||||||||
| 2869 | ; | - | ||||||||||||||||||||||||
| 2870 | - | |||||||||||||||||||||||||
| 2871 | if (print_a_header
| 0-19972 | ||||||||||||||||||||||||
| 2872 | print_header (); executed 1431 times by 1 test: print_header ();Executed by:
| 1431 | ||||||||||||||||||||||||
| 2873 | - | |||||||||||||||||||||||||
| 2874 | if (parallel_files
| 581-16945 | ||||||||||||||||||||||||
| 2875 | { | - | ||||||||||||||||||||||||
| 2876 | - | |||||||||||||||||||||||||
| 2877 | k = separators_not_printed; | - | ||||||||||||||||||||||||
| 2878 | separators_not_printed = 0; | - | ||||||||||||||||||||||||
| 2879 | for (j = 1, q = column_vector; j <= k
| 581-717 | ||||||||||||||||||||||||
| 2880 | { | - | ||||||||||||||||||||||||
| 2881 | align_column (q); | - | ||||||||||||||||||||||||
| 2882 | separators_not_printed += 1; | - | ||||||||||||||||||||||||
| 2883 | } executed 717 times by 1 test: end of blockExecuted by:
| 717 | ||||||||||||||||||||||||
| 2884 | padding_not_printed = p->start_position; | - | ||||||||||||||||||||||||
| 2885 | if (truncate_lines
| 168-413 | ||||||||||||||||||||||||
| 2886 | spaces_not_printed = chars_per_column; executed 413 times by 1 test: spaces_not_printed = chars_per_column;Executed by:
| 413 | ||||||||||||||||||||||||
| 2887 | else | - | ||||||||||||||||||||||||
| 2888 | spaces_not_printed = 0; executed 168 times by 1 test: spaces_not_printed = 0;Executed by:
| 168 | ||||||||||||||||||||||||
| 2889 | align_empty_cols = | - | ||||||||||||||||||||||||
| 2890 | 0 | - | ||||||||||||||||||||||||
| 2891 | ; | - | ||||||||||||||||||||||||
| 2892 | } executed 581 times by 1 test: end of blockExecuted by:
| 581 | ||||||||||||||||||||||||
| 2893 | - | |||||||||||||||||||||||||
| 2894 | if (col_sep_length < padding_not_printed
| 6325-15078 | ||||||||||||||||||||||||
| 2895 | { | - | ||||||||||||||||||||||||
| 2896 | pad_across_to (padding_not_printed - col_sep_length); | - | ||||||||||||||||||||||||
| 2897 | padding_not_printed = 0; | - | ||||||||||||||||||||||||
| 2898 | } executed 6325 times by 1 test: end of blockExecuted by:
| 6325 | ||||||||||||||||||||||||
| 2899 | - | |||||||||||||||||||||||||
| 2900 | if (use_col_separator
| 9808-11595 | ||||||||||||||||||||||||
| 2901 | print_sep_string (); executed 11595 times by 1 test: print_sep_string ();Executed by:
| 11595 | ||||||||||||||||||||||||
| 2902 | } executed 21403 times by 1 test: end of blockExecuted by:
| 21403 | ||||||||||||||||||||||||
| 2903 | - | |||||||||||||||||||||||||
| 2904 | if (p->numbered
| 5136-25177 | ||||||||||||||||||||||||
| 2905 | add_line_number (p); executed 5136 times by 1 test: add_line_number (p);Executed by:
| 5136 | ||||||||||||||||||||||||
| 2906 | - | |||||||||||||||||||||||||
| 2907 | empty_line = | - | ||||||||||||||||||||||||
| 2908 | 0 | - | ||||||||||||||||||||||||
| 2909 | ; | - | ||||||||||||||||||||||||
| 2910 | if (c == '\n'
| 501-29812 | ||||||||||||||||||||||||
| 2911 | return executed 501 times by 1 test: return 1 ;Executed by:
executed 501 times by 1 test: return 1 ;Executed by:
| 501 | ||||||||||||||||||||||||
| 2912 | 1 executed 501 times by 1 test: return 1 ;Executed by:
| 501 | ||||||||||||||||||||||||
| 2913 | ; executed 501 times by 1 test: return 1 ;Executed by:
| 501 | ||||||||||||||||||||||||
| 2914 | - | |||||||||||||||||||||||||
| 2915 | print_clump (p, chars, clump_buff); | - | ||||||||||||||||||||||||
| 2916 | - | |||||||||||||||||||||||||
| 2917 | while ( | - | ||||||||||||||||||||||||
| 2918 | 1 | - | ||||||||||||||||||||||||
| 2919 | ) | - | ||||||||||||||||||||||||
| 2920 | { | - | ||||||||||||||||||||||||
| 2921 | c = getc_unlocked (p->fp); | - | ||||||||||||||||||||||||
| 2922 | - | |||||||||||||||||||||||||
| 2923 | switch (c) | - | ||||||||||||||||||||||||
| 2924 | { | - | ||||||||||||||||||||||||
| 2925 | case executed 14811 times by 1 test: '\n':case '\n':Executed by:
executed 14811 times by 1 test: case '\n':Executed by:
| 14811 | ||||||||||||||||||||||||
| 2926 | return executed 14811 times by 1 test: return 1 ;Executed by:
executed 14811 times by 1 test: return 1 ;Executed by:
| 14811 | ||||||||||||||||||||||||
| 2927 | 1 executed 14811 times by 1 test: return 1 ;Executed by:
| 14811 | ||||||||||||||||||||||||
| 2928 | ; executed 14811 times by 1 test: return 1 ;Executed by:
| 14811 | ||||||||||||||||||||||||
| 2929 | case executed 357 times by 1 test: '\f':case '\f':Executed by:
executed 357 times by 1 test: case '\f':Executed by:
| 357 | ||||||||||||||||||||||||
| 2930 | if ((
| 76-281 | ||||||||||||||||||||||||
| 2931 | ungetc (c, p->fp); executed 281 times by 1 test: ungetc (c, p->fp);Executed by:
| 281 | ||||||||||||||||||||||||
| 2932 | if (keep_FF
| 12-345 | ||||||||||||||||||||||||
| 2933 | print_a_FF = executed 12 times by 1 test: print_a_FF = 1 ;Executed by:
| 12 | ||||||||||||||||||||||||
| 2934 | 1 executed 12 times by 1 test: print_a_FF = 1 ;Executed by:
| 12 | ||||||||||||||||||||||||
| 2935 | ; executed 12 times by 1 test: print_a_FF = 1 ;Executed by:
| 12 | ||||||||||||||||||||||||
| 2936 | hold_file (p); | - | ||||||||||||||||||||||||
| 2937 | return executed 357 times by 1 test: return 1 ;Executed by:
executed 357 times by 1 test: return 1 ;Executed by:
| 357 | ||||||||||||||||||||||||
| 2938 | 1 executed 357 times by 1 test: return 1 ;Executed by:
| 357 | ||||||||||||||||||||||||
| 2939 | ; executed 357 times by 1 test: return 1 ;Executed by:
| 357 | ||||||||||||||||||||||||
| 2940 | case executed 9 times by 1 test: case (-1) :Executed by:
executed 9 times by 1 test: case (-1) :Executed by:
| 9 | ||||||||||||||||||||||||
| 2941 | (-1) executed 9 times by 1 test: case (-1) :Executed by:
| 9 | ||||||||||||||||||||||||
| 2942 | : executed 9 times by 1 test: case (-1) :Executed by:
| 9 | ||||||||||||||||||||||||
| 2943 | close_file (p); | - | ||||||||||||||||||||||||
| 2944 | return executed 9 times by 1 test: return 1 ;Executed by:
executed 9 times by 1 test: return 1 ;Executed by:
| 9 | ||||||||||||||||||||||||
| 2945 | 1 executed 9 times by 1 test: return 1 ;Executed by:
| 9 | ||||||||||||||||||||||||
| 2946 | ; executed 9 times by 1 test: return 1 ;Executed by:
| 9 | ||||||||||||||||||||||||
| 2947 | } | - | ||||||||||||||||||||||||
| 2948 | - | |||||||||||||||||||||||||
| 2949 | last_input_position = input_position; | - | ||||||||||||||||||||||||
| 2950 | chars = char_to_clump (c); | - | ||||||||||||||||||||||||
| 2951 | if (truncate_lines
| 14635-475708 | ||||||||||||||||||||||||
| 2952 | { | - | ||||||||||||||||||||||||
| 2953 | input_position = last_input_position; | - | ||||||||||||||||||||||||
| 2954 | return executed 14635 times by 1 test: return 0 ;Executed by:
executed 14635 times by 1 test: return 0 ;Executed by:
| 14635 | ||||||||||||||||||||||||
| 2955 | 0 executed 14635 times by 1 test: return 0 ;Executed by:
| 14635 | ||||||||||||||||||||||||
| 2956 | ; executed 14635 times by 1 test: return 0 ;Executed by:
| 14635 | ||||||||||||||||||||||||
| 2957 | } | - | ||||||||||||||||||||||||
| 2958 | - | |||||||||||||||||||||||||
| 2959 | print_clump (p, chars, clump_buff); | - | ||||||||||||||||||||||||
| 2960 | } executed 819364 times by 1 test: end of blockExecuted by:
| 819364 | ||||||||||||||||||||||||
| 2961 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 2962 | static | - | ||||||||||||||||||||||||
| 2963 | _Bool | - | ||||||||||||||||||||||||
| 2964 | - | |||||||||||||||||||||||||
| 2965 | print_stored (COLUMN *p) | - | ||||||||||||||||||||||||
| 2966 | { | - | ||||||||||||||||||||||||
| 2967 | COLUMN *q; | - | ||||||||||||||||||||||||
| 2968 | - | |||||||||||||||||||||||||
| 2969 | int line = p->current_line++; | - | ||||||||||||||||||||||||
| 2970 | char *first = &buff[line_vector[line]]; | - | ||||||||||||||||||||||||
| 2971 | char *last = &buff[line_vector[line + 1]]; | - | ||||||||||||||||||||||||
| 2972 | - | |||||||||||||||||||||||||
| 2973 | pad_vertically = | - | ||||||||||||||||||||||||
| 2974 | 1 | - | ||||||||||||||||||||||||
| 2975 | ; | - | ||||||||||||||||||||||||
| 2976 | - | |||||||||||||||||||||||||
| 2977 | if (print_a_header
| 1215-8208 | ||||||||||||||||||||||||
| 2978 | print_header (); executed 1215 times by 1 test: print_header ();Executed by:
| 1215 | ||||||||||||||||||||||||
| 2979 | - | |||||||||||||||||||||||||
| 2980 | if (p->status == FF_FOUND
| 921-8502 | ||||||||||||||||||||||||
| 2981 | { | - | ||||||||||||||||||||||||
| 2982 | int i; | - | ||||||||||||||||||||||||
| 2983 | for (i = 1, q = column_vector; i <= columns
| 921-2442 | ||||||||||||||||||||||||
| 2984 | q->status = ON_HOLD; executed 2442 times by 1 test: q->status = ON_HOLD;Executed by:
| 2442 | ||||||||||||||||||||||||
| 2985 | if (column_vector->lines_to_print <= 0
| 408-513 | ||||||||||||||||||||||||
| 2986 | { | - | ||||||||||||||||||||||||
| 2987 | if (!extremities
| 66-447 | ||||||||||||||||||||||||
| 2988 | pad_vertically = executed 66 times by 1 test: pad_vertically = 0 ;Executed by:
| 66 | ||||||||||||||||||||||||
| 2989 | 0 executed 66 times by 1 test: pad_vertically = 0 ;Executed by:
| 66 | ||||||||||||||||||||||||
| 2990 | ; executed 66 times by 1 test: pad_vertically = 0 ;Executed by:
| 66 | ||||||||||||||||||||||||
| 2991 | return executed 513 times by 1 test: return 1 ;Executed by:
executed 513 times by 1 test: return 1 ;Executed by:
| 513 | ||||||||||||||||||||||||
| 2992 | 1 executed 513 times by 1 test: return 1 ;Executed by:
| 513 | ||||||||||||||||||||||||
| 2993 | ; executed 513 times by 1 test: return 1 ;Executed by:
| 513 | ||||||||||||||||||||||||
| 2994 | } | - | ||||||||||||||||||||||||
| 2995 | } executed 408 times by 1 test: end of blockExecuted by:
| 408 | ||||||||||||||||||||||||
| 2996 | - | |||||||||||||||||||||||||
| 2997 | if (col_sep_length < padding_not_printed
| 3762-5148 | ||||||||||||||||||||||||
| 2998 | { | - | ||||||||||||||||||||||||
| 2999 | pad_across_to (padding_not_printed - col_sep_length); | - | ||||||||||||||||||||||||
| 3000 | padding_not_printed = 0; | - | ||||||||||||||||||||||||
| 3001 | } executed 5148 times by 1 test: end of blockExecuted by:
| 5148 | ||||||||||||||||||||||||
| 3002 | - | |||||||||||||||||||||||||
| 3003 | if (use_col_separator
| 0-8910 | ||||||||||||||||||||||||
| 3004 | print_sep_string (); executed 8910 times by 1 test: print_sep_string ();Executed by:
| 8910 | ||||||||||||||||||||||||
| 3005 | - | |||||||||||||||||||||||||
| 3006 | while (first != last
| 8910-223917 | ||||||||||||||||||||||||
| 3007 | print_char (*first++); executed 223917 times by 1 test: print_char (*first++);Executed by:
| 223917 | ||||||||||||||||||||||||
| 3008 | - | |||||||||||||||||||||||||
| 3009 | if (spaces_not_printed == 0
| 4284-4626 | ||||||||||||||||||||||||
| 3010 | { | - | ||||||||||||||||||||||||
| 3011 | output_position = p->start_position + end_vector[line]; | - | ||||||||||||||||||||||||
| 3012 | if (p->start_position - col_sep_length == chars_per_margin
| 2130-2496 | ||||||||||||||||||||||||
| 3013 | output_position -= col_sep_length; executed 2130 times by 1 test: output_position -= col_sep_length;Executed by:
| 2130 | ||||||||||||||||||||||||
| 3014 | } executed 4626 times by 1 test: end of blockExecuted by:
| 4626 | ||||||||||||||||||||||||
| 3015 | - | |||||||||||||||||||||||||
| 3016 | return executed 8910 times by 1 test: return 1 ;Executed by:
executed 8910 times by 1 test: return 1 ;Executed by:
| 8910 | ||||||||||||||||||||||||
| 3017 | 1 executed 8910 times by 1 test: return 1 ;Executed by:
| 8910 | ||||||||||||||||||||||||
| 3018 | ; executed 8910 times by 1 test: return 1 ;Executed by:
| 8910 | ||||||||||||||||||||||||
| 3019 | } | - | ||||||||||||||||||||||||
| 3020 | static int | - | ||||||||||||||||||||||||
| 3021 | char_to_clump (char c) | - | ||||||||||||||||||||||||
| 3022 | { | - | ||||||||||||||||||||||||
| 3023 | unsigned char uc = c; | - | ||||||||||||||||||||||||
| 3024 | char *s = clump_buff; | - | ||||||||||||||||||||||||
| 3025 | int i; | - | ||||||||||||||||||||||||
| 3026 | char esc_buff[4]; | - | ||||||||||||||||||||||||
| 3027 | int width; | - | ||||||||||||||||||||||||
| 3028 | int chars; | - | ||||||||||||||||||||||||
| 3029 | int chars_per_c = 8; | - | ||||||||||||||||||||||||
| 3030 | - | |||||||||||||||||||||||||
| 3031 | if (c == input_tab_char
| 276-863535 | ||||||||||||||||||||||||
| 3032 | chars_per_c = chars_per_input_tab; executed 276 times by 1 test: chars_per_c = chars_per_input_tab;Executed by:
| 276 | ||||||||||||||||||||||||
| 3033 | - | |||||||||||||||||||||||||
| 3034 | if (c == input_tab_char
| 30-863535 | ||||||||||||||||||||||||
| 3035 | { | - | ||||||||||||||||||||||||
| 3036 | width = ((chars_per_c) - ((input_position) % (chars_per_c))); | - | ||||||||||||||||||||||||
| 3037 | - | |||||||||||||||||||||||||
| 3038 | if (untabify_input
| 6-300 | ||||||||||||||||||||||||
| 3039 | { | - | ||||||||||||||||||||||||
| 3040 | for (i = width; i
| 300-2532 | ||||||||||||||||||||||||
| 3041 | * executed 2532 times by 1 test: s++ = ' ';*s++ = ' ';Executed by:
executed 2532 times by 1 test: *s++ = ' ';Executed by:
| 2532 | ||||||||||||||||||||||||
| 3042 | chars = width; | - | ||||||||||||||||||||||||
| 3043 | } executed 300 times by 1 test: end of blockExecuted by:
| 300 | ||||||||||||||||||||||||
| 3044 | else | - | ||||||||||||||||||||||||
| 3045 | { | - | ||||||||||||||||||||||||
| 3046 | *s = c; | - | ||||||||||||||||||||||||
| 3047 | chars = 1; | - | ||||||||||||||||||||||||
| 3048 | } executed 6 times by 1 test: end of blockExecuted by:
| 6 | ||||||||||||||||||||||||
| 3049 | - | |||||||||||||||||||||||||
| 3050 | } | - | ||||||||||||||||||||||||
| 3051 | else if (!
| 330-863175 | ||||||||||||||||||||||||
| 3052 | ((*__ctype_b_loc ())[(int) ((
| 330-863175 | ||||||||||||||||||||||||
| 3053 | uc
| 330-863175 | ||||||||||||||||||||||||
| 3054 | ))] & (unsigned short int) _ISprint)
| 330-863175 | ||||||||||||||||||||||||
| 3055 | ) | - | ||||||||||||||||||||||||
| 3056 | { | - | ||||||||||||||||||||||||
| 3057 | if (use_esc_sequence
| 0-330 | ||||||||||||||||||||||||
| 3058 | { | - | ||||||||||||||||||||||||
| 3059 | width = 4; | - | ||||||||||||||||||||||||
| 3060 | chars = 4; | - | ||||||||||||||||||||||||
| 3061 | *s++ = '\\'; | - | ||||||||||||||||||||||||
| 3062 | sprintf (esc_buff, "%03o", uc); | - | ||||||||||||||||||||||||
| 3063 | for (i = 0; i <= 2
| 0 | ||||||||||||||||||||||||
| 3064 | * never executed: s++ = esc_buff[i];*s++ = esc_buff[i];never executed: *s++ = esc_buff[i]; | 0 | ||||||||||||||||||||||||
| 3065 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 3066 | else if (use_cntrl_prefix
| 0-330 | ||||||||||||||||||||||||
| 3067 | { | - | ||||||||||||||||||||||||
| 3068 | if (uc < 0200
| 0 | ||||||||||||||||||||||||
| 3069 | { | - | ||||||||||||||||||||||||
| 3070 | width = 2; | - | ||||||||||||||||||||||||
| 3071 | chars = 2; | - | ||||||||||||||||||||||||
| 3072 | *s++ = '^'; | - | ||||||||||||||||||||||||
| 3073 | *s = c ^ 0100; | - | ||||||||||||||||||||||||
| 3074 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 3075 | else | - | ||||||||||||||||||||||||
| 3076 | { | - | ||||||||||||||||||||||||
| 3077 | width = 4; | - | ||||||||||||||||||||||||
| 3078 | chars = 4; | - | ||||||||||||||||||||||||
| 3079 | *s++ = '\\'; | - | ||||||||||||||||||||||||
| 3080 | sprintf (esc_buff, "%03o", uc); | - | ||||||||||||||||||||||||
| 3081 | for (i = 0; i <= 2
| 0 | ||||||||||||||||||||||||
| 3082 | * never executed: s++ = esc_buff[i];*s++ = esc_buff[i];never executed: *s++ = esc_buff[i]; | 0 | ||||||||||||||||||||||||
| 3083 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 3084 | } | - | ||||||||||||||||||||||||
| 3085 | else if (c == '\b'
| 0-330 | ||||||||||||||||||||||||
| 3086 | { | - | ||||||||||||||||||||||||
| 3087 | width = -1; | - | ||||||||||||||||||||||||
| 3088 | chars = 1; | - | ||||||||||||||||||||||||
| 3089 | *s = c; | - | ||||||||||||||||||||||||
| 3090 | } executed 330 times by 1 test: end of blockExecuted by:
| 330 | ||||||||||||||||||||||||
| 3091 | else | - | ||||||||||||||||||||||||
| 3092 | { | - | ||||||||||||||||||||||||
| 3093 | width = 0; | - | ||||||||||||||||||||||||
| 3094 | chars = 1; | - | ||||||||||||||||||||||||
| 3095 | *s = c; | - | ||||||||||||||||||||||||
| 3096 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 3097 | } | - | ||||||||||||||||||||||||
| 3098 | else | - | ||||||||||||||||||||||||
| 3099 | { | - | ||||||||||||||||||||||||
| 3100 | width = 1; | - | ||||||||||||||||||||||||
| 3101 | chars = 1; | - | ||||||||||||||||||||||||
| 3102 | *s = c; | - | ||||||||||||||||||||||||
| 3103 | } executed 863175 times by 1 test: end of blockExecuted by:
| 863175 | ||||||||||||||||||||||||
| 3104 | - | |||||||||||||||||||||||||
| 3105 | - | |||||||||||||||||||||||||
| 3106 | if (width < 0
| 15-863481 | ||||||||||||||||||||||||
| 3107 | { | - | ||||||||||||||||||||||||
| 3108 | chars = 0; | - | ||||||||||||||||||||||||
| 3109 | input_position = 0; | - | ||||||||||||||||||||||||
| 3110 | } executed 315 times by 1 test: end of blockExecuted by:
| 315 | ||||||||||||||||||||||||
| 3111 | else if (width < 0
| 6-863481 | ||||||||||||||||||||||||
| 3112 | input_position = 0; executed 9 times by 1 test: input_position = 0;Executed by:
| 9 | ||||||||||||||||||||||||
| 3113 | else | - | ||||||||||||||||||||||||
| 3114 | input_position += width; executed 863487 times by 1 test: input_position += width;Executed by:
| 863487 | ||||||||||||||||||||||||
| 3115 | - | |||||||||||||||||||||||||
| 3116 | return executed 863811 times by 1 test: chars;return chars;Executed by:
executed 863811 times by 1 test: return chars;Executed by:
| 863811 | ||||||||||||||||||||||||
| 3117 | } | - | ||||||||||||||||||||||||
| 3118 | - | |||||||||||||||||||||||||
| 3119 | - | |||||||||||||||||||||||||
| 3120 | - | |||||||||||||||||||||||||
| 3121 | - | |||||||||||||||||||||||||
| 3122 | - | |||||||||||||||||||||||||
| 3123 | - | |||||||||||||||||||||||||
| 3124 | static void | - | ||||||||||||||||||||||||
| 3125 | cleanup (void) | - | ||||||||||||||||||||||||
| 3126 | { | - | ||||||||||||||||||||||||
| 3127 | free (number_buff); | - | ||||||||||||||||||||||||
| 3128 | free (clump_buff); | - | ||||||||||||||||||||||||
| 3129 | free (column_vector); | - | ||||||||||||||||||||||||
| 3130 | free (line_vector); | - | ||||||||||||||||||||||||
| 3131 | free (end_vector); | - | ||||||||||||||||||||||||
| 3132 | free (buff); | - | ||||||||||||||||||||||||
| 3133 | } executed 725 times by 1 test: end of blockExecuted by:
| 725 | ||||||||||||||||||||||||
| 3134 | - | |||||||||||||||||||||||||
| 3135 | - | |||||||||||||||||||||||||
| 3136 | - | |||||||||||||||||||||||||
| 3137 | void | - | ||||||||||||||||||||||||
| 3138 | usage (int status) | - | ||||||||||||||||||||||||
| 3139 | { | - | ||||||||||||||||||||||||
| 3140 | if (status !=
| 4-33 | ||||||||||||||||||||||||
| 3141 | 0
| 4-33 | ||||||||||||||||||||||||
| 3142 | ) | - | ||||||||||||||||||||||||
| 3143 | do { fprintf ( | - | ||||||||||||||||||||||||
| 3144 | stderr | - | ||||||||||||||||||||||||
| 3145 | , | - | ||||||||||||||||||||||||
| 3146 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3147 | "Try '%s --help' for more information.\n" | - | ||||||||||||||||||||||||
| 3148 | , 5) | - | ||||||||||||||||||||||||
| 3149 | , program_name); } executed 4 times by 1 test: while (0);end of blockExecuted by:
| 4 | ||||||||||||||||||||||||
| 3150 | else | - | ||||||||||||||||||||||||
| 3151 | { | - | ||||||||||||||||||||||||
| 3152 | printf ( | - | ||||||||||||||||||||||||
| 3153 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3154 | "Usage: %s [OPTION]... [FILE]...\n" | - | ||||||||||||||||||||||||
| 3155 | , 5) | - | ||||||||||||||||||||||||
| 3156 | - | |||||||||||||||||||||||||
| 3157 | - | |||||||||||||||||||||||||
| 3158 | , | - | ||||||||||||||||||||||||
| 3159 | program_name); | - | ||||||||||||||||||||||||
| 3160 | - | |||||||||||||||||||||||||
| 3161 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3162 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3163 | "Paginate or columnate FILE(s) for printing.\n" | - | ||||||||||||||||||||||||
| 3164 | , 5) | - | ||||||||||||||||||||||||
| 3165 | , | - | ||||||||||||||||||||||||
| 3166 | stdout | - | ||||||||||||||||||||||||
| 3167 | ) | - | ||||||||||||||||||||||||
| 3168 | - | |||||||||||||||||||||||||
| 3169 | ; | - | ||||||||||||||||||||||||
| 3170 | - | |||||||||||||||||||||||||
| 3171 | emit_stdin_note (); | - | ||||||||||||||||||||||||
| 3172 | emit_mandatory_arg_note (); | - | ||||||||||||||||||||||||
| 3173 | - | |||||||||||||||||||||||||
| 3174 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3175 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3176 | " +FIRST_PAGE[:LAST_PAGE], --pages=FIRST_PAGE[:LAST_PAGE]\n begin [stop] printing with page FIRST_[LAST_]PAGE\n -COLUMN, --columns=COLUMN\n output COLUMN columns and print columns down,\n unless -a is used. Balance number of lines in the\n columns on each page\n" | - | ||||||||||||||||||||||||
| 3177 | , 5) | - | ||||||||||||||||||||||||
| 3178 | , | - | ||||||||||||||||||||||||
| 3179 | stdout | - | ||||||||||||||||||||||||
| 3180 | ) | - | ||||||||||||||||||||||||
| 3181 | - | |||||||||||||||||||||||||
| 3182 | - | |||||||||||||||||||||||||
| 3183 | - | |||||||||||||||||||||||||
| 3184 | - | |||||||||||||||||||||||||
| 3185 | - | |||||||||||||||||||||||||
| 3186 | - | |||||||||||||||||||||||||
| 3187 | ; | - | ||||||||||||||||||||||||
| 3188 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3189 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3190 | " -a, --across print columns across rather than down, used together\n with -COLUMN\n -c, --show-control-chars\n use hat notation (^G) and octal backslash notation\n -d, --double-space\n double space the output\n" | - | ||||||||||||||||||||||||
| 3191 | , 5) | - | ||||||||||||||||||||||||
| 3192 | , | - | ||||||||||||||||||||||||
| 3193 | stdout | - | ||||||||||||||||||||||||
| 3194 | ) | - | ||||||||||||||||||||||||
| 3195 | - | |||||||||||||||||||||||||
| 3196 | - | |||||||||||||||||||||||||
| 3197 | - | |||||||||||||||||||||||||
| 3198 | - | |||||||||||||||||||||||||
| 3199 | - | |||||||||||||||||||||||||
| 3200 | - | |||||||||||||||||||||||||
| 3201 | ; | - | ||||||||||||||||||||||||
| 3202 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3203 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3204 | " -D, --date-format=FORMAT\n use FORMAT for the header date\n -e[CHAR[WIDTH]], --expand-tabs[=CHAR[WIDTH]]\n expand input CHARs (TABs) to tab WIDTH (8)\n -F, -f, --form-feed\n use form feeds instead of newlines to separate pages\n (by a 3-line page header with -F or a 5-line header\n and trailer without -F)\n" | - | ||||||||||||||||||||||||
| 3205 | , 5) | - | ||||||||||||||||||||||||
| 3206 | , | - | ||||||||||||||||||||||||
| 3207 | stdout | - | ||||||||||||||||||||||||
| 3208 | ) | - | ||||||||||||||||||||||||
| 3209 | ; | - | ||||||||||||||||||||||||
| 3210 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3211 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3212 | " -h, --header=HEADER\n use a centered HEADER instead of filename in page header,\n -h \"\" prints a blank line, don't use -h\"\"\n -i[CHAR[WIDTH]], --output-tabs[=CHAR[WIDTH]]\n replace spaces with CHARs (TABs) to tab WIDTH (8)\n -J, --join-lines merge full lines, turns off -W line truncation, no column\n alignment, --sep-string[=STRING] sets separators\n" | - | ||||||||||||||||||||||||
| 3213 | , 5) | - | ||||||||||||||||||||||||
| 3214 | , | - | ||||||||||||||||||||||||
| 3215 | stdout | - | ||||||||||||||||||||||||
| 3216 | ) | - | ||||||||||||||||||||||||
| 3217 | - | |||||||||||||||||||||||||
| 3218 | - | |||||||||||||||||||||||||
| 3219 | - | |||||||||||||||||||||||||
| 3220 | - | |||||||||||||||||||||||||
| 3221 | - | |||||||||||||||||||||||||
| 3222 | - | |||||||||||||||||||||||||
| 3223 | - | |||||||||||||||||||||||||
| 3224 | ; | - | ||||||||||||||||||||||||
| 3225 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3226 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3227 | " -l, --length=PAGE_LENGTH\n set the page length to PAGE_LENGTH (66) lines\n (default number of lines of text 56, and with -F 63).\n implies -t if PAGE_LENGTH <= 10\n" | - | ||||||||||||||||||||||||
| 3228 | , 5) | - | ||||||||||||||||||||||||
| 3229 | , | - | ||||||||||||||||||||||||
| 3230 | stdout | - | ||||||||||||||||||||||||
| 3231 | ) | - | ||||||||||||||||||||||||
| 3232 | - | |||||||||||||||||||||||||
| 3233 | - | |||||||||||||||||||||||||
| 3234 | - | |||||||||||||||||||||||||
| 3235 | - | |||||||||||||||||||||||||
| 3236 | ; | - | ||||||||||||||||||||||||
| 3237 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3238 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3239 | " -m, --merge print all files in parallel, one in each column,\n truncate lines, but join lines of full length with -J\n" | - | ||||||||||||||||||||||||
| 3240 | , 5) | - | ||||||||||||||||||||||||
| 3241 | , | - | ||||||||||||||||||||||||
| 3242 | stdout | - | ||||||||||||||||||||||||
| 3243 | ) | - | ||||||||||||||||||||||||
| 3244 | - | |||||||||||||||||||||||||
| 3245 | - | |||||||||||||||||||||||||
| 3246 | ; | - | ||||||||||||||||||||||||
| 3247 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3248 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3249 | " -n[SEP[DIGITS]], --number-lines[=SEP[DIGITS]]\n number lines, use DIGITS (5) digits, then SEP (TAB),\n default counting starts with 1st line of input file\n -N, --first-line-number=NUMBER\n start counting with NUMBER at 1st line of first\n page printed (see +FIRST_PAGE)\n" | - | ||||||||||||||||||||||||
| 3250 | , 5) | - | ||||||||||||||||||||||||
| 3251 | , | - | ||||||||||||||||||||||||
| 3252 | stdout | - | ||||||||||||||||||||||||
| 3253 | ) | - | ||||||||||||||||||||||||
| 3254 | - | |||||||||||||||||||||||||
| 3255 | - | |||||||||||||||||||||||||
| 3256 | - | |||||||||||||||||||||||||
| 3257 | - | |||||||||||||||||||||||||
| 3258 | - | |||||||||||||||||||||||||
| 3259 | - | |||||||||||||||||||||||||
| 3260 | ; | - | ||||||||||||||||||||||||
| 3261 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3262 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3263 | " -o, --indent=MARGIN\n offset each line with MARGIN (zero) spaces, do not\n affect -w or -W, MARGIN will be added to PAGE_WIDTH\n -r, --no-file-warnings\n omit warning when a file cannot be opened\n" | - | ||||||||||||||||||||||||
| 3264 | , 5) | - | ||||||||||||||||||||||||
| 3265 | , | - | ||||||||||||||||||||||||
| 3266 | stdout | - | ||||||||||||||||||||||||
| 3267 | ) | - | ||||||||||||||||||||||||
| 3268 | - | |||||||||||||||||||||||||
| 3269 | - | |||||||||||||||||||||||||
| 3270 | - | |||||||||||||||||||||||||
| 3271 | - | |||||||||||||||||||||||||
| 3272 | - | |||||||||||||||||||||||||
| 3273 | ; | - | ||||||||||||||||||||||||
| 3274 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3275 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3276 | " -s[CHAR], --separator[=CHAR]\n separate columns by a single character, default for CHAR\n is the <TAB> character without -w and \'no char\' with -w.\n -s[CHAR] turns off line truncation of all 3 column\n options (-COLUMN|-a -COLUMN|-m) except -w is set\n" | - | ||||||||||||||||||||||||
| 3277 | , 5) | - | ||||||||||||||||||||||||
| 3278 | , | - | ||||||||||||||||||||||||
| 3279 | stdout | - | ||||||||||||||||||||||||
| 3280 | ) | - | ||||||||||||||||||||||||
| 3281 | - | |||||||||||||||||||||||||
| 3282 | - | |||||||||||||||||||||||||
| 3283 | - | |||||||||||||||||||||||||
| 3284 | - | |||||||||||||||||||||||||
| 3285 | - | |||||||||||||||||||||||||
| 3286 | - | |||||||||||||||||||||||||
| 3287 | ; | - | ||||||||||||||||||||||||
| 3288 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3289 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3290 | " -S[STRING], --sep-string[=STRING]\n separate columns by STRING,\n without -S: Default separator <TAB> with -J and <space>\n otherwise (same as -S\" \"), no effect on column options\n" | - | ||||||||||||||||||||||||
| 3291 | , 5) | - | ||||||||||||||||||||||||
| 3292 | , | - | ||||||||||||||||||||||||
| 3293 | stdout | - | ||||||||||||||||||||||||
| 3294 | ) | - | ||||||||||||||||||||||||
| 3295 | - | |||||||||||||||||||||||||
| 3296 | - | |||||||||||||||||||||||||
| 3297 | - | |||||||||||||||||||||||||
| 3298 | - | |||||||||||||||||||||||||
| 3299 | ; | - | ||||||||||||||||||||||||
| 3300 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3301 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3302 | " -t, --omit-header omit page headers and trailers;\n implied if PAGE_LENGTH <= 10\n" | - | ||||||||||||||||||||||||
| 3303 | , 5) | - | ||||||||||||||||||||||||
| 3304 | , | - | ||||||||||||||||||||||||
| 3305 | stdout | - | ||||||||||||||||||||||||
| 3306 | ) | - | ||||||||||||||||||||||||
| 3307 | - | |||||||||||||||||||||||||
| 3308 | - | |||||||||||||||||||||||||
| 3309 | ; | - | ||||||||||||||||||||||||
| 3310 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3311 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3312 | " -T, --omit-pagination\n omit page headers and trailers, eliminate any pagination\n by form feeds set in input files\n -v, --show-nonprinting\n use octal backslash notation\n -w, --width=PAGE_WIDTH\n set page width to PAGE_WIDTH (72) characters for\n multiple text-column output only, -s[char] turns off (72)\n" | - | ||||||||||||||||||||||||
| 3313 | , 5) | - | ||||||||||||||||||||||||
| 3314 | , | - | ||||||||||||||||||||||||
| 3315 | stdout | - | ||||||||||||||||||||||||
| 3316 | ) | - | ||||||||||||||||||||||||
| 3317 | ; | - | ||||||||||||||||||||||||
| 3318 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3319 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3320 | " -W, --page-width=PAGE_WIDTH\n set page width to PAGE_WIDTH (72) characters always,\n truncate lines, except -J option is set, no interference\n with -S or -s\n" | - | ||||||||||||||||||||||||
| 3321 | , 5) | - | ||||||||||||||||||||||||
| 3322 | , | - | ||||||||||||||||||||||||
| 3323 | stdout | - | ||||||||||||||||||||||||
| 3324 | ) | - | ||||||||||||||||||||||||
| 3325 | - | |||||||||||||||||||||||||
| 3326 | - | |||||||||||||||||||||||||
| 3327 | - | |||||||||||||||||||||||||
| 3328 | - | |||||||||||||||||||||||||
| 3329 | ; | - | ||||||||||||||||||||||||
| 3330 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3331 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3332 | " --help display this help and exit\n" | - | ||||||||||||||||||||||||
| 3333 | , 5) | - | ||||||||||||||||||||||||
| 3334 | , | - | ||||||||||||||||||||||||
| 3335 | stdout | - | ||||||||||||||||||||||||
| 3336 | ); | - | ||||||||||||||||||||||||
| 3337 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 3338 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 3339 | " --version output version information and exit\n" | - | ||||||||||||||||||||||||
| 3340 | , 5) | - | ||||||||||||||||||||||||
| 3341 | , | - | ||||||||||||||||||||||||
| 3342 | stdout | - | ||||||||||||||||||||||||
| 3343 | ); | - | ||||||||||||||||||||||||
| 3344 | emit_ancillary_info ("pr"); | - | ||||||||||||||||||||||||
| 3345 | } executed 33 times by 1 test: end of blockExecuted by:
| 33 | ||||||||||||||||||||||||
| 3346 | exit (status); executed 37 times by 1 test: exit (status);Executed by:
| 37 | ||||||||||||||||||||||||
| 3347 | } | - | ||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |