X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fformats.c;h=8e8e45af685354b121e132e47122e7ce7f672aad;hb=067d02c2b8c591efc368cf5127c497313d7a373f;hp=9198b0ad35ce7dbdb0843d364361098cae921f64;hpb=3a7fba81ceae5b049d0f7d671e9e3c3c43bbf703;p=pspp diff --git a/src/formats.c b/src/formats.c index 9198b0ad35..8e8e45af68 100644 --- a/src/formats.c +++ b/src/formats.c @@ -30,10 +30,6 @@ #include "debug-print.h" -#if DEBUGGING -static void debug_print (void); -#endif - enum { FORMATS_PRINT = 001, @@ -45,21 +41,18 @@ static int internal_cmd_formats (int); int cmd_print_formats (void) { - lex_match_id ("FORMATS"); return internal_cmd_formats (FORMATS_PRINT); } int cmd_write_formats (void) { - lex_match_id ("FORMATS"); return internal_cmd_formats (FORMATS_WRITE); } int cmd_formats (void) { - lex_match_id ("FORMATS"); return internal_cmd_formats (FORMATS_PRINT | FORMATS_WRITE); } @@ -134,30 +127,9 @@ internal_cmd_formats (int which) free (v); v = NULL; } -#if DEBUGGING - debug_print (); -#endif return CMD_SUCCESS; fail: free (v); return CMD_PART_SUCCESS_MAYBE; } - -#if DEBUGGING -static void -debug_print (void) -{ - int i; - - printf (_("Formats:\n")); - printf (_(" Name Print Write\n")); - printf (" -------- ------------ ------------\n"); - for (i = 0; i < default_dict.nvar; i++) - { - struct variable *v = default_dict.var[i]; - printf (" %-8s %-12s", v->name, fmt_to_string (&v->print)); - printf (" %-12s\n", fmt_to_string (&v->write)); - } -} -#endif /* DEBUGGING */