From 5154569ca9810951265b0cf438559b204596e7c3 Mon Sep 17 00:00:00 2001 From: tsauerbeck Date: Wed, 13 Apr 2005 19:18:12 +0000 Subject: [PATCH] s/sc_printf/printf/ i hope i'm not missing anything :) SVN revision: 14174 --- legacy/embryo/src/bin/embryo_cc_sc1.c | 71 +++++++++++---------------- 1 file changed, 29 insertions(+), 42 deletions(-) diff --git a/legacy/embryo/src/bin/embryo_cc_sc1.c b/legacy/embryo/src/bin/embryo_cc_sc1.c index 7afd3f1873..f3329dd49b 100644 --- a/legacy/embryo/src/bin/embryo_cc_sc1.c +++ b/legacy/embryo/src/bin/embryo_cc_sc1.c @@ -135,19 +135,6 @@ main(int argc, char *argv[], char *env[]) return sc_compile(argc, argv); } -int -sc_printf(const char *message, ...) -{ - int ret; - va_list argptr; - - va_start(argptr, message); - ret = vprintf(message, argptr); - va_end(argptr); - - return ret; -} - int sc_error(int number, char *message, char *filename, int firstline, int lastline, va_list argptr) @@ -454,12 +441,12 @@ sc_compile(int argc, char *argv[]) #endif if (errnum != 0) { - sc_printf("\n%d Error%s.\n", errnum, (errnum > 1) ? "s" : ""); + printf("\n%d Error%s.\n", errnum, (errnum > 1) ? "s" : ""); retcode = 2; } else if (warnnum != 0) { - sc_printf("\n%d Warning%s.\n", warnnum, (warnnum > 1) ? "s" : ""); + printf("\n%d Warning%s.\n", warnnum, (warnnum > 1) ? "s" : ""); retcode = 1; } else @@ -702,8 +689,8 @@ setcaption(void) { /* shh be quiet! */ #if 0 - sc_printf("Small compiler " VERSION_STR - "\t\tCopyright (c) 1997-2003, ITB CompuPhase\n\n"); + printf("Small compiler " VERSION_STR + "\t\tCopyright (c) 1997-2003, ITB CompuPhase\n\n"); #endif } @@ -711,64 +698,64 @@ static void about(void) { setcaption(); - sc_printf("Usage: embryo_cc [options]\n\n"); - sc_printf("Options:\n"); + printf("Usage: embryo_cc [options]\n\n"); + printf("Options:\n"); #if 0 - sc_printf + printf (" -A alignment in bytes of the data segment and the\ stack\n"); - sc_printf + printf (" -a output assembler code (skip code generation\ pass)\n"); - sc_printf + printf (" -C[+/-] compact encoding for output file (default=%c)\n", sc_compress ? '+' : '-'); - sc_printf(" -c8 [default] a character is 8-bits\ + printf(" -c8 [default] a character is 8-bits\ (ASCII/ISO Latin-1)\n"); - sc_printf(" -c16 a character is 16-bits (Unicode)\n"); + printf(" -c16 a character is 16-bits (Unicode)\n"); #if defined dos_setdrive - sc_printf(" -Dpath active directory path\n"); + printf(" -Dpath active directory path\n"); #endif - sc_printf + printf (" -d0 no symbolic information, no run-time checks\n"); - sc_printf(" -d1 [default] run-time checks, no symbolic\ + printf(" -d1 [default] run-time checks, no symbolic\ information\n"); - sc_printf + printf (" -d2 full debug information and dynamic checking\n"); - sc_printf(" -d3 full debug information, dynamic checking,\ + printf(" -d3 full debug information, dynamic checking,\ no optimization\n"); #endif - sc_printf(" -i path for include files\n"); + printf(" -i path for include files\n"); #if 0 - sc_printf(" -l create list file (preprocess only)\n"); + printf(" -l create list file (preprocess only)\n"); #endif - sc_printf(" -o set base name of output file\n"); + printf(" -o set base name of output file\n"); #if 0 - sc_printf + printf (" -P[+/-] strings are \"packed\" by default (default=%c)\n", sc_packstr ? '+' : '-'); - sc_printf(" -p set name of \"prefix\" file\n"); + printf(" -p set name of \"prefix\" file\n"); if (!waitkey()) longjmp(errbuf, 3); #endif - sc_printf + printf (" -S stack/heap size in cells (default=%d, min=65)\n", (int)sc_stksize); #if 0 - sc_printf(" -s skip lines from the input file\n"); - sc_printf + printf(" -s skip lines from the input file\n"); + printf (" -t TAB indent size (in character positions)\n"); - sc_printf(" -\\ use '\\' for escape characters\n"); - sc_printf(" -^ use '^' for escape characters\n"); - sc_printf(" -;[+/-] require a semicolon to end each statement\ + printf(" -\\ use '\\' for escape characters\n"); + printf(" -^ use '^' for escape characters\n"); + printf(" -;[+/-] require a semicolon to end each statement\ (default=%c)\n", sc_needsemicolon ? '+' : '-'); - sc_printf + printf (" sym=val define constant \"sym\" with value \"val\"\n"); - sc_printf(" sym= define constant \"sym\" with value 0\n"); + printf(" sym= define constant \"sym\" with value 0\n"); #endif longjmp(errbuf, 3); /* user abort */ }