diff options
author | John Tytgat <joty@netsurf-browser.org> | 2007-06-11 20:47:18 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2007-06-11 20:47:18 +0000 |
commit | 957d6601bdd4b4b50f7a774f85676f3b7eb685ed (patch) | |
tree | 5cf798b85a30962f7027aaf775e38c5e0957a5cf /rufl_test.c | |
parent | d6af9eba75d0d4b3ddcedbdca884d623545544fa (diff) | |
download | librufl-957d6601bdd4b4b50f7a774f85676f3b7eb685ed.tar.gz librufl-957d6601bdd4b4b50f7a774f85676f3b7eb685ed.tar.bz2 |
- Reduced compiler warnings:
- got rid of aliasing warnings by introducing an extra (void *) casting.
- format specifier for 'size_t' type has now 'z' attribute
- Injected const attributes (also changing public type rufl_family_list
@ rufl.h)
- makefile:
- support for GCCSDK 3.4 (AOF) and GCCSDK 4 (ELF) based on AB_ELFBUILD
(= a variable also used in GCCSDK Autobuilder).
- changed the library name from rufl.o to librufl.a. Needed for GCCSDK
4 but if you're using -L<libdir> -lrufl in your link line, this rename
make that this works for both GCCSDK 3.4 and GCCSDK 4.
[ Also changes for the Norcroft case which haven't been verified and
probably no longer working. ]
svn path=/trunk/rufl/; revision=3343
Diffstat (limited to 'rufl_test.c')
-rw-r--r-- | rufl_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rufl_test.c b/rufl_test.c index a72017f..f07a9b7 100644 --- a/rufl_test.c +++ b/rufl_test.c @@ -47,13 +47,13 @@ int main(void) utf8_test, sizeof utf8_test - 1, x, &char_offset, &actual_x), "rufl_x_to_offset"); - printf("x to offset: %i -> %i %i \"%s\"\n", x, actual_x, + printf("x to offset: %i -> %i %zi \"%s\"\n", x, actual_x, char_offset, utf8_test + char_offset); try(rufl_split("NewHall", rufl_WEIGHT_400, 240, utf8_test, sizeof utf8_test - 1, x, &char_offset, &actual_x), "rufl_split"); - printf("split: %i -> %i %i \"%s\"\n", x, actual_x, + printf("split: %i -> %i %zi \"%s\"\n", x, actual_x, char_offset, utf8_test + char_offset); } try(rufl_decompose_glyph("Homerton", rufl_WEIGHT_400, 1280, |