equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
93 va_list args; |
93 va_list args; |
94 |
94 |
95 va_start(args, fmt); |
95 va_start(args, fmt); |
96 switch (flag) { |
96 switch (flag) { |
97 case 0: _AD._warnings += _AD.emit_msg(0, flag, linenum, fmt, args); |
97 case 0: _AD._warnings += _AD.emit_msg(0, flag, linenum, fmt, args); |
|
98 break; |
98 case 1: _AD._syntax_errs += _AD.emit_msg(0, flag, linenum, fmt, args); |
99 case 1: _AD._syntax_errs += _AD.emit_msg(0, flag, linenum, fmt, args); |
|
100 break; |
99 case 2: _AD._semantic_errs += _AD.emit_msg(0, flag, linenum, fmt, args); |
101 case 2: _AD._semantic_errs += _AD.emit_msg(0, flag, linenum, fmt, args); |
|
102 break; |
100 default: assert(0, ""); break; |
103 default: assert(0, ""); break; |
101 } |
104 } |
102 va_end(args); |
105 va_end(args); |
103 _AD._no_output = 1; |
106 _AD._no_output = 1; |
104 } |
107 } |