Changeset 057e93c in git for Singular/misc.cc


Ignore:
Timestamp:
Feb 27, 1998, 3:06:27 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
a18fae54e4f760ce0cd7832679f5171a88c3fde7
Parents:
1c31dc7f319d025944d44dcc090983f7cb03be12
Message:
* Fri Feb 27 15:02:10 MET 1998 hannes
  new input scheme: many modifications to febase.h, febase.inc,
      febase.cc, scanner.l, grammar.y, iplib.cc, ipshell.{h,cc}


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

Legend:

Unmodified
Added
Removed
  • Singular/misc.cc

    r1c31dc r057e93c  
    7373#endif
    7474/*4 private data of other modules*/
    75   I_FEbase();
    7675  memset(&sLastPrinted,0,sizeof(sleftv));
    7776  sLastPrinted.rtyp=NONE;
     
    227226        && *fgets(buffer, BUF_LEN, help) != EOF
    228227        && buffer[0] != FIN_INDEX)
    229   { (void)printf("%s", buffer);
     228  {
     229    printf("%s", buffer);
    230230    if(lines++> MAX_LINES)
    231     { printf(
     231    {
    232232#ifdef macintosh
    233       "\n Press <RETURN> to continue or x and <RETURN> to exit help.\n");
     233      printf("\n Press <RETURN> to continue or x and <RETURN> to exit help.\n");
    234234#else
    235       "\n Press <RETURN> to continue or x to exit help.\n");
     235      printf("\n Press <RETURN> to continue or x to exit help.\n");
    236236#endif
    237237      fflush(stdout);
     
    247247  if(*close!='x')
    248248  {
    249     printf(
    250249#ifdef macintosh
    251       "\nEnd of part. Press <RETURN> to continue or x and <RETURN> to exit help.\n");
     250    printf("\nEnd of part. Press <RETURN> to continue or x and <RETURN> to exit help.\n");
    252251#else
    253       "\nEnd of part. Press <RETURN> to continue or x to exit help.\n");
     252    printf("\nEnd of part. Press <RETURN> to continue or x to exit help.\n");
    254253#endif
    255254    fflush(stdout);
     
    341340      Print("from lib %s\n",lib);
    342341      s=iiGetLibProcBuffer(IDPROC(h), example ? 2 : 0);
    343       if (!example) {
    344         PrintS(s);
    345         FreeL((ADDRESS)s);
    346       }
    347       else {
    348         if (s!=NULL) {
    349           if (strlen(s)>5) iiEStart(s); /*newBuffer(s,BT_execute);*/
    350           else FreeL((ADDRESS)s);
    351         }
     342      if (!example)
     343      {
     344        PrintS(s);
     345        FreeL((ADDRESS)s);
     346      }
     347      else
     348      {
     349        if (s!=NULL)
     350        {
     351          if (strlen(s)>5) iiEStart(s,IDPROC(h));
     352          else FreeL((ADDRESS)s);
     353        }
    352354      }
    353355    }
     
    438440  {"interrupt",    Sy_bit(OPT_INTERRUPT),      ~Sy_bit(OPT_INTERRUPT)   },
    439441  {"sugarCrit",    Sy_bit(OPT_SUGARCRIT),      ~Sy_bit(OPT_SUGARCRIT)   },
    440   {"teach",     Sy_bit(OPT_DEBUG),          ~Sy_bit(OPT_DEBUG)  }, 
     442  {"teach",     Sy_bit(OPT_DEBUG),          ~Sy_bit(OPT_DEBUG)  },
    441443  /* 7 cancel unit */
    442444  {"morePairs",    Sy_bit(OPT_MOREPAIRS),      ~Sy_bit(OPT_MOREPAIRS)   },
Note: See TracChangeset for help on using the changeset viewer.