From f99a79de9b3ffa467b27943577445fda4d2831e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 29 May 2007 17:12:14 +0000 Subject: [PATCH] minor updates --- TestTok.cpp | 8 +------- main.cpp | 8 +------- tok.bpr | 38 ++++++++++++++++++++++---------------- 3 files changed, 24 insertions(+), 30 deletions(-) diff --git a/TestTok.cpp b/TestTok.cpp index 881a97fef..398806e0a 100644 --- a/TestTok.cpp +++ b/TestTok.cpp @@ -32,13 +32,7 @@ int main(int argc, char* argv[]) // Delete all tokens.. - while (tokens) - { - TOKEN *next = tokens->next; - free(tokens->str); - delete tokens; - tokens = next; - } + DeallocateTokens(); return 0; } diff --git a/main.cpp b/main.cpp index 59887ba75..b38ba4aa9 100644 --- a/main.cpp +++ b/main.cpp @@ -127,13 +127,7 @@ static void CppCheck(const char FileName[]) WarningDangerousFunctions(); // Clean up tokens.. - while (tokens) - { - TOKEN *next = tokens->next; - free(tokens->str); - delete tokens; - tokens = next; - } + DeallocateTokens(); } //--------------------------------------------------------------------------- diff --git a/tok.bpr b/tok.bpr index 98bce6f18..1d175461d 100644 --- a/tok.bpr +++ b/tok.bpr @@ -4,7 +4,7 @@ - + @@ -12,7 +12,7 @@ - + @@ -34,10 +34,10 @@ -Vx -Ve -Tkh30000 -X- -r- -a8 -b- -k -y -v -vi- -tWC -tWM- -c"/> - + - + @@ -128,19 +128,21 @@ c:\program files\borland\cbuilder6\PROJECTS\BPL\Iocomp65clx.bpl=Iocomp Package C c:\program files\borland\cbuilder6\Bin\dclite60.bpl=Borland Integrated Translation Environment [HistoryLists\hlIncludePath] -Count=3 -Item0=C:\Program Files\Borland\CBuilder6\Projects;S:\test\prjman;$(BCB)\include;$(BCB)\include\vcl -Item1=$(BCB)\include;$(BCB)\include\vcl -Item2=e:\minadok\kod\bcb\components;e:\minadok\kod\bcb\clientserver;$(BCB)\include;$(BCB)\include\vcl +Count=4 +Item0=S:\test\cppcheck;C:\Program Files\Borland\CBuilder6\Projects;S:\test\prjman;$(BCB)\include;$(BCB)\include\vcl +Item1=C:\Program Files\Borland\CBuilder6\Projects;S:\test\prjman;$(BCB)\include;$(BCB)\include\vcl +Item2=$(BCB)\include;$(BCB)\include\vcl +Item3=e:\minadok\kod\bcb\components;e:\minadok\kod\bcb\clientserver;$(BCB)\include;$(BCB)\include\vcl [HistoryLists\hlLibraryPath] -Count=6 -Item0=C:\Program Files\Borland\CBuilder6\Projects;S:\test\prjman;$(BCB)\lib\obj;$(BCB)\lib -Item1=$(BCB)\lib\obj;$(BCB)\lib -Item2=..\..\..\..\..\program\borland\cbuilder3\lib;$(BCB)\lib\obj;$(BCB)\lib;d:\minadok\kod\bcb\components -Item3=..\..\..\..\..\program\borland\cbuilder3\lib;$(BCB)\lib\obj;$(BCB)\lib -Item4=e:\minadok\kod\bcb\components;e:\minadok\kod\bcb\clientserver;..\..\bokf\components;..\bokf\components;$(BCB)\lib\obj;$(BCB)\lib -Item5=..\..\bokf\components;..\bokf\components;$(BCB)\lib\obj;$(BCB)\lib +Count=7 +Item0=S:\test\cppcheck;$(BCB)\lib\obj;$(BCB)\lib +Item1=C:\Program Files\Borland\CBuilder6\Projects;S:\test\prjman;$(BCB)\lib\obj;$(BCB)\lib +Item2=$(BCB)\lib\obj;$(BCB)\lib +Item3=..\..\..\..\..\program\borland\cbuilder3\lib;$(BCB)\lib\obj;$(BCB)\lib;d:\minadok\kod\bcb\components +Item4=..\..\..\..\..\program\borland\cbuilder3\lib;$(BCB)\lib\obj;$(BCB)\lib +Item5=e:\minadok\kod\bcb\components;e:\minadok\kod\bcb\clientserver;..\..\bokf\components;..\bokf\components;$(BCB)\lib\obj;$(BCB)\lib +Item6=..\..\bokf\components;..\bokf\components;$(BCB)\lib\obj;$(BCB)\lib [HistoryLists\hlDebugSourcePath] Count=1 @@ -150,6 +152,10 @@ Item0=$(BCB)\source\vcl Count=1 Item0=_RTLDLL;USEPACKAGES +[HistoryLists\hlIntOutputDir] +Count=1 +Item0=tokobj + [HistoryLists\hlRunParameters] Count=7 Item0="D:\MINADOK\kod\920i\bjornbole45\bjornb.run" @@ -164,7 +170,7 @@ Item6=bjornb.cod bjornb.920 DebugSourceDirs=$(BCB)\source\vcl [Parameters] -RunParams=test.cpp +RunParams=pctool\createmenu_script.cpp Launcher= UseLauncher=0 DebugCWD=