Converted a lot of the char[] stuff internally into std:string

in addition I switched over to <string> rather than <string.h>
This commit is contained in:
Arthur Ice
2013-05-05 16:40:03 -07:00
parent f6100ed834
commit c6ca89907c
2 changed files with 47 additions and 36 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ typedef const char Const_char; //for perl XS
#define THREAD_RETURN(x) return(x);
#endif
#define safe_delete(d) if(d) { delete d; d=0; }
#define safe_delete_array(d) if(d) { delete[] d; d=0; }
#define safe_delete(d) if(d) { delete d; d=nullptr; }
#define safe_delete_array(d) if(d) { delete[] d; d=nullptr; }
#define L32(i) ((uint32) i)
#define H32(i) ((uint32) (i >> 32))
#define L16(i) ((uint16) i)