[FriBidi-commit] fribidi2/bin fribidi-benchmark.c, 1.6,
1.7 fribidi-main.c, 1.14, 1.15
Behdad Esfahbod
behdad at freedesktop.org
Mon Jan 30 19:23:14 PST 2006
- Previous message: [FriBidi-commit] fribidi2 configure.ac,1.23,1.24
- Next message: [FriBidi-commit]
fribidi2/lib bidi-types.h, 1.6, 1.7 common.h, 1.16,
1.17 debug.h, 1.9, 1.10 fribidi-arabic.c, 1.1,
1.2 fribidi-bidi-types.c, 1.8, 1.9 fribidi-bidi-types.h, 1.13,
1.14 fribidi-bidi.c, 1.19, 1.20 fribidi-common.h, 1.11,
1.12 fribidi-deprecated.c, 1.3, 1.4 fribidi-deprecated.h, 1.2,
1.3 fribidi-joining-types.c, 1.4, 1.5 fribidi-joining.c, 1.5,
1.6 fribidi-mem.c, 1.7, 1.8 fribidi-run.c, 1.7,
1.8 fribidi-types.h, 1.11, 1.12 fribidi-unicode.h, 1.6,
1.7 fribidi.c, 1.17, 1.18 fribidi.h, 1.9, 1.10 joining-types.h,
1.3, 1.4 mem.h, 1.6, 1.7 run.h, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/fribidi/fribidi2/bin
In directory gabe:/tmp/cvs-serv8113/bin
Modified Files:
fribidi-benchmark.c fribidi-main.c
Log Message:
Add an option --disable-deprecated.
Index: fribidi-benchmark.c
===================================================================
RCS file: /cvs/fribidi/fribidi2/bin/fribidi-benchmark.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- fribidi-benchmark.c 4 Sep 2005 16:57:09 -0000 1.6
+++ fribidi-benchmark.c 31 Jan 2006 03:23:12 -0000 1.7
@@ -38,7 +38,7 @@
#include <fribidi.h>
#include <stdio.h>
-#if STDC_HEADERS
+#if STDC_HEADERS+0
# include <stdlib.h>
# include <stddef.h>
#else
@@ -46,16 +46,16 @@
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H
+#if HAVE_STRING_H+0
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H
+#if HAVE_STRINGS_H+0
# include <strings.h>
#endif
-#if HAVE_SYS_TIMES_H
+#if HAVE_SYS_TIMES_H+0
# include <sys/times.h>
#endif
@@ -124,7 +124,7 @@
)
{
struct tms tb;
-#if HAVE_SYS_TIMES_H
+#if HAVE_SYS_TIMES_H+0
times (&tb);
return 0.01 * tb.tms_utime;
#else
Index: fribidi-main.c
===================================================================
RCS file: /cvs/fribidi/fribidi2/bin/fribidi-main.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- fribidi-main.c 22 Jan 2006 10:11:43 -0000 1.14
+++ fribidi-main.c 31 Jan 2006 03:23:12 -0000 1.15
@@ -36,7 +36,8 @@
#include <common.h>
#include <fribidi.h>
-#if !FRIBIDI_CHARSETS
+#if FRIBIDI_CHARSETS+0
+#else
# if FRIBIDI_MAIN_USE_ICONV_H
# include <iconv.h>
# else /* !FRIBIDI_MAIN_USE_ICONV_H */
@@ -45,7 +46,7 @@
#endif /* !FRIBIDI_CHARSETS */
#include <stdio.h>
-#if STDC_HEADERS
+#if STDC_HEADERS+0
# include <stdlib.h>
# include <stddef.h>
#else
@@ -53,13 +54,14 @@
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
+#if HAVE_STRING_H+0
+# if STDC_HEADERS && HAVE_MEMORY_H
+# else
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H
+#if HAVE_STRINGS_H+0
# include <strings.h>
#endif
@@ -94,7 +96,7 @@
const char *char_set;
const char *bol_text, *eol_text;
FriBidiParType input_base_direction;
-#if FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
iconv_t to_ucs4, from_ucs4;
#else /* !FRIBIDI_MAIN_USE_ICONV_H */
int char_set_num;
@@ -118,7 +120,7 @@
" -t, --test Test " FRIBIDI_NAME
", same as --clean --nobreak\n"
" --showinput --reordernsm\n");
-#if FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
printf (" -c, --charset CS Specify character set, default is %s.\n"
" CS should be a valid iconv character set name\n",
char_set);
@@ -159,7 +161,8 @@
" [input-str` => '][BOL][[padding space]visual-str][EOL]\n"
" [\\n base-dir][\\n ltov-map][\\n vtol-map][\\n levels][\\n changes]\n");
-#if !FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
+#else
{
int i;
printf ("\n" "Available character sets:\n");
@@ -254,7 +257,8 @@
{"debug", 0, 0, 'd'},
{"test", 0, 0, 't'},
{"charset", 1, 0, 'c'},
-#if !FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
+#else
{"charsetdesc", 1, 0, CHARSETDESC},
{"caprtl", 0, 0, CAPRTL},
#endif /* FRIBIDI_MAIN_USE_ICONV_H */
@@ -326,7 +330,8 @@
if (!char_set)
die1 ("memory allocation failed for char_set!");
break;
-#if !FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
+#else
case CAPRTL:
char_set = "CapRTL";
break;
@@ -354,14 +359,14 @@
}
}
-#if FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
to_ucs4 = iconv_open ("WCHAR_T", char_set);
from_ucs4 = iconv_open (char_set, "WCHAR_T");
#else /* !FRIBIDI_MAIN_USE_ICONV_H */
char_set_num = fribidi_parse_charset (char_set);
#endif /* !FRIBIDI_MAIN_USE_ICONV_H */
-#if FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
if (to_ucs4 == (iconv_t) (-1) || from_ucs4 == (iconv_t) (-1))
#else /* !FRIBIDI_MAIN_USE_ICONV_H */
if (!char_set_num)
@@ -426,7 +431,7 @@
new_line = "";
/* TODO: handle \r */
-#if FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
{
char *st = S_, *ust = (char *) logical;
int in_len = (int) len;
@@ -493,7 +498,8 @@
wid = break_width;
st = idx;
-#if !FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
+#else
if (char_set_num != FRIBIDI_CHAR_SET_CAP_RTL)
#endif /* !FRIBIDI_MAIN_USE_ICONV_H */
while (wid > 0 && idx < len)
@@ -504,7 +510,8 @@
: 1;
idx++;
}
-#if !FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
+#else
else
while (wid > 0 && idx < len)
{
@@ -516,7 +523,7 @@
idx--;
inlen = idx - st;
-#if FRIBIDI_MAIN_USE_ICONV_H
+#if FRIBIDI_MAIN_USE_ICONV_H+0
{
char *str = outstring, *ust =
(char *) (visual + st);
- Previous message: [FriBidi-commit] fribidi2 configure.ac,1.23,1.24
- Next message: [FriBidi-commit]
fribidi2/lib bidi-types.h, 1.6, 1.7 common.h, 1.16,
1.17 debug.h, 1.9, 1.10 fribidi-arabic.c, 1.1,
1.2 fribidi-bidi-types.c, 1.8, 1.9 fribidi-bidi-types.h, 1.13,
1.14 fribidi-bidi.c, 1.19, 1.20 fribidi-common.h, 1.11,
1.12 fribidi-deprecated.c, 1.3, 1.4 fribidi-deprecated.h, 1.2,
1.3 fribidi-joining-types.c, 1.4, 1.5 fribidi-joining.c, 1.5,
1.6 fribidi-mem.c, 1.7, 1.8 fribidi-run.c, 1.7,
1.8 fribidi-types.h, 1.11, 1.12 fribidi-unicode.h, 1.6,
1.7 fribidi.c, 1.17, 1.18 fribidi.h, 1.9, 1.10 joining-types.h,
1.3, 1.4 mem.h, 1.6, 1.7 run.h, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fribidi-commit
mailing list