CVS: setedit/setedit runprog.cc,1.36,1.37
Brought to you by:
set
From: Salvador E. T. <se...@us...> - 2010-07-07 13:25:02
|
Update of /cvsroot/setedit/setedit/setedit In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv26382/setedit Modified Files: runprog.cc Log Message: * Modified: Now ParseFun is exported. Index: runprog.cc =================================================================== RCS file: /cvsroot/setedit/setedit/setedit/runprog.cc,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** runprog.cc 25 Feb 2009 16:11:31 -0000 1.36 --- runprog.cc 7 Jul 2010 13:24:51 -0000 1.37 *************** *** 1,3 **** ! /* Copyright (C) 1996-2007 by Salvador E. Tropea (SET), see copyrigh file for details */ //#define DEBUG --- 1,3 ---- ! /* Copyright (C) 1996-2010 by Salvador E. Tropea (SET), see copyrigh file for details */ //#define DEBUG *************** *** 78,82 **** static char ParsingErrors=0; static char PendingCleanUp=0; ! static SOStack *StackPath; static char *RedirInputFile=0; --- 78,82 ---- static char ParsingErrors=0; static char PendingCleanUp=0; ! static SOStack *StackPath=NULL; static char *RedirInputFile=0; *************** *** 185,189 **** } ! static char *ParseFun(char *buf, FileInfo &fI, char *&fileName) { --- 185,189 ---- } ! //static char *ParseFun(char *buf, FileInfo &fI, char *&fileName) { *************** *** 286,290 **** *e=v; strcat(ActualPath,"/"); ! StackPath->addStr(ActualPath); } lastFIT=fI.type=fitInfo; --- 286,291 ---- *e=v; strcat(ActualPath,"/"); ! if (StackPath) ! StackPath->addStr(ActualPath); } lastFIT=fI.type=fitInfo; *************** *** 298,302 **** if (s) { ! StackPath->DestroyTop(); lastFIT=fI.type=fitInfo; } --- 299,304 ---- if (s) { ! if (StackPath) ! StackPath->DestroyTop(); lastFIT=fI.type=fitInfo; } *************** *** 307,311 **** } ! char *actPath=StackPath->GetStrOf(StackPath->GetTopHandle()); char *ret; --- 309,313 ---- } ! const char *actPath=StackPath ? StackPath->GetStrOf(StackPath->GetTopHandle()) : ""; char *ret; |