Imperative api is sort of working now. Fixed various bugs.

This commit is contained in:
castano
2010-06-01 02:04:33 +00:00
parent adbb0c3338
commit da503d2b3e
16 changed files with 201 additions and 169 deletions

View File

@ -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)

View File

@ -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
}
}

View File

@ -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