Lines Matching refs:commands
56 static int regerr(sed_commands_t *commands, int err);
57 static void comperr(sed_commands_t *commands, char *msg);
63 static void comperr(sed_commands_t *commands, char *msg)
65 command_errf(commands, msg, commands->linebuf);
70 static int regerr(sed_commands_t *commands, int err)
77 comperr(commands, "Range endpoint too large: %s");
81 comperr(commands, "Bad number: %s");
85 comperr(commands, "``\\digit'' out of range: %s");
89 comperr(commands, "Illegal or missing delimiter: %s");
93 comperr(commands, "No remembered search string: %s");
97 comperr(commands, "\\( \\) imbalance: %s");
101 comperr(commands, "Too many \\(: %s");
105 comperr(commands, "More than 2 numbers given in \\{ \\}: %s");
109 comperr(commands, "} expected after \\: %s");
113 comperr(commands, "First number exceeds second in \\{ \\}: %s");
117 comperr(commands, "[ ] imbalance: %s");
121 comperr(commands, SEDERR_TMMES);
125 comperr(commands, "Unknown regexp error code %s\n");
132 char *sed_compile(sed_commands_t *commands, sed_comp_args *compargs,
146 char *sp = commands->cp;
155 commands->cp = sp;
174 commands->cp = sp;
185 commands->cp = sp;
352 regerr(commands, regerrno);