aboutsummaryrefslogtreecommitdiff
path: root/editors/awk.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-22 22:55:11 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-22 22:55:11 +0000
commit86f5c9906beac527f3d7966f24811b571a589e08 (patch)
tree1c9eba853c728b5d734506e1c66c269d96fe46ea /editors/awk.c
parent2edf52643d3eb3d13f26d31f9678cf122f2063bc (diff)
downloadbusybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.gz
busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.bz2
busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.zip
- add platform.h.
- use shorter boilerplate while at it.
Diffstat (limited to 'editors/awk.c')
-rw-r--r--editors/awk.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 4bd872924..80ff8c77b 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -4,20 +4,7 @@
4 * 4 *
5 * Copyright (C) 2002 by Dmitry Zakharov <dmit@crp.bank.gov.ua> 5 * Copyright (C) 2002 by Dmitry Zakharov <dmit@crp.bank.gov.ua>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 */ 8 */
22 9
23#include <stdio.h> 10#include <stdio.h>
@@ -445,7 +432,7 @@ static void chain_group(void);
445static var *evaluate(node *, var *); 432static var *evaluate(node *, var *);
446static rstream *next_input_file(void); 433static rstream *next_input_file(void);
447static int fmt_num(char *, int, const char *, double, int); 434static int fmt_num(char *, int, const char *, double, int);
448static int awk_exit(int) attribute_noreturn; 435static int awk_exit(int) ATTRIBUTE_NORETURN;
449 436
450/* ---- error handling ---- */ 437/* ---- error handling ---- */
451 438
@@ -462,7 +449,7 @@ static const char EMSG_UNDEF_FUNC[] = "Call to undefined function";
462static const char EMSG_NO_MATH[] = "Math support is not compiled in"; 449static const char EMSG_NO_MATH[] = "Math support is not compiled in";
463#endif 450#endif
464 451
465static void syntax_error(const char * const message) attribute_noreturn; 452static void syntax_error(const char * const message) ATTRIBUTE_NORETURN;
466static void syntax_error(const char * const message) 453static void syntax_error(const char * const message)
467{ 454{
468 bb_error_msg_and_die("%s:%i: %s", programname, lineno, message); 455 bb_error_msg_and_die("%s:%i: %s", programname, lineno, message);