~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/m_string.h

  • Committer: Stewart Smith
  • Date: 2008-09-25 10:04:06 UTC
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: stewart@flamingspork.com-20080925100406-hld92f4dr4nuar3a
Move compression functions (compress, uncompress and compressed_length) out into modules and fix test

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <drizzled/global.h>
26
26
 
27
27
#ifndef __USE_GNU
28
 
#define __USE_GNU                               /* We want to use my_stpcpy */
 
28
#define __USE_GNU                               /* We want to use stpcpy */
29
29
#endif
30
30
#if defined(HAVE_STRINGS_H)
31
31
#include <strings.h>
56
56
extern void *(*my_str_malloc)(size_t);
57
57
extern void (*my_str_free)(void *);
58
58
 
59
 
char *my_stpncpy(register char *dst, register const char *src, size_t n);
60
 
char *my_stpcpy(register char *dst, register const char *src);
61
 
 
62
 
#define strmov_overlapp(A,B) my_stpcpy(A,B)
 
59
#define strmov_overlapp(A,B) stpcpy(A,B)
63
60
#define strmake_overlapp(A,B,C) strmake(A,B,C)
64
61
 
65
62
extern void bmove_upp(unsigned char *dst,const unsigned char *src,size_t len);
92
89
extern char *strcpy(char *, const char *);
93
90
#endif
94
91
 
 
92
#ifndef HAVE_STPNCPY
 
93
char *stpncpy(register char *dst, register const char *src, size_t n);
 
94
#endif
 
95
 
95
96
#if !defined(__cplusplus)
96
97
#ifndef HAVE_STRPBRK
97
98
extern char *strpbrk(const char *, const char *);
135
136
  (DBL_DIG + 2) significant digits + sign + "." + ("e-NNN" or
136
137
  MAX_DECPT_FOR_F_FORMAT zeros for cases when |x|<1 and the 'f' format is used).
137
138
*/
138
 
#define MY_GCVT_MAX_FIELD_WIDTH (DBL_DIG + 4 + cmax(5, MAX_DECPT_FOR_F_FORMAT))
 
139
#define MY_GCVT_MAX_FIELD_WIDTH (DBL_DIG + 4 + max(5, MAX_DECPT_FOR_F_FORMAT))
139
140
  
140
141
 
141
142
extern char *llstr(int64_t value,char *buff);