#include <fribidi-deprecated.h>
#include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
-#if HAVE_SYS_TIMES_H+0
+#ifdef HAVE_SYS_TIMES_H
# include <sys/times.h>
#endif
#ifdef _WIN32
else
return 0.0;
#else /* !_WIN32 */
-#if HAVE_SYS_TIMES_H+0
+#ifdef HAVE_SYS_TIMES_H
struct tms tb;
times (&tb);
return 0.01 * tb.tms_utime;
#include <fribidi.h>
#include <fribidi-deprecated.h>
-#if FRIBIDI_CHARSETS+0
+#ifdef FRIBIDI_CHARSETS
#else
# include <fribidi-char-sets.h>
#endif /* !FRIBIDI_CHARSETS */
#include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if STDC_HEADERS && HAVE_MEMORY_H
# else
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <fribidi-unicode.h>
#include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <fribidi-unicode.h>
#include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <fribidi-unicode.h>
#include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <fribidi-unicode.h>
#include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <fribidi-unicode.h>
#include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <fribidi-unicode.h>
#include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <common.h>
#include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
1 <= max_depth <= 21
*/
-#if HAVE_CONFIG_H+0
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif /* HAVE_CONFIG_H */
#include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#define FRIBIDI_LEVEL_INVALID FRIBIDI_BIDI_MAX_RESOLVED_LEVELS
#define FRIBIDI_SENTINEL -1
-#if DEBUG+0
+#ifdef DEBUG
#define fribidi_char_from_bidi_type FRIBIDI_PRIVATESPACE(char_from_bidi_type)
char
#ifndef _COMMON_H
#define _COMMON_H
-#if HAVE_CONFIG_H+0
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
# endif /* !fribidi_free */
#endif /* fribidi_malloc */
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
# define FRIBIDI_EMPTY_STMT FRIBIDI_BEGIN_STMT (void) 0; FRIBIDI_END_STMT
#endif /* !FRIBIDI_EMPTY_STMT */
-#if HAVE_STRINGIZE+0
+#ifdef HAVE_STRINGIZE
# define STRINGIZE(symbol) #symbol
#else /* !HAVE_STRINGIZE */
# error "No stringize operator available?"
#include <fribidi-begindecls.h>
-#if DEBUG+0
+#ifdef DEBUG
/* These definitions should only be used in DEBUG mode: */
#ifndef __LINE__
#include "common.h"
-#if HAVE_STDLIB_H+0
+#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
}
}
-#if DEBUG+0
+#ifdef DEBUG
char
fribidi_char_from_bidi_type (
return ppp;
}
-#if DEBUG+0
+#ifdef DEBUG
/*======================================================================
* For debugging, define some functions for printing the types and the
* levels.
}
}
-#if DEBUG+0
+#ifdef DEBUG
char
fribidi_char_from_joining_type (
#include "bidi-types.h"
#include "joining-types.h"
-#if DEBUG+0
+#ifdef DEBUG
/*======================================================================
* For debugging, define some functions for printing joining types and
* properties.
return status;
}
-#if DEBUG+0
+#ifdef DEBUG
void
fribidi_validate_run_list (
#include <fribidi.h>
-#if DEBUG+0
+#ifdef DEBUG
static int flag_debug = false;
#endif
void
)
{
-#if DEBUG+0
+#ifdef DEBUG
return flag_debug;
#else
return false;
fribidi_boolean state
)
{
-#if DEBUG+0
+#ifdef DEBUG
return flag_debug = state;
#else
return false;
"interface version " FRIBIDI_INTERFACE_VERSION_STRING ",\n"
"Unicode Character Database version " FRIBIDI_UNICODE_VERSION ",\n"
"Configure options"
-#if DEBUG+0
+#ifdef DEBUG
" --enable-debug"
#endif /* DEBUG */
-#if FRIBIDI_CHARSETS+0
+#ifdef FRIBIDI_CHARSETS
#else
" --disable-charsets"
#endif /* !FRIBIDI_CHARSETS */
#include "fribidi-shape.h"
-#if FRIBIDI_CHARSETS+0
+#ifdef FRIBIDI_CHARSETS
# include "fribidi-char-sets.h"
#endif /* FRIBIDI_CHARSETS */
#include <fribidi-begindecls.h>
-#if DEBUG+0
+#ifdef DEBUG
#define fribidi_char_from_joining_type FRIBIDI_PRIVATESPACE(char_from_joining_type)
char
for ((x) = (list)->next; (x)->type != FRIBIDI_TYPE_SENTINEL; (x) = (x)->next)
-#if DEBUG+0
+#ifdef DEBUG
#define fribidi_validate_run_list FRIBIDI_PRIVATESPACE(validate_run_list)
void fribidi_validate_run_list (