From defc1ea34074e7882724c460260d307cdf981a70 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 27 Jun 2008 02:52:20 +0000 Subject: *: introduce and use FAST_FUNC: regparm on i386, otherwise no-on text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped --- shell/hush.c | 2 +- shell/lash_unused.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'shell') diff --git a/shell/hush.c b/shell/hush.c index 032482c..72186f9 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -498,7 +498,7 @@ static void syntax(const char *msg) /* Was using fancy stuff: * (interactive_fd ? bb_error_msg : bb_error_msg_and_die)(...params...) * but it SEGVs. ?! Oh well... explicit temp ptr works around that */ - void (*fp)(const char *s, ...); + void FAST_FUNC (*fp)(const char *s, ...); fp = (interactive_fd ? bb_error_msg : bb_error_msg_and_die); fp(msg ? "%s: %s" : "syntax error", "syntax error", msg); diff --git a/shell/lash_unused.c b/shell/lash_unused.c index d57f584..59199de 100644 --- a/shell/lash_unused.c +++ b/shell/lash_unused.c @@ -116,11 +116,11 @@ static int builtin_read(struct child_prog *cmd); /* function prototypes for shell stuff */ static void checkjobs(struct jobset *job_list); static void remove_job(struct jobset *j_list, struct job *job); -static int get_command_bufsiz(FILE * source, char *command); +static int get_command_bufsiz(FILE *source, char *command); static int parse_command(char **command_ptr, struct job *job, int *inbg); static int run_command(struct job *newjob, int inbg, int outpipe[2]); static int pseudo_exec(struct child_prog *cmd) ATTRIBUTE_NORETURN; -static int busy_loop(FILE * input); +static int busy_loop(FILE *input); /* Table of built-in functions (these are non-forking builtins, meaning they @@ -643,7 +643,7 @@ static inline const char* setup_prompt_string(void) static line_input_t *line_input_state; #endif -static int get_command_bufsiz(FILE * source, char *command) +static int get_command_bufsiz(FILE *source, char *command) { const char *prompt_str; @@ -1326,7 +1326,7 @@ static int run_command(struct job *newjob, int inbg, int outpipe[2]) return 0; } -static int busy_loop(FILE * input) +static int busy_loop(FILE *input) { char *command; char *next_command = NULL; -- cgit v1.1