equal
deleted
inserted
replaced
150 /* copy visible variable to buffer */; |
150 /* copy visible variable to buffer */; |
151 if(do_debug){ |
151 if(do_debug){ |
152 /* compute next cursor positon. |
152 /* compute next cursor positon. |
153 No need to check overflow, as BUFFER_SIZE |
153 No need to check overflow, as BUFFER_SIZE |
154 is computed large enough */ |
154 is computed large enough */ |
|
155 if(vartype == STRING_ENUM){ |
|
156 /* optimization for strings */ |
|
157 size = ((STRING*)visible_value_p)->len + 1; |
|
158 } |
155 char* next_cursor = buffer_cursor + size; |
159 char* next_cursor = buffer_cursor + size; |
156 /* copy data to the buffer */ |
160 /* copy data to the buffer */ |
157 memcpy(buffer_cursor, visible_value_p, size); |
161 memcpy(buffer_cursor, visible_value_p, size); |
158 /* increment cursor according size*/ |
162 /* increment cursor according size*/ |
159 buffer_cursor = next_cursor; |
163 buffer_cursor = next_cursor; |