| 498 | /* Inline (general) functions used by the protocol functions */ |
| 499 | |
| 500 | inline char *prep_append(uint32 arg_length, uint32 step_alloc) |
| 501 | { |
| 502 | uint32 new_length= arg_length + str_length; |
| 503 | if (new_length > Alloced_length) |
| 504 | { |
| 505 | if (realloc(new_length + step_alloc)) |
| 506 | return 0; |
| 507 | } |
| 508 | uint32 old_length= str_length; |
| 509 | str_length+= arg_length; |
| 510 | return Ptr+ old_length; /* Area to use */ |
| 511 | } |
| 512 | |
| 513 | inline bool append(const char *s, uint32 arg_length, uint32 step_alloc) |
| 514 | { |
no outgoing calls
no test coverage detected