From: Sebastian Pipping Date: Sat, 26 Aug 2017 15:01:59 +0000 (+0200) Subject: examples: Indent preprocessor code X-Git-Tag: R_2_2_5~30^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1e1a84c8258088b13b9d1b53019b5affa6289ec;p=libexpat examples: Indent preprocessor code --- diff --git a/expat/examples/elements.c b/expat/examples/elements.c index 56e5756b..31d52c33 100644 --- a/expat/examples/elements.c +++ b/expat/examples/elements.c @@ -38,22 +38,22 @@ #include #ifdef XML_LARGE_SIZE -#if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 -#define XML_FMT_INT_MOD "I64" +# if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 +# define XML_FMT_INT_MOD "I64" +# else +# define XML_FMT_INT_MOD "ll" +# endif #else -#define XML_FMT_INT_MOD "ll" -#endif -#else -#define XML_FMT_INT_MOD "l" +# define XML_FMT_INT_MOD "l" #endif #ifdef XML_UNICODE_WCHAR_T -#include -#define XML_FMT_STR "ls" -#define xcputs(s) do { fputws((s), stdout); putchar('\n'); } while (0) +# include +# define XML_FMT_STR "ls" +# define xcputs(s) do { fputws((s), stdout); putchar('\n'); } while (0) #else -#define XML_FMT_STR "s" -#define xcputs(s) puts(s) +# define XML_FMT_STR "s" +# define xcputs(s) puts(s) #endif static void XMLCALL diff --git a/expat/examples/outline.c b/expat/examples/outline.c index fd2535d3..3e0bbaa4 100644 --- a/expat/examples/outline.c +++ b/expat/examples/outline.c @@ -36,19 +36,19 @@ #include #ifdef XML_LARGE_SIZE -#if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 -#define XML_FMT_INT_MOD "I64" +# if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 +# define XML_FMT_INT_MOD "I64" +# else +# define XML_FMT_INT_MOD "ll" +# endif #else -#define XML_FMT_INT_MOD "ll" -#endif -#else -#define XML_FMT_INT_MOD "l" +# define XML_FMT_INT_MOD "l" #endif #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 #define BUFFSIZE 8192