Changeset b1dd2f in git


Ignore:
Timestamp:
Jun 25, 1999, 3:12:49 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
c23f3f696f23f9a6e26fbf3a77adc5951446ba8b
Parents:
43e0d63236fc4b53cc7dc7f034b8357f140568cb
Message:
*hannes: check max line length in iiDebug (~ handling)


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

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r43e0d6 rb1dd2f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.41 1999-04-17 14:58:50 obachman Exp $ */
     4/* $Id: ipshell.cc,v 1.42 1999-06-25 13:12:49 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    762762
    763763BOOLEAN iiDebugMarker=TRUE;
     764#define BREAK_LINE_LENGTH 80
    764765void iiDebug()
    765766{
     
    768769  char * s;
    769770  iiDebugMarker=FALSE;
    770   s = (char *)AllocL(84);
    771   fe_fgets_stdin("",s,80);
     771  s = (char *)AllocL(BREAK_LINE_LENGTH+4);
     772  loop
     773  {
     774    memset(s,0,80);
     775    fe_fgets_stdin("",s,BREAK_LINE_LENGTH);
     776    if (s[BREAK_LINE_LENGTH-1]!='\0')
     777    {
     778      Print("line too long, max is %d chars\n",BREAK_LINE_LENGTH);
     779    }
     780    else
     781      break;
     782  }
    772783  if (*s=='\n')
    773784  {
Note: See TracChangeset for help on using the changeset viewer.