- Fixed compiling on Debian with gcc ( missing includes and std:: )
- Removed c-style include for Borland compiler.
This commit is contained in:
parent
7569071846
commit
459711ed00
12
tokenize.h
12
tokenize.h
|
@ -23,11 +23,9 @@
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <cstdlib>
|
||||||
#ifdef __BORLANDC__
|
#include <cstring>
|
||||||
#include <stdlib.h> // <- free
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern std::vector<std::string> Files;
|
extern std::vector<std::string> Files;
|
||||||
|
|
||||||
|
@ -41,11 +39,11 @@ public:
|
||||||
{ FileIndex = 0; _str = 0; linenr = 0; next = 0; }
|
{ FileIndex = 0; _str = 0; linenr = 0; next = 0; }
|
||||||
|
|
||||||
~TOKEN()
|
~TOKEN()
|
||||||
{ free(_str); }
|
{ std::free(_str); }
|
||||||
|
|
||||||
void setstr( const char s[] )
|
void setstr( const char s[] )
|
||||||
{
|
{
|
||||||
free(_str);
|
std::free(_str);
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
_str = strdup(s);
|
_str = strdup(s);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue