xmlwf: Indent preprocessor code
This commit is contained in:
parent
71b533dae1
commit
df75ab14f4
@ -53,21 +53,21 @@
|
||||
#endif
|
||||
|
||||
#ifndef S_ISREG
|
||||
#ifndef S_IFREG
|
||||
#define S_IFREG _S_IFREG
|
||||
#endif
|
||||
#ifndef S_IFMT
|
||||
#define S_IFMT _S_IFMT
|
||||
#endif
|
||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
# ifndef S_IFREG
|
||||
# define S_IFREG _S_IFREG
|
||||
# endif
|
||||
# ifndef S_IFMT
|
||||
# define S_IFMT _S_IFMT
|
||||
# endif
|
||||
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
#endif /* not S_ISREG */
|
||||
|
||||
#ifndef O_BINARY
|
||||
#ifdef _O_BINARY
|
||||
#define O_BINARY _O_BINARY
|
||||
#else
|
||||
#define O_BINARY 0
|
||||
#endif
|
||||
# ifdef _O_BINARY
|
||||
# define O_BINARY _O_BINARY
|
||||
# else
|
||||
# define O_BINARY 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "xmltchar.h"
|
||||
|
@ -47,9 +47,9 @@
|
||||
#include "filemap.h"
|
||||
|
||||
#ifdef XML_UNICODE_WCHAR_T
|
||||
#define XML_FMT_STR "ls"
|
||||
# define XML_FMT_STR "ls"
|
||||
#else
|
||||
#define XML_FMT_STR "s"
|
||||
# define XML_FMT_STR "s"
|
||||
#endif
|
||||
|
||||
int
|
||||
|
@ -34,14 +34,14 @@
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
|
||||
#ifdef XML_UNICODE_WCHAR_T
|
||||
#ifndef XML_UNICODE
|
||||
#define XML_UNICODE
|
||||
#endif
|
||||
# ifndef XML_UNICODE
|
||||
# define XML_UNICODE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef XML_UNICODE
|
||||
#define UNICODE
|
||||
#define _UNICODE
|
||||
# define UNICODE
|
||||
# define _UNICODE
|
||||
#endif /* XML_UNICODE */
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
|
@ -34,40 +34,40 @@
|
||||
#include "expat_external.h"
|
||||
|
||||
#ifdef XML_UNICODE
|
||||
#ifndef XML_UNICODE_WCHAR_T
|
||||
#error xmlwf requires a 16-bit Unicode-compatible wchar_t
|
||||
#endif
|
||||
#define T(x) L ## x
|
||||
#define ftprintf fwprintf
|
||||
#define tfopen _wfopen
|
||||
#define fputts fputws
|
||||
#define puttc putwc
|
||||
#define tcscmp wcscmp
|
||||
#define tcscpy wcscpy
|
||||
#define tcscat wcscat
|
||||
#define tcschr wcschr
|
||||
#define tcsrchr wcsrchr
|
||||
#define tcslen wcslen
|
||||
#define tperror _wperror
|
||||
#define topen _wopen
|
||||
#define tmain wmain
|
||||
#define tremove _wremove
|
||||
#define tchar wchar_t
|
||||
# ifndef XML_UNICODE_WCHAR_T
|
||||
# error xmlwf requires a 16-bit Unicode-compatible wchar_t
|
||||
# endif
|
||||
# define T(x) L ## x
|
||||
# define ftprintf fwprintf
|
||||
# define tfopen _wfopen
|
||||
# define fputts fputws
|
||||
# define puttc putwc
|
||||
# define tcscmp wcscmp
|
||||
# define tcscpy wcscpy
|
||||
# define tcscat wcscat
|
||||
# define tcschr wcschr
|
||||
# define tcsrchr wcsrchr
|
||||
# define tcslen wcslen
|
||||
# define tperror _wperror
|
||||
# define topen _wopen
|
||||
# define tmain wmain
|
||||
# define tremove _wremove
|
||||
# define tchar wchar_t
|
||||
#else /* not XML_UNICODE */
|
||||
#define T(x) x
|
||||
#define ftprintf fprintf
|
||||
#define tfopen fopen
|
||||
#define fputts fputs
|
||||
#define puttc putc
|
||||
#define tcscmp strcmp
|
||||
#define tcscpy strcpy
|
||||
#define tcscat strcat
|
||||
#define tcschr strchr
|
||||
#define tcsrchr strrchr
|
||||
#define tcslen strlen
|
||||
#define tperror perror
|
||||
#define topen open
|
||||
#define tmain main
|
||||
#define tremove remove
|
||||
#define tchar char
|
||||
# define T(x) x
|
||||
# define ftprintf fprintf
|
||||
# define tfopen fopen
|
||||
# define fputts fputs
|
||||
# define puttc putc
|
||||
# define tcscmp strcmp
|
||||
# define tcscpy strcpy
|
||||
# define tcscat strcat
|
||||
# define tcschr strchr
|
||||
# define tcsrchr strrchr
|
||||
# define tcslen strlen
|
||||
# define tperror perror
|
||||
# define topen open
|
||||
# define tmain main
|
||||
# define tremove remove
|
||||
# define tchar char
|
||||
#endif /* not XML_UNICODE */
|
||||
|
@ -43,11 +43,11 @@
|
||||
#include "xmltchar.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <crtdbg.h>
|
||||
# include <crtdbg.h>
|
||||
#endif
|
||||
|
||||
#ifdef XML_UNICODE
|
||||
#include <wchar.h>
|
||||
# include <wchar.h>
|
||||
#endif
|
||||
|
||||
/* Structures for handler user data */
|
||||
|
Loading…
Reference in New Issue
Block a user