Changeset 484a08 in git for libpolys


Ignore:
Timestamp:
Jan 10, 2013, 6:34:37 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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.