Changeset 8693
- Timestamp:
- 2004-11-29T15:56:09+13:00 (19 years ago)
- Location:
- trunk/gsdl/packages/mg
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/packages/mg/lib/memlib.c
r439 r8693 24 24 /* 25 25 $Log$ 26 Revision 1.2 2004/11/29 02:56:09 kjdon 27 added some changes made by Emanuel Dejanu (Simple Words) 28 26 29 Revision 1.1 1999/08/10 21:16:54 sjboddie 27 30 renamed mg-1.3d directory mg … … 42 45 43 46 /* Defined as strdup is not an ANSI function */ 47 /* change the name so we do not have problems with other libs */ 44 48 char * 45 my_ strdup(const char *str)49 my_mg_strdup(const char *str) 46 50 { 47 51 char *ret_str = malloc(strlen(str)+1); … … 57 61 Free_func Xfree = free; 58 62 59 Strdup_func Xstrdup = my_ strdup;63 Strdup_func Xstrdup = my_mg_strdup; -
trunk/gsdl/packages/mg/src/text/bool_parser.c
r1860 r8693 1017 1017 { 1018 1018 /* jump over whitespace */ 1019 while (isspace(*buf_ptr)) 1020 buf_ptr++; 1021 1019 buf_ptr = skipspace(buf_ptr, end); 1020 1022 1021 if (inaword(buf_ptr, end)) 1023 1022 { -
trunk/gsdl/packages/mg/src/text/bool_parser.y
r819 r8693 137 137 { 138 138 /* jump over whitespace */ 139 while (isspace(*buf_ptr)) 140 buf_ptr++; 141 139 buf_ptr = skipspace(buf_ptr, end); 140 142 141 if (inaword(buf_ptr, end)) 143 142 { -
trunk/gsdl/packages/mg/src/text/mg_passes.c
r4191 r8693 28 28 #endif 29 29 30 #include <stdlib.h> 30 31 #include "memlib.h" 31 32 #include "messages.h" … … 44 45 /* 45 46 $Log$ 47 Revision 1.5 2004/11/29 02:56:09 kjdon 48 added some changes made by Emanuel Dejanu (Simple Words) 49 46 50 Revision 1.4 2003/04/18 01:41:46 sjboddie 47 51 Added a new -M option to mg_passes, allowing "maxnumeric" to be altered. -
trunk/gsdl/packages/mg/src/text/words.c
r439 r8693 10 10 return 0; 11 11 } 12 13 /* Return a the UTF-8 encoded Unicode string with begining 14 unicode spaces skipped. */ 15 u_char *skipspace(u_char *here, u_char *end) 16 { 17 unsigned short c; 18 int length; 19 while(here != end) { 20 length = parse_utf8_char(here, end, &c); 21 if (length == 0 || !is_unicode_space(c)) break; 22 here += length; 23 } 24 return here; 25 } 26 27 /* It determines whether a given place in a UTF-8 encoded 28 Unicode string is a unicode space. */ 29 int isaspace (const u_char *here, const u_char *end) 30 { 31 unsigned short c; 32 if (parse_utf8_char(here, end, &c) > 0) return is_unicode_space(c); 33 return 0; 34 } -
trunk/gsdl/packages/mg/src/text/words.h
r4191 r8693 81 81 is part of a word. */ 82 82 83 int isaspace (const u_char *here, const u_char *end); 84 /* It determines whether a given place in a UTF-8 encoded 85 Unicode string is a unicode space. */ 86 87 u_char *skipspace(u_char *here, u_char *end); 88 /* Return a the UTF-8 encoded Unicode string with beginning 89 unicode spaces skipped. */ 90 83 91 84 92 /* ========================================================================= -
trunk/gsdl/packages/mg/sysfuncs.h
r4907 r8693 271 271 272 272 #ifndef _POSIX_VERSION 273 #ifdef __MSDOS__ 273 #if defined(__WIN32__) 274 #include <io.h> 275 #define lseek _lseek 276 #elif defined(__MSDOS__) 274 277 #include <io.h> 275 278 #else
Note:
See TracChangeset
for help on using the changeset viewer.