aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-22 22:55:11 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-22 22:55:11 +0000
commit992cb48d69edf2d39dd860e116b2c81ef0b57caa (patch)
tree1c9eba853c728b5d734506e1c66c269d96fe46ea /editors
parent109a761214fa3176bf09b23b4b3f2cb7da5a6971 (diff)
downloadbusybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.tar.gz
busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.tar.bz2
busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.zip
- add platform.h.
- use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'editors')
-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);