ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/dynbuf.h
(Generate patch)

Comparing deliantra/server/include/dynbuf.h (file contents):
Revision 1.36 by root, Sun Jan 29 02:47:04 2017 UTC vs.
Revision 1.37 by root, Sat Nov 17 23:33:18 2018 UTC

96 char *force (int size) 96 char *force (int size)
97 { 97 {
98 if (expect_false (ptr + size > end)) 98 if (expect_false (ptr + size > end))
99 reserve (size); 99 reserve (size);
100 100
101 assume (ptr + size <= end); 101 ecb_assume (ptr + size <= end);
102 102
103 return ptr; 103 return ptr;
104 } 104 }
105 105
106 // used for force + alloc combo 106 // used for force + alloc combo
190 dynbuf_text &operator << (sint32 i) { add (sint32 (i)); return *this; } 190 dynbuf_text &operator << (sint32 i) { add (sint32 (i)); return *this; }
191 dynbuf_text &operator << (sint64 i) { add (sint64 (i)); return *this; } 191 dynbuf_text &operator << (sint64 i) { add (sint64 (i)); return *this; }
192 dynbuf_text &operator << (uint32 i) { add (sint64 (i)); return *this; } 192 dynbuf_text &operator << (uint32 i) { add (sint64 (i)); return *this; }
193 dynbuf_text &operator << (uint64 i) { add (sint64 (i)); return *this; } 193 dynbuf_text &operator << (uint64 i) { add (sint64 (i)); return *this; }
194 194
195 void printf (const char *format, ...) attribute ((format (printf, 2, 3))); 195 void printf (const char *format, ...) ecb_attribute ((format (printf, 2, 3)));
196 void vprintf (const char *format, va_list ap); 196 void vprintf (const char *format, va_list ap);
197 197
198 void add_abilities (const char *name, uint32 abilities); 198 void add_abilities (const char *name, uint32 abilities);
199 void add_paths (const char *name, uint32 paths); 199 void add_paths (const char *name, uint32 paths);
200 200

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines