refactoring: made compilation work in codegear
This commit is contained in:
parent
e64eed909b
commit
1c5ed9b1c0
|
@ -5,6 +5,8 @@
|
|||
|
||||
#include "CommonCheck.h"
|
||||
|
||||
#include <stdlib.h> // free
|
||||
|
||||
#include <vector>
|
||||
#include <sstream>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
//---------------------------------------------------------------------------
|
||||
#include "CommonCheck.h"
|
||||
#include "tokenize.h"
|
||||
#include <stdlib.h> // free
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <list>
|
||||
|
@ -363,7 +364,7 @@ void deleteTokens(TOKEN *tok)
|
|||
{
|
||||
while (tok)
|
||||
{
|
||||
TOKEN *next = tok->next;
|
||||
TOKEN *next = tok->next;
|
||||
free(tok->str);
|
||||
delete tok;
|
||||
tok = next;
|
||||
|
|
Loading…
Reference in New Issue