From 745ddce75aa4860b9d82dcc5b06297df33f06583 Mon Sep 17 00:00:00 2001 From: herbert Date: Wed, 2 Mar 2005 19:59:26 +1100 Subject: Enclose abort insode ifdef DEBUG. --- src/bltin/test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/bltin/test.c b/src/bltin/test.c index 1bcba4e..6a2e02c 100644 --- a/src/bltin/test.c +++ b/src/bltin/test.c @@ -304,6 +304,11 @@ binop(void) syntax(op->op_text, "argument expected"); switch (op->op_num) { + default: +#ifdef DEBUG + abort(); + /* NOTREACHED */ +#endif case STREQ: return strcmp(opnd1, opnd2) == 0; case STRNE: @@ -330,9 +335,6 @@ binop(void) return olderf (opnd1, opnd2); case FILEQ: return equalf (opnd1, opnd2); - default: - abort(); - /* NOTREACHED */ } } -- cgit 1.4.1 n> dontfiles
summary refs log tree commit diff
path: root/bin/gfx-x11.c (unfollow)
Commit message (Collapse)Author
2019-02-09Add css and inline HTML options to hiJune McEnroe
2019-02-09Combine all Keyword patternsJune McEnroe
2019-02-09Run hi -c after compiling hiJune McEnroe
2019-02-09Fix IRC output monospace option to emit once per lineJune McEnroe
2019-02-09Add output format options to hiJune McEnroe
The monospace option for IRC output doesn't really work, since IRCCloud puts a box around each span this way.
2019-02-09Avoid using SGRReset and IRCResetJune McEnroe
2019-02-08Use X macros for hi classesJune McEnroe
2019-02-08Don't open folds when using {}June McEnroe
2019-02-08Add sh syntax to hiJune McEnroe
2019-02-08Use [] to quote special characters in regexJune McEnroe
This looks much cleaner than having to double-escape backslash.
2019-02-08Improve ANSI output and base IRC on itJune McEnroe
2019-02-08Add hi -nJune McEnroe
2019-02-08Elaborate hi man pageJune McEnroe
2019-02-08Use set for parent in hiJune McEnroe
2019-02-08Switch back to semantic keyword grouping in hiJune McEnroe
2019-02-08Match only the basename in hiJune McEnroe
2019-02-07Add mdoc syntax to hiJune McEnroe
2019-02-07Support multi-line C macros in hiJune McEnroe
2019-02-07Detect .mk files as makeJune McEnroe
2019-02-07Add make syntax to hiJune McEnroe
2019-02-07Add IRC output to hiJune McEnroe
2019-02-07Improve C syntax accuracy and add Format classJune McEnroe
2019-02-07Factor out hi checkJune McEnroe
Fix subexpression bounds check and compile pattends.
2019-02-07Add Escape class to hiJune McEnroe
2019-02-07Add Todo class and parent syntax constraintJune McEnroe