Changeset 5f3629 in git


Ignore:
Timestamp:
Jul 4, 2011, 2:31:07 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
89656143073a299ea34c74edd13feac5e3067893
Parents:
ed6d08505117201dac25df9001f5e7f4b800bc27
Message:
print should return a string

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

Legend:

Unmodified
Added
Removed
  • kernel/febase.cc

    red6d085 r5f3629  
    963963// some routines which redirect the output of print to a string
    964964static char* sprint = NULL;
     965static char* sprint_backup = NULL;
    965966void SPrintStart()
    966967{
     968  if (sprint!=NULL)
     969  {
     970    if (sprint_backup!=NULL) WerrorS("internal error: SPrintStart");
     971    else sprint_backup=sprint;
     972  }
    967973  sprint = omStrDup("");
    968974}
     
    988994{
    989995  char* ns = sprint;
    990   sprint = NULL;
     996  sprint = sprint_backup;
     997  sprint_backup=NULL;
    991998  omCheckAddr(ns);
    992999  return ns;
Note: See TracChangeset for help on using the changeset viewer.