diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-05-17 16:53:32 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-05-17 16:53:32 +0000 |
commit | 067ea25e278d221724425e492452d4341ab2e669 (patch) | |
tree | 6abef88f0bf831cd6316cc5adbb550d337c7275a /mdk-stage1/stdio-frontend.c | |
parent | 93796296016933af1c23f13fc2ae6d5f62299527 (diff) | |
download | drakx-067ea25e278d221724425e492452d4341ab2e669.tar drakx-067ea25e278d221724425e492452d4341ab2e669.tar.gz drakx-067ea25e278d221724425e492452d4341ab2e669.tar.bz2 drakx-067ea25e278d221724425e492452d4341ab2e669.tar.xz drakx-067ea25e278d221724425e492452d4341ab2e669.zip |
don't write nonsense code to separate frontend from stage1,
but rather, try to do some clever things
Diffstat (limited to 'mdk-stage1/stdio-frontend.c')
-rw-r--r-- | mdk-stage1/stdio-frontend.c | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/mdk-stage1/stdio-frontend.c b/mdk-stage1/stdio-frontend.c index fd3510cf1..5b37eafcd 100644 --- a/mdk-stage1/stdio-frontend.c +++ b/mdk-stage1/stdio-frontend.c @@ -163,44 +163,27 @@ static char * get_string_response(char * initial_string) return strdup(s); } -static void blocking_msg(char *type, char *fmt, va_list args) +static void blocking_msg(char *type, char *fmt, va_list ap) { printf(type); - vprintf(fmt, args); + vprintf(fmt, ap); get_any_response(); } -void error_message(char *msg, ...) +void verror_message(char *msg, va_list ap) { - va_list args; -#ifdef __FRONTEND_NEED_BACKEND__ - if (error_message_backend()) - return; -#endif - va_start(args, msg); - blocking_msg("> Error! ", msg, args); - va_end(args); + blocking_msg("> Error! ", msg, ap); } -void info_message(char *msg, ...) +void vinfo_message(char *msg, va_list ap) { - va_list args; -#ifdef __FRONTEND_NEED_BACKEND__ - if (info_message_backend()) - return; -#endif - va_start(args, msg); - blocking_msg("> Notice: ", msg, args); - va_end(args); + blocking_msg("> Notice: ", msg, ap); } -void wait_message(char *msg, ...) +void vwait_message(char *msg, va_list ap) { - va_list args; printf("Please wait: "); - va_start(args, msg); - vprintf(msg, args); - va_end(args); + vprintf(msg, ap); fflush(stdout); } |