Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lbaselib.c
Show All 11 Lines | |||||
* load | * load | ||||
* pcall | * pcall | ||||
* xpcall | * xpcall | ||||
*/ | */ | ||||
#include <sys/zfs_context.h> | #include <sys/zfs_context.h> | ||||
#include <sys/ctype.h> | #include <sys/ctype.h> | ||||
#if defined(__FreeBSD__) | |||||
#include <ctype.h> | |||||
#endif | |||||
#if !defined(__FreeBSD__) | |||||
imp: replace these three lines with #else | |||||
#ifdef illumos | #ifdef illumos | ||||
#define toupper(C) (((C) >= 'a' && (C) <= 'z')? (C) - 'a' + 'A': (C)) | #define toupper(C) (((C) >= 'a' && (C) <= 'z')? (C) - 'a' + 'A': (C)) | ||||
#else | #else | ||||
#define isalnum(C) (isalpha(C) || isdigit(C)) | #define isalnum(C) (isalpha(C) || isdigit(C)) | ||||
#endif | |||||
#endif | #endif | ||||
#define lbaselib_c | #define lbaselib_c | ||||
#define LUA_LIB | #define LUA_LIB | ||||
#include "lua.h" | #include "lua.h" | ||||
#include "lauxlib.h" | #include "lauxlib.h" | ||||
▲ Show 20 Lines • Show All 265 Lines • Show Last 20 Lines |
replace these three lines with #else