pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2000-08-09
2000-08-09 15:07:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>
e4b225fe6a7edca7d06bd361f3211635702587d9 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed a few warnings.
Rev: src/operators.c:1.96
Rev: src/stralloc.c:1.90
25:
#define HUGE HUGE_VAL #endif /*!HUGE*/
-
RCSID("$Id: stralloc.c,v 1.
89
2000/08/
08
19
:
21
:
55
grubba Exp $");
+
RCSID("$Id: stralloc.c,v 1.
90
2000/08/
09
14
:
53
:
11
grubba Exp $");
#define BEGIN_HASH_SIZE 997 #define MAX_AVG_LINK_LENGTH 3
146:
#endif #define CONVERT(FROM,TO) \
-
INLINE void PIKE_CONCAT4(convert_,FROM,_to_,TO)(PIKE_CONCAT(p_wchar,TO) *to, const PIKE_CONCAT(p_wchar,FROM) *from,
int
len) \
+
INLINE void PIKE_CONCAT4(convert_,FROM,_to_,TO)(PIKE_CONCAT(p_wchar,TO) *to, const PIKE_CONCAT(p_wchar,FROM) *from,
ptrdiff_t
len) \
{ while(--len>=0) *(to++)=*(from++); } \
-
INLINE INT32 PIKE_CONCAT4(compare_,FROM,_to_,TO)(const PIKE_CONCAT(p_wchar,TO) *to, const PIKE_CONCAT(p_wchar,FROM) *from,
int
len) \
+
INLINE INT32 PIKE_CONCAT4(compare_,FROM,_to_,TO)(const PIKE_CONCAT(p_wchar,TO) *to, const PIKE_CONCAT(p_wchar,FROM) *from,
ptrdiff_t
len) \
{ int tmp; while(--len>=0) if((tmp=*(to++)-*(from++))) return tmp; return 0; }