From cedbc866cce0384d3fd23168d1d97f1d6304af22 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Wed, 30 Jan 2019 05:30:08 -0800 Subject: [PATCH] Clean up comments for os_process_arguments() --- src/curses/ux_init.c | 20 ++------------------ src/dumb/dumb_init.c | 7 +++++++ src/sdl/sf_util.c | 30 +++++++----------------------- 3 files changed, 16 insertions(+), 41 deletions(-) diff --git a/src/curses/ux_init.c b/src/curses/ux_init.c index d1acaf1..bc8981c 100644 --- a/src/curses/ux_init.c +++ b/src/curses/ux_init.c @@ -157,24 +157,8 @@ void os_fatal (const char *s, ...) /* * os_process_arguments * - * Handle command line switches. Some variables may be set to activate - * special features of Frotz: - * - * option_attribute_assignment - * option_attribute_testing - * option_context_lines - * option_object_locating - * option_object_movement - * option_left_margin - * option_right_margin - * option_ignore_errors - * option_piracy - * option_undo_slots - * option_expand_abbreviations - * option_script_cols - * - * The global pointer "story_name" is set to the story file name. - * + * Handle command line switches. + * Some variables may be set to activate special features of Frotz. * */ void os_process_arguments (int argc, char *argv[]) diff --git a/src/dumb/dumb_init.c b/src/dumb/dumb_init.c index fa99a75..fcabc5c 100644 --- a/src/dumb/dumb_init.c +++ b/src/dumb/dumb_init.c @@ -91,6 +91,13 @@ static int user_tandy_bit = 0; static char *graphics_filename = NULL; static bool plain_ascii = FALSE; +/* + * os_process_arguments + * + * Handle command line switches. + * Some variables may be set to activate special features of Frotz. + * + */ void os_process_arguments(int argc, char *argv[]) { int c; diff --git a/src/sdl/sf_util.c b/src/sdl/sf_util.c index 89596ab..df43227 100644 --- a/src/sdl/sf_util.c +++ b/src/sdl/sf_util.c @@ -293,29 +293,6 @@ static void print_version(void) exit(2); } -/* - * os_process_arguments - * - * Handle command line switches. Some variables may be set to activate - * special features of Frotz: - * - * option_attribute_assignment - * option_attribute_testing - * option_context_lines - * option_object_locating - * option_object_movement - * option_left_margin - * option_right_margin - * option_ignore_errors - * option_piracy - * option_undo_slots - * option_expand_abbreviations - * option_script_cols - * - * The global pointer "story_name" is set to the story file name. - * - */ - /** * Like dirname except well defined. * Does not modify path. Always returns a new string (caller must free). @@ -338,6 +315,13 @@ static char *new_basename(const char *path) return p2; } +/* + * os_process_arguments + * + * Handle command line switches. + * Some variables may be set to activate special features of Frotz. + * + */ void os_process_arguments (int argc, char *argv[]) { char *p; -- 2.34.1