Imperative api is sort of working now. Fixed various bugs.
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
#error "Do not include this file directly."
|
||||
#endif
|
||||
|
||||
#include <cstddef> // size_t, NULL
|
||||
|
||||
// Function linkage
|
||||
#define DLL_IMPORT __declspec(dllimport)
|
||||
#define DLL_EXPORT __declspec(dllexport)
|
||||
|
@ -542,7 +542,7 @@ const char * Path::extension(const char * str)
|
||||
l = length = (int)strlen( str );
|
||||
while (length > 0 && str[length] != '.') {
|
||||
length--;
|
||||
if (str[length] != '\\' || str[length] != '/') {
|
||||
if (str[length] == '\\' || str[length] == '/') {
|
||||
return &str[l]; // no extension
|
||||
}
|
||||
}
|
||||
|
@ -154,9 +154,6 @@
|
||||
/// Null index. @@ Move this somewhere else... This could have collisions with other definitions!
|
||||
#define NIL uint(~0)
|
||||
|
||||
// @@ Move this to DefsGnuc?
|
||||
#include <cstddef> // size_t, NULL
|
||||
|
||||
/// Null pointer.
|
||||
#ifndef NULL
|
||||
#define NULL 0
|
||||
|
Reference in New Issue
Block a user