cvs commit: ALFS/nALFS/src options.h

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Mon Nov 3 19:51:25 PST 2003


kpfleming    03/11/03 20:51:25

  Modified:    nALFS/src options.h
  Log:
  add spacing to option definitions to increase readability
  add reasonable min/max values for opt_windows_relation and opt_status_history
  
  Revision  Changes    Path
  1.11      +50 -47    ALFS/nALFS/src/options.h
  
  Index: options.h
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/options.h,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- options.h	4 Nov 2003 03:45:27 -0000	1.10
  +++ options.h	4 Nov 2003 03:51:25 -0000	1.11
  @@ -115,55 +115,58 @@
   static int validate_number_minmax(const struct option_s *option, const NUMBER value);
   
   
  -STRING_OPTION(alfs_directory,"");
  -BOOL_OPTION(start_immediately,0);
  -STRING_OPTION(packages_directory,"packages");
  -STRING_OPTION(default_syntax,"3.0");
  -STRING_OPTION(cursor,"->");
  -NUMBER_OPTION(indentation_size,4);
  -NUMBER_OPTION(sleep_after_stamp,1);
  -BOOL_OPTION(beep_when_done,0);
  -BOOL_OPTION(display_profile,1);
  -BOOL_OPTION(display_options_line,1);
  -NUMBER_OPTION(display_timer,TIMER_TOTAL,.validate=validate_number_minmax,
  +STRING_OPTION(alfs_directory, "");
  +BOOL_OPTION(start_immediately, 0);
  +STRING_OPTION(packages_directory, "packages");
  +STRING_OPTION(default_syntax, "3.0");
  +STRING_OPTION(cursor, "->");
  +NUMBER_OPTION(indentation_size, 4);
  +NUMBER_OPTION(sleep_after_stamp, 1);
  +BOOL_OPTION(beep_when_done, 0);
  +BOOL_OPTION(display_profile, 1);
  +BOOL_OPTION(display_options_line, 1);
  +NUMBER_OPTION(display_timer, TIMER_TOTAL, .validate=validate_number_minmax,
   	      .min_value=TIMER_NONE, .max_value=TIMER_CURRENT);
  -BOOL_OPTION(expand_profiles,0);
  -BOOL_OPTION(use_relative_dirs,0);
  -BOOL_OPTION(log_status_window,0);
  -STRING_OPTION(status_logfile,"log_file");
  -BOOL_OPTION(show_system_output,1);
  -BOOL_OPTION(be_verbose,0);
  -BOOL_OPTION(display_alfs,0);
  -BOOL_OPTION(display_doctype,0);
  -BOOL_OPTION(display_comments,0);
  -BOOL_OPTION(run_interactive,1);
  -NUMBER_OPTION(jumpto_element,JUMP_TO_RUNNING,.validate=validate_number_minmax,
  +BOOL_OPTION(expand_profiles, 0);
  +BOOL_OPTION(use_relative_dirs, 0);
  +BOOL_OPTION(log_status_window, 0);
  +STRING_OPTION(status_logfile, "log_file");
  +BOOL_OPTION(show_system_output, 1);
  +BOOL_OPTION(be_verbose, 0);
  +BOOL_OPTION(display_alfs, 0);
  +BOOL_OPTION(display_doctype, 0);
  +BOOL_OPTION(display_comments, 0);
  +BOOL_OPTION(run_interactive, 1);
  +NUMBER_OPTION(jumpto_element, JUMP_TO_RUNNING,
  +	      .validate=validate_number_minmax,
   	      .min_value=JUMP_TO_FAILED, .max_value=JUMP_TO_PACKAGE);
  -NUMBER_OPTION(logging_method,LOG_OFF,.validate=validate_number_minmax,
  -	      .min_value=LOG_OFF,.max_value=LAST_LOGGING_METHOD);
  -BOOL_OPTION(log_handlers,1);
  -BOOL_OPTION(log_backend,1);
  -BOOL_OPTION(stamp_packages,0);
  -STRING_OPTION(stamp_directory,"stamps");
  -BOOL_OPTION(display_stage_header,0);
  -STRING_OPTION(find_base,"/");
  -STRING_OPTION(find_prunes,"");
  -STRING_OPTION(find_prunes_file,"");
  -STRING_OPTION(profiles_directory,"/");
  -BOOL_OPTION(warn_if_set,0);
  -BOOL_OPTION(follow_running,0);
  -STRING_OPTION(warn_if_set_variables,"CPPFLAGS CXXFLAGS CFLAGS LDFLAGS");
  -BOOL_OPTION(print_startup_help,1);
  -NUMBER_OPTION(windows_relation,50);
  -NUMBER_OPTION(status_history,500);
  -STRING_OPTION(editor,"");
  -STRING_OPTION(bunzip2_command,"bunzip2 -dc %s",validate_command);
  -STRING_OPTION(gunzip_command,"zcat %s",validate_command);
  -STRING_OPTION(uncompress_command,"zcat %s",validate_command);
  -STRING_OPTION(untar_command,"tar xv",validate_command);
  -STRING_OPTION(unpax_command,"pax -rv",validate_command);
  -STRING_OPTION(uncpio_command,"cpio -idv",validate_command);
  -STRING_OPTION(unzip_command,"unzip %s",validate_command);
  +NUMBER_OPTION(logging_method,LOG_OFF, .validate=validate_number_minmax,
  +	      .min_value=LOG_OFF, .max_value=LAST_LOGGING_METHOD);
  +BOOL_OPTION(log_handlers, 1);
  +BOOL_OPTION(log_backend, 1);
  +BOOL_OPTION(stamp_packages, 0);
  +STRING_OPTION(stamp_directory, "stamps");
  +BOOL_OPTION(display_stage_header, 0);
  +STRING_OPTION(find_base, "/");
  +STRING_OPTION(find_prunes, "");
  +STRING_OPTION(find_prunes_file, "");
  +STRING_OPTION(profiles_directory, "/");
  +BOOL_OPTION(warn_if_set, 0);
  +BOOL_OPTION(follow_running, 0);
  +STRING_OPTION(warn_if_set_variables, "CPPFLAGS CXXFLAGS CFLAGS LDFLAGS");
  +BOOL_OPTION(print_startup_help, 1);
  +NUMBER_OPTION(windows_relation, 50, .validate=validate_number_minmax,
  +	      .min_value=10, .max_value=90);
  +NUMBER_OPTION(status_history, 500, .validate=validate_number_minmax,
  +	      .min_value=20, .max_value=5000);
  +STRING_OPTION(editor, "");
  +STRING_OPTION(bunzip2_command, "bunzip2 -dc %s", validate_command);
  +STRING_OPTION(gunzip_command, "zcat %s", validate_command);
  +STRING_OPTION(uncompress_command, "zcat %s", validate_command);
  +STRING_OPTION(untar_command, "tar xv", validate_command);
  +STRING_OPTION(unpax_command, "pax -rv", validate_command);
  +STRING_OPTION(uncpio_command, "cpio -idv", validate_command);
  +STRING_OPTION(unzip_command, "unzip %s", validate_command);
   
   
   void set_string_option(STRING * const var, const STRING value);
  
  
  



More information about the alfs-log mailing list