Lines Matching refs:pattern
184 #define PATSTACKSIZE 20 /* Pattern stack for save/restore testing */
362 { "pattern", CMD_PATTERN },
383 MOD_PAT, /* Applies to a pattern */
386 MOD_PD, /* Applies to a pattern or a data line */
388 MOD_PND, /* As MOD_PD, but not for a default pattern */
403 either on a pattern or a data line, so they must all be distinct. There are now
452 /* These are all the controls that may be set either on a pattern or on a
471 (data). Fields containing modifiers that can be set either for a pattern or a
475 typedef struct patctl { /* Structure for pattern modifiers. */
508 enum { CTX_PAT, /* Active pattern context */
509 CTX_POPPAT, /* Ditto, for a popped pattern */
510 CTX_DEFPAT, /* Default pattern context */
664 /* Pattern controls that are mutually exclusive. At present these are all in
831 Pattern lines are always copied to pbuffer8 for use in callouts, even if they
2718 * Convert pattern to 16-bit *
2797 * Convert pattern to 32-bit *
3129 ctx CTX_PAT => pattern context
3130 CTX_POPPAT => pattern context for popped pattern
3131 CTX_DEFPAT => default pattern context
3134 pctl point to pattern control block
3176 case MOD_PAT: /* Pattern modifier */
3181 case MOD_PD: /* Pattern or data line modifier */
3183 case MOD_PND: /* Ditto, but not default pattern */
3216 ctx CTX_PAT => pattern context
3217 CTX_POPPAT => pattern context for popped pattern
3218 CTX_DEFPAT => default pattern context
3221 pctl point to pattern control block
3557 * Get info from a pattern *
3561 pattern.
3582 fprintf(outfile, "Running in %d-bit mode but pattern was compiled in "
3616 Because the bits are unique, this can be used for both pattern and data control
3748 * Show memory usage info for a pattern *
3836 * Show information about a pattern *
3839 /* This function is called after a pattern has been compiled if any of the
4215 no compiled pattern (compiled_code is NULL). The line is in buffer.
4272 /* Set default pattern modifiers */
4311 /* Pop or copy a compiled pattern off the stack. Modifiers that do not affect
4312 the compiled pattern (e.g. to give information) are permitted. The default
4313 pattern modifiers are ignored. */
4419 fprintf(outfile, "** Not enough space on pattern stack for %d pattern%s\n",
4422 fprintf(outfile, "** Decoding %d pattern%s\n", rc,
4441 * Process pattern line *
4445 pattern. The first character is known to be a valid delimiter. The pattern is
4447 this test. The pattern is then compiled.
4469 /* Initialize the context and pattern/data controls for this test from the
4475 /* Find the end of the pattern, reading more lines if necessary. */
4494 /* If the first character after the delimiter is backslash, make the pattern
4496 message when a pattern ends with backslash. */
4500 /* Terminate the pattern at the delimiter, and compute the length. */
4531 /* Now copy the pattern to pbuffer8 for use in 8-bit testing and for reflecting
4556 fprintf(outfile, "** Missing closing quote in hex pattern\n");
4570 fprintf(outfile, "** Unexpected non-hex-digit '%c' in hex pattern: "
4576 fprintf(outfile, "** Odd number of digits in hex pattern\n");
4582 fprintf(outfile, "** Unexpected non-hex-digit '%c' in hex pattern: "
4628 fprintf(outfile, "** Pattern repeat count too large\n");
4859 "** Ignored when compiled pattern is stacked with 'push':");
4867 "** Applies only to compile when pattern is stacked with 'push':");
4905 /* The pattern is now in pbuffer[8|16|32], with the length in patlen. By
4906 default, however, we pass a zero-terminated pattern. The length is passed only
4907 if we had a hex pattern. */
4986 the pattern each time because that is the only way to free the JIT compiled
5018 pattern so that it is preserved over push/pop. */
5034 /* The "push" control requests that the compiled pattern be remembered on a
5048 /* The "pushcopy" control is similar, but pushes a copy of the pattern. This
5227 /* For automatic callouts, show the pattern offset. Otherwise, for a numerical
5554 copy from the pattern the controls that can be set in either the pattern or the
6073 causes a new match data block to be obtained that exactly fits the pattern. */
6437 /* "allcaptures" requests showing of all captures in the pattern, to check
6438 unset ones at the end. It may be set on the pattern or the data. Implement
6529 /* When a pattern contains \K, the start of match position may be
6757 tricky case. If a pattern contains \K within a lookbehind assertion at the
6904 printf(" -b set default pattern control 'fullbincode'\n");
6919 printf(" -d set default pattern control 'debug'\n");
6923 printf(" -i set default pattern control 'info'\n");
6924 printf(" -jit set default pattern control 'jit'\n");
6926 printf(" -pattern <s> set default pattern control fields\n");
7101 /* The offsets to the options and control bits fields of the pattern and data
7111 "options and control offsets for pattern and data must be the same.\n");
7253 /* Set some common pattern and subject controls */
7323 else if (strcmp(arg, "-pattern") == 0)
7565 /* If we have a pattern set up for testing, or we are skipping after a
7594 /* We do not have a pattern set up for testing. Lines starting with # are
7596 line must start with a valid delimiter. It is then processed as a pattern
7616 fprintf(outfile, "** Invalid pattern delimiter '%c' (x%x).\n", *buffer,