Mercurial > libpst
comparison src/vbuf.h @ 129:fc11b1d1ad34
fix initial from header in mbox format.
start moving to PST_LE_GET* rather than LE*_CPU macros so we can eventually remove the pragma packing.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 05 Feb 2009 12:09:04 -0800 |
parents | 6395ced2b8b2 |
children | e35fd42bac05 |
comparison
equal
deleted
inserted
replaced
128:7f747c8c9d02 | 129:fc11b1d1ad34 |
---|---|
85 void unicode_close(); | 85 void unicode_close(); |
86 size_t vb_utf16to8(vbuf *dest, const char *inbuf, int iblen); | 86 size_t vb_utf16to8(vbuf *dest, const char *inbuf, int iblen); |
87 size_t vb_utf8to8bit(vbuf *dest, const char *inbuf, int iblen, const char* charset); | 87 size_t vb_utf8to8bit(vbuf *dest, const char *inbuf, int iblen, const char* charset); |
88 | 88 |
89 int vb_skipline( struct varbuf *vb ); // in: vb->b == "stuff\nmore_stuff"; out: vb->b == "more_stuff" | 89 int vb_skipline( struct varbuf *vb ); // in: vb->b == "stuff\nmore_stuff"; out: vb->b == "more_stuff" |
90 | |
91 | |
92 // switch from maximal packing back to default packing | |
93 // undo the packing from common.h | |
94 #ifdef _MSC_VER | |
95 #pragma pack(pop) | |
90 #endif | 96 #endif |
97 #if defined(__GNUC__) || defined (__SUNPRO_C) || defined(__SUNPRO_CC) | |
98 #pragma pack() | |
99 #endif | |
100 | |
101 | |
102 | |
103 #endif // VBUF_H |