#include "vm_basic_defs.h"
#include "vm_assert.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
#define MAX_DAYSLEFT 4096
time_t TimeUtil_SecondsSinceEpoch(TimeUtil_Date *d); // IN
+#if defined(__cplusplus)
+} // extern "C"
+#endif
+
#endif // _TIMEUTIL_H_
#define INCLUDE_ALLOW_VMKERNEL
#include "includeCheck.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <stdlib.h>
#include <errno.h>
#include "util.h"
#include "unicodeTypes.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
#define UNICODE_SUBSTITUTION_CHAR "\xEF\xBF\xBD"
#define UNICODE_RELEASE_UTF16(s) free((utf16_t *)s)
#endif
-#ifdef __cplusplus
-}
+#if defined(__cplusplus)
+} // extern "C"
#endif
#endif // _UNICODE_BASE_H_
#include "unicodeBase.h"
-#ifdef __cplusplus
+#if defined(__cplusplus)
extern "C" {
#endif
}
#endif
+#if defined(__cplusplus)
+} // extern "C"
+#endif
+
#endif // _UNICODE_ICU_H_
#include "unicodeBase.h"
#include "vm_assert.h"
-#ifdef __cplusplus
+#if defined(__cplusplus)
extern "C" {
#endif
return Unicode_Substr(str, 0, length);
}
-
-#ifdef __cplusplus
-}
+#if defined(__cplusplus)
+} // extern "C"
#endif
#endif // _UNICODE_OPERATIONS_H_
#include "unicodeTypes.h"
-#ifdef __cplusplus
+#if defined(__cplusplus)
extern "C" {
#endif
char *Unicode_TrimLeft(const char *str);
char *Unicode_TrimRight(const char *str);
-#ifdef __cplusplus
-}
+#if defined(__cplusplus)
+} // extern "C"
#endif
#endif // _UNICODE_TRANSFORMS_H_
#define INCLUDE_ALLOW_VMKERNEL
#include "includeCheck.h"
+#include "vm_basic_types.h"
+#include "vm_assert.h"
-#ifdef __cplusplus
+#if defined(__cplusplus)
extern "C" {
#endif
-#include "vm_basic_types.h"
-#include "vm_assert.h"
-
typedef ssize_t UnicodeIndex;
/*
StringEncoding Unicode_GetCurrentEncoding(void);
StringEncoding Unicode_ResolveEncoding(StringEncoding encoding);
-#ifdef __cplusplus
-}
+#if defined(__cplusplus)
+} // extern "C"
#endif
#endif // _UNICODE_TYPES_H_
#ifndef _USERLOCK_H_
#define _USERLOCK_H_
-
#define INCLUDE_ALLOW_USERLEVEL
#define INCLUDE_ALLOW_VMCORE
#include "includeCheck.h"
#include "mutexRank.h"
#include "vthreadBase.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
typedef struct MXUserExclLock MXUserExclLock;
typedef struct MXUserRecLock MXUserRecLock;
typedef struct MXUserRWLock MXUserRWLock;
struct MX_MutexRec *MXUser_GetRecLockVmm(MXUserRecLock *lock);
MX_Rank MXUser_GetRecLockRank(MXUserRecLock *lock);
+
+#if defined(__cplusplus)
+} // extern "C"
+#endif
+
#endif // _USERLOCK_H_
#include "vm_basic_defs.h"
#include "unicodeTypes.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
/*
* Define the Util_ThreadID type, and assorted standard bits.
#endif
}
+#if defined(__cplusplus)
+} // extern "C"
+#endif
#endif /* UTIL_H */
#ifndef _UUID_H_
#define _UUID_H_
-#ifdef __cplusplus
-extern "C"{
-#endif
-
#define INCLUDE_ALLOW_USERLEVEL
#define INCLUDE_ALLOW_VMCORE
#include "includeCheck.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
#define UUID_SIZE 16
#define UUID_STRSIZE (2*UUID_SIZE + 1)
#define UUID_MAXLEN 48
/* like UUID_GetHostUUID, except gets actual host UUID */
char *UUID_GetRealHostUUID(void);
-#ifdef __cplusplus
-} // extern "C" {
+#if defined(__cplusplus)
+} // extern "C"
#endif
#endif
#include "vm_atomic.h"
#include "unicodeTypes.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
#ifdef _WIN32
/* Defines */
CRITICAL_SECTION *W32Util_GetSingletonCriticalSection(Atomic_Ptr *csMemory);
#endif // _WIN32
+
+#if defined(__cplusplus)
+} // extern "C"
+#endif
+
#endif // WIN32UTIL_H_
#include "vm_basic_types.h"
#include "dbllnklst.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
#define TOOLS_WIPE_CANCEL "Wipe cancelled by user.\n"
typedef enum {
unsigned char *Wiper_Next(Wiper_State **s, unsigned int *progress);
unsigned char *Wiper_Cancel(Wiper_State **s);
+#if defined(__cplusplus)
+} // extern "C"
+#endif
+
#endif /* _WIPER_H_ */