* GSWeb.framework/GSWApplication.m (GSWApplicationDebugSetChange): read

the file only if supplied.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@15196 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Mirko Viviani 2002-12-02 22:00:20 +00:00
parent 1ffbb0db84
commit 257c22899a
2 changed files with 17 additions and 7 deletions

View file

@ -1,5 +1,8 @@
2002-12-02 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* GSWeb.framework/GSWApplication.m (GSWApplicationDebugSetChange): read
the file only if supplied.
* configure.ac: export xml includes in gsweb.make
* gsweb.make.in (AUXILIARY_INCLUDE_DIRS): added.
* Makefile.postamble: moved gsweb.make in Auxiliary/ make dir.

View file

@ -68,15 +68,22 @@ void GSWApplicationDebugSetChange()
NSString* debugSetConfigFilePath=nil;
NSString* newStateString=nil;
BOOL change=NO;
debugSetConfigFilePath=[GSWApplication debugSetConfigFilePath];
NSDebugFLog(@"debugSetConfigFilePath=%@",debugSetConfigFilePath);
newStateString=[NSString stringWithContentsOfFile:[GSWApplication debugSetConfigFilePath]];
NSDebugFLog(@"debugSet=%@",debugSet);
NSDebugFLog(@"newStateString=%@",newStateString);
debugSetConfigFilePath = [GSWApplication debugSetConfigFilePath];
NSDebugFLog(@"debugSetConfigFilePath=%@", debugSetConfigFilePath);
if (debugSetConfigFilePath)
newStateString = [NSString stringWithContentsOfFile:
[GSWApplication debugSetConfigFilePath]];
NSDebugFLog(@"debugSet=%@", debugSet);
NSDebugFLog(@"newStateString=%@", newStateString);
if (newStateString)
change=![newStateString isEqualToString:prevStateString];
change =! [newStateString isEqualToString: prevStateString];
else if (prevStateString)
change=![prevStateString isEqualToString:newStateString];
change =! [prevStateString isEqualToString: newStateString];
NSDebugFLog(@"change=%d",change);
if (change)