Changeset e54eb4 in git


Ignore:
Timestamp:
May 4, 1998, 7:17:29 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
c5a88891ba4d777fe9b97be6204411eb90c6f654
Parents:
88289708ee359c59e161ac6dfdaaac7d14fcccef
Message:
* hannes: cosmetic cahnges for header (tesths.cc)
  added "the online help system" to doc
  minor fixes to info menus


git-svn-id: file:///usr/local/Singular/svn/trunk@1595 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/tesths.cc

    r882897 re54eb4  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: tesths.cc,v 1.37 1998-05-04 11:36:45 obachman Exp $ */
     4/* $Id: tesths.cc,v 1.38 1998-05-04 17:17:26 Singular Exp $ */
    55
    66/*
     
    5959{
    6060#ifdef HAVE_MPSR
    61   {LON_BATCH,             0,  0,  'b'},   
     61  {LON_BATCH,             0,  0,  'b'},
    6262#endif
    6363  {LON_HELP,              0,  0,  'h'},
    64   {LON_QUIET,             0,  0,  'q'},   
     64  {LON_QUIET,             0,  0,  'q'},
    6565  {LON_NO_TTY,            0,  0,  't'},
    6666  {LON_VERSION,           0,  0,  'v'},
     
    9696  const char*   arg_name;// name of argument, if has_arg > 0
    9797  const char*   help;    // (short) help string
    98   char*         val;     // (default) value of option: 0: not set 1:set 
     98  char*         val;     // (default) value of option: 0: not set 1:set
    9999                         // string:"" if has_arg > 0
    100100};
    101101
    102102// mention only documented options here
    103 static struct sing_option sing_longopts[] = 
    104 {
    105 #ifdef HAVE_MPSR
    106   {LON_BATCH,       0,          "Run in MP batch mode",                                 0},   
     103static struct sing_option sing_longopts[] =
     104{
     105#ifdef HAVE_MPSR
     106  {LON_BATCH,       0,          "Run in MP batch mode",                                 0},
    107107#endif
    108108  {LON_HELP,        0,          "Print help message and exit",                          0},
    109   {LON_QUIET,       0,          "Do not print start-up banner and warnings",            0},   
     109  {LON_QUIET,       0,          "Do not print start-up banner and warnings",            0},
    110110  {LON_NO_TTY,      0,          "Do not redefine the terminal characteristics",         0},
    111111  {LON_VERSION,     0,          "Print extended version and configuration info",        0},
    112112#ifdef HAVE_TCL
    113113  {LON_TCLMODE      0,          "Run in TCL mode, i.e., with TCL user interface",       0},
    114 #endif 
     114#endif
    115115  {LON_ECHO,        "VAL",      "Set value of variable `echo' to (integer) VAL",        ""},
    116116  {LON_EXECUTE,     "STRING",   "Execute STRING on start-up",                           ""},
     
    169169  printf("   %s [options] [file1 [file2 ...]]\n", name);
    170170  printf("Options:\n");
    171  
     171
    172172  while (longopts[i].name != 0)
    173173  {
     
    197197      }
    198198    }
    199 #ifndef NDEBUG     
     199#ifndef NDEBUG
    200200    else
    201201      printf("--%s Undocumented\n", longopts[i].name);
     
    229229        Print("// --%-10s %d\n", sopt->name, sopt->val);
    230230      else
    231         Print("// --%-10s %s\n", sopt->name, sopt->val); 
     231        Print("// --%-10s %s\n", sopt->name, sopt->val);
    232232    }
    233233    else
     
    286286  // parse command line options
    287287  while((optc = getopt_long(argc, argv,
    288                             SHORT_OPTS_STRING, longopts, &option_index)) 
     288                            SHORT_OPTS_STRING, longopts, &option_index))
    289289        != EOF)
    290290  {
    291291    switch(optc)
    292292    {
    293           
     293   
    294294        case 'b':
    295 #ifdef HAVE_MPSR          
     295#ifdef HAVE_MPSR   
    296296          feBatch=TRUE;
    297297          mainSetSingOptionValue(LON_BATCH, (char*) 1);
     
    371371          mainSetSingOptionValue(LON_EXECUTE, optarg);
    372372          break;
    373           
     373   
    374374        case 'r':
    375375          errno = 0;
     
    391391          mainSetSingOptionValue(LON_RANDOM, optarg);
    392392          break;
    393           
     393   
    394394        case 'u':
    395395          mainSetSingOptionValue(LON_USER_OPTION, optarg);
     
    412412            if (mintime <= 0)
    413413            {
    414               printf("%s: `%s' invalid float argument for option `--%s'\n", 
     414              printf("%s: `%s' invalid float argument for option `--%s'\n",
    415415                     argv[0], optarg, LON_MIN_TIME);
    416416              mainUsage(argv[0]);
     
    429429            mainSetSingOptionValue(LON_MP_HOST, optarg);
    430430          }
    431 #endif          
     431#endif   
    432432          else if (strcmp(longopts[option_index].name, LON_TICKS_PER_SEC) == 0)
    433433          {
     
    466466  {
    467467    printf(
    468 "              Welcome to SINGULAR                  /\n"
    469 "           A Computer Algebra System             o<     %s\n"
    470 " for Commutative Algebra and Algebraic Geometry    \\    %s\n\n"
    471 "by: G.-M. Greuel, G. Pfister, H. Schoenemann\n"
    472 "Fachbereich Mathematik der Universitaet, D-67653 Kaiserslautern\n"
     468"      SINGULAR : a Computer Algebra System              /\n"
     469" for Commutative Algebra and Algebraic Geometry        /   %s\n"
     470"                                                     0<\n"
     471"  by: G.-M. Greuel, G. Pfister, H. Schoenemann         \\   %s\n"
     472"FB Mathematik der Universitaet, D-67653 Kaiserslautern  \\\n"
    473473#if 0
    474474"contributions: O.Bachmann,W.Decker,H.Grassmann,B.Martin,M.Messollen,W.Neumann,\n"
    475475"\tW.Pohl,T.Siebert,R.Stobbe,T.Wichmann\n"
    476476"e-mail: singular@mathematik.uni-kl.de\n", S_VERSION1,S_VERSION2);
    477 #endif   
     477#endif
    478478, S_VERSION1,S_VERSION2);
    479479#if 0
    480480    printf("%s  %s  (%d)",S_VERSION1,S_VERSION2, SINGULAR_VERSION_ID);
    481 #endif   
    482     printf("\nPlease note:  EVERY COMMAND MUST END WITH A SEMICOLON \";"
    483            "\"\n(e.g., help; help command; help General syntax; help ring; quit;)\n\n");
     481#endif
     482    printf("\nPlease note:  every command must end with a semicolon \";"
     483           "\"\n(e.g., help; help command; help General syntax; help ring; quit;)\n");
    484484  }
    485485  else
     
    497497  if (load_std_lib)
    498498  {
     499    int vv=verbose;
     500    verbose &= ~Sy_bit(V_LOAD_LIB);
    499501    iiLibCmd(mstrdup("standard.lib"),TRUE);
    500   } 
     502    verbose=vv;
     503  }
    501504  errorreported = 0;
    502505#ifndef macintosh
Note: See TracChangeset for help on using the changeset viewer.