X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fset.q;h=5d9f149072b01c66e02e08cba29f37f7d3aa5628;hb=7b98b3a4f58f6dc5a8e9cbc188b627966d5e652d;hp=c4f80326b905f95507e34a65eb19cd8f961a03f1;hpb=f61e279fa8d35fa2f9c5ef6d5d0e628147ccde60;p=pspp diff --git a/src/set.q b/src/set.q index c4f80326b9..5d9f149072 100644 --- a/src/set.q +++ b/src/set.q @@ -114,6 +114,7 @@ int set_safer; int set_scompression; int set_screen; long set_seed; +int set_seed_used; int set_testing_mode; int set_undefined; int set_viewlength; @@ -310,9 +311,9 @@ cmd_set (void) if (cmd.s_scripttab) msg (SE, _("%s is obsolete."),"SCRIPTTAB"); if (cmd.s_tbfonts) - msg (SW, _("TBFONTS not implemented.")); + msg (SW, _("%s is not yet implemented."),"TBFONTS"); if (cmd.s_tb1) - msg (SW, _("TB1 not implemented.")); + msg (SW, _("%s is not yet implemented."),"TB1"); if (cmd.undef != -1) set_undefined = cmd.undef == STC_NOWARN ? 0 : 1; if (cmd.n_workspace != NOT_LONG) @@ -485,7 +486,7 @@ set_routing (int q, int *setting) } static int -stc_custom_pager (struct cmd_set *cmd unused) +stc_custom_pager (struct cmd_set *cmd UNUSED) { lex_match ('='); #if !USE_INTERNAL_PAGER @@ -518,7 +519,7 @@ stc_custom_pager (struct cmd_set *cmd unused) SYSMIS or a numeric value; PC+: Syntax is '.', which is equivalent to SYSMIS, or a numeric value. */ static int -stc_custom_blanks (struct cmd_set *cmd unused) +stc_custom_blanks (struct cmd_set *cmd UNUSED) { lex_match ('='); if ((token == T_ID && lex_id_match ("SYSMIS", tokid)) @@ -538,7 +539,7 @@ stc_custom_blanks (struct cmd_set *cmd unused) } static int -stc_custom_length (struct cmd_set *cmd unused) +stc_custom_length (struct cmd_set *cmd UNUSED) { int page_length; @@ -563,7 +564,7 @@ stc_custom_length (struct cmd_set *cmd unused) } static int -stc_custom_results (struct cmd_set *cmd unused) +stc_custom_results (struct cmd_set *cmd UNUSED) { struct tuple { @@ -604,7 +605,7 @@ stc_custom_results (struct cmd_set *cmd unused) } static int -stc_custom_seed (struct cmd_set *cmd unused) +stc_custom_seed (struct cmd_set *cmd UNUSED) { lex_match ('='); if (lex_match_id ("RANDOM")) @@ -616,11 +617,12 @@ stc_custom_seed (struct cmd_set *cmd unused) set_seed = tokval; lex_get (); } + set_seed_used=1; return 1; } static int -stc_custom_width (struct cmd_set *cmd unused) +stc_custom_width (struct cmd_set *cmd UNUSED) { int page_width; @@ -649,7 +651,7 @@ stc_custom_width (struct cmd_set *cmd unused) /* Parses FORMAT subcommand, which consists of a numeric format specifier. */ static int -stc_custom_format (struct cmd_set *cmd unused) +stc_custom_format (struct cmd_set *cmd UNUSED) { struct fmt_spec fmt; @@ -669,7 +671,7 @@ stc_custom_format (struct cmd_set *cmd unused) } static int -stc_custom_journal (struct cmd_set *cmd unused) +stc_custom_journal (struct cmd_set *cmd UNUSED) { lex_match ('='); if (lex_match_id ("ON")) @@ -687,7 +689,7 @@ stc_custom_journal (struct cmd_set *cmd unused) /* Parses COLOR subcommand. PC+: either ON or OFF or two or three comma-delimited numbers inside parentheses. */ static int -stc_custom_color (struct cmd_set *cmd unused) +stc_custom_color (struct cmd_set *cmd UNUSED) { msg (MW, _("%s is obsolete."),"COLOR"); @@ -738,7 +740,7 @@ stc_custom_color (struct cmd_set *cmd unused) } static int -stc_custom_listing (struct cmd_set *cmd unused) +stc_custom_listing (struct cmd_set *cmd UNUSED) { lex_match ('='); if (lex_match_id ("ON") || lex_match_id ("YES")) @@ -754,21 +756,21 @@ stc_custom_listing (struct cmd_set *cmd unused) } static int -stc_custom_disk (struct cmd_set *cmd unused) +stc_custom_disk (struct cmd_set *cmd UNUSED) { stc_custom_listing (cmd); return 0; } static int -stc_custom_log (struct cmd_set *cmd unused) +stc_custom_log (struct cmd_set *cmd UNUSED) { stc_custom_journal (cmd); return 0; } static int -stc_custom_rcolor (struct cmd_set *cmd unused) +stc_custom_rcolor (struct cmd_set *cmd UNUSED) { msg (SW, _("%s is obsolete."),"RCOLOR"); @@ -817,7 +819,7 @@ stc_custom_rcolor (struct cmd_set *cmd unused) } static int -stc_custom_viewlength (struct cmd_set *cmd unused) +stc_custom_viewlength (struct cmd_set *cmd UNUSED) { if (lex_match_id ("MINIMUM")) set_viewlength = 25; @@ -829,7 +831,7 @@ stc_custom_viewlength (struct cmd_set *cmd unused) { if (!lex_force_int ()) return 0; -#if __MSDOS__ +#ifdef __MSDOS__ if (lex_integer () >= (43 + 25) / 2) set_viewlength = 43; else @@ -840,14 +842,14 @@ stc_custom_viewlength (struct cmd_set *cmd unused) lex_get (); } -#if __MSDOS__ - msg (SW, _("VIEWLENGTH not implemented.")); +#ifdef __MSDOS__ + msg (SW, _("%s is not yet implemented."),"VIEWLENGTH"); #endif /* dos */ return 1; } static int -stc_custom_workdev (struct cmd_set *cmd unused) +stc_custom_workdev (struct cmd_set *cmd UNUSED) { char c[2];