svn commit: trunk/busybox/coreutils

aldot at busybox.net aldot at busybox.net
Mon Apr 2 09:41:24 PDT 2007


Author: aldot
Date: 2007-04-02 09:41:24 -0700 (Mon, 02 Apr 2007)
New Revision: 18305

Log:
- remove some unneeded forward declarations. No obj-code changes.


Modified:
   trunk/busybox/coreutils/expr.c


Changeset:
Modified: trunk/busybox/coreutils/expr.c
===================================================================
--- trunk/busybox/coreutils/expr.c	2007-04-02 16:38:13 UTC (rev 18304)
+++ trunk/busybox/coreutils/expr.c	2007-04-02 16:41:24 UTC (rev 18305)
@@ -67,39 +67,10 @@
 };
 #define G (*(struct globals*)&bb_common_bufsiz1)
 
-static VALUE *docolon(VALUE * sv, VALUE * pv);
+/* forward declarations */
 static VALUE *eval(void);
-static VALUE *int_value(arith_t i);
-static VALUE *str_value(const char *s);
-static bool nextarg(const char *str);
-static int null(VALUE * v);
-static bool toarith(VALUE * v);
-static void freev(VALUE * v);
-static void tostring(VALUE * v);
 
-int expr_main(int argc, char **argv);
-int expr_main(int argc, char **argv)
-{
-	VALUE *v;
 
-	if (argc == 1) {
-		bb_error_msg_and_die("too few arguments");
-	}
-
-	G.args = argv + 1;
-
-	v = eval();
-	if (*G.args)
-		bb_error_msg_and_die("syntax error");
-
-	if (v->type == integer)
-		printf("%" PF_REZ "d\n", PF_REZ_TYPE v->u.i);
-	else
-		puts(v->u.s);
-
-	fflush_stdout_and_exit(null(v));
-}
-
 /* Return a VALUE for I.  */
 
 static VALUE *int_value(arith_t i)
@@ -509,3 +480,28 @@
 	}
 	return l;
 }
+
+int expr_main(int argc, char **argv);
+int expr_main(int argc, char **argv)
+{
+	VALUE *v;
+
+	if (argc == 1) {
+		bb_error_msg_and_die("too few arguments");
+	}
+
+	G.args = argv + 1;
+
+	v = eval();
+	if (*G.args)
+		bb_error_msg_and_die("syntax error");
+
+	if (v->type == integer)
+		printf("%" PF_REZ "d\n", PF_REZ_TYPE v->u.i);
+	else
+		puts(v->u.s);
+
+	fflush_stdout_and_exit(null(v));
+}
+
+



More information about the busybox-cvs mailing list