Changeset 484a08 in git


Ignore:
Timestamp:
Jan 10, 2013, 6:34:37 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c7af8613769b29c741d6c338945669719f1fc4f8')
Children:
b773c077a56a9184b0b69a4d03916c6e04074ebb
Parents:
ea9fd6021b4bf8655b902b6f2759d1ab54360654
Message:
fix: SPrintStart/SPrintEnd with bachkup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/reporter/reporter.cc

    rea9fd60 r484a08  
    243243// some routines which redirect the output of print to a string
    244244static char* sprint = NULL;
     245static char* sprint_backup = NULL;
    245246void SPrintStart()
    246247{
     248  if (sprint!=NULL)
     249  {
     250    if (sprint_backup!=NULL) WerrorS("internal error: SPrintStart");
     251    else sprint_backup=sprint;
     252  }
    247253  sprint = omStrDup("");
    248254}
     
    268274{
    269275  char* ns = sprint;
    270   sprint = NULL;
     276  sprint = sprint_backup;
     277  sprint_backup=NULL;
    271278  omCheckAddr(ns);
    272279  return ns;
Note: See TracChangeset for help on using the changeset viewer.