From 1adbce84295122e44e2464ff1263e831b56932ec Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Mon, 17 Jul 2006 22:14:45 +0200 Subject: [PATCH] unicode_val_T instead of unsigned char in struct search --- src/document/document.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/document/document.h b/src/document/document.h index 69024d340..d8a3a1007 100644 --- a/src/document/document.h +++ b/src/document/document.h @@ -118,13 +118,19 @@ struct link { #define get_link_name(link) \ (!link_is_form(link) ? (link)->data.name : NULL) - +#ifdef CONFIG_UTF_8 +struct search { + int x, y; + signed int n; /* RAM is cheap nowadays */ + unicode_val_T c; +}; +#else struct search { int x, y; signed int n:24; /* This structure is size-critical */ unsigned char c; }; - +#endif struct document { OBJECT_HEAD(struct document);