Changeset 5bfda2 in git


Ignore:
Timestamp:
May 8, 1998, 12:11:50 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
3f246216795a7c4cb27476bd13e21e191f9a1c84
Parents:
8749e00f381f83a1bb3cf5c07cd39630ee503b48
Message:
* introduced LONG_OPTION_RETURN (thanks to Tim :-)


git-svn-id: file:///usr/local/Singular/svn/trunk@1659 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/tesths.cc

    r8749e00 r5bfda2  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: tesths.cc,v 1.39 1998-05-06 11:54:43 Singular Exp $ */
     4/* $Id: tesths.cc,v 1.40 1998-05-08 10:11:50 obachman Exp $ */
    55
    66/*
     
    4242#define LON_NO_TTY          "no-tty"
    4343#define LON_USER_OPTION     "user-option"
    44 #define LON_VERSION         "version"
     44#define LON_VERSION         "verbose"
    4545#define LON_MIN_TIME        "min-time"
    4646#define LON_NO_STDLIB       "no-stdlib"
     
    5656#endif
    5757
     58#define LONG_OPTION_RETURN -1
    5859static struct option longopts[] =
    5960{
     
    7273  {LON_TCLMODE,           0,  0,  'x'},
    7374#endif
    74   {LON_NO_STDLIB,         0,  0,  0},
    75   {LON_NO_RC,             0,  0,  0},
    76   {LON_MIN_TIME,          1,  0,  0},
    77 #ifdef HAVE_MPSR
    78   {LON_MP_PORT,           1,  0,  0},
    79   {LON_MP_HOST,           1,  0,  0},
    80 #endif
    81   {LON_TICKS_PER_SEC,     1,  0,  0},
     75  {LON_NO_STDLIB,         0,  0,  LONG_OPTION_RETURN},
     76  {LON_NO_RC,             0,  0,  LONG_OPTION_RETURN},
     77  {LON_MIN_TIME,          1,  0,  LONG_OPTION_RETURN},
     78#ifdef HAVE_MPSR
     79  {LON_MP_PORT,           1,  0,  LONG_OPTION_RETURN},
     80  {LON_MP_HOST,           1,  0,  LONG_OPTION_RETURN},
     81#endif
     82  {LON_TICKS_PER_SEC,     1,  0,  LONG_OPTION_RETURN},
    8283// undocumented options
    8384#ifdef HAVE_MPSR
    84   {LON_MP_TRANSP,         1,  0,  0},
    85   {LON_MP_MODE,           1,  0,  0},
     85  {LON_MP_TRANSP,         1,  0,  LONG_OPTION_RETURN},
     86  {LON_MP_MODE,           1,  0,  LONG_OPTION_RETURN},
    8687#endif
    8788// terminator
     
    396397          break;
    397398
    398         case 0:
     399        case LONG_OPTION_RETURN:
    399400          if (strcmp(longopts[option_index].name, LON_NO_STDLIB) == 0)
    400401          {
Note: See TracChangeset for help on using the changeset viewer.