ansi/Core.h File Reference


Detailed Description

This is the general ANSI configuration header for the DWF Core library.

This header file provides default definitions for build configuration macros.

Definition in file ansi/Core.h.

#include <time.h>
#include <stdio.h>
#include <wchar.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>

Go to the source code of this file.

Defines

#define DWFCORE_ALLOC_MEMORY(primitive_type, bytes)   (primitive_type*) new primitive_type[bytes]
#define DWFCORE_FREE_MEMORY(pointer)   delete [] pointer; pointer = NULL;
#define DWFCORE_ALLOC_OBJECT(object_type)   new object_type
#define DWFCORE_FREE_OBJECT(pointer)   delete pointer; pointer = NULL;
#define DWFCORE_ZERO_MEMORY(pointer, bytes)   ::memset( (void*)pointer, 0, bytes )
#define DWFCORE_COPY_MEMORY(dest, src, bytes)   ::memcpy( (void*)dest, (const void*)src, bytes )
#define DWFCORE_COMPARE_MEMORY(a, b, bytes)   ::memcmp( (const void*)a, (const void*)b, bytes )
#define DWFCORE_COMPARE_ASCII_STRINGS(a, b)   ::strcmp( a, b )
#define DWFCORE_COMPARE_ASCII_STRINGS_NO_CASE(a, b)   ::strcasecmp( a, b )
#define DWFCORE_COMPARE_ASCII_STRINGS_NCHARS(a, b, n)   ::strncmp( a, b, n )
#define DWFCORE_COMPARE_WIDE_STRINGS(a, b)   ::wcscmp( a, b )
#define DWFCORE_COMPARE_WIDE_STRINGS_NO_CASE(a, b)   ::wcsicmp( a, b )
#define DWFCORE_COMPARE_WIDE_STRINGS_NCHARS(a, b, n)   ::wcsncmp( a, b, n )
#define DWFCORE_ASCII_STRING_LENGTH(s)   ::strlen( s )
#define DWFCORE_WIDE_STRING_LENGTH_IN_WCHARS(s)   ::wcslen( s )
#define DWFCORE_WIDE_STRING_LENGTH_IN_BYTES(s)   (::wcslen( s ) * sizeof(wchar_t))
#define DWFCORE_ASCII_STRING_COPY(a, b)   ::strcpy(a, b)
#define DWFCORE_WIDE_STRING_COPY(a, b)   ::wcscpy(a, b)
#define DWFCORE_ASCII_STRING_COPY_LENGTH(a, b, n)   ::strncpy(a, b, n)
#define DWFCORE_WIDE_STRING_COPY_LENGTH(a, b, n)   ::wcsncpy(a, b, n)
#define DWFCORE_ASCII_STRING_CONCATENATE(a, b)   ::strcat(a, b)
#define DWFCORE_WIDE_STRING_CONCATENATE(a, b)   ::wcscat(a, b)
#define DWFCORE_ASCII_STRING_TOKENIZE(str, delim, state)   ::strtok_r(str, delim, state)
#define DWFCORE_WIDE_STRING_TOKENIZE(str, delim, state)   ::wcstok(str, delim, state)
#define _DWFCORE_SWPRINTF   swprintf
#define _DWFCORE_SPRINTF   snprintf
#define max(a, b)   ((a) < (b) ? (b) : (a))
#define min(a, b)   ((a) < (b) ? (a) : (b))
#define DWFCORE_USE_ANSI_STRING
#define DWFCORE_USE_ANSI_FILE


Generated on Tue Jan 6 22:39:29 2009 for Autodesk DWF Core Library by  doxygen 1.4.5