diff options
author | unknown <msvensson@neptunus.(none)> | 2006-01-11 11:10:58 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-01-11 11:10:58 +0100 |
commit | 113290fe2f8846802edbe2688c72ca49f304091f (patch) | |
tree | 2abadd823a229a8192df08400193e6229d38fda5 | |
parent | c5451d02ad12a66b9be067be9db77e184651a12b (diff) | |
download | mariadb-git-113290fe2f8846802edbe2688c72ca49f304091f.tar.gz |
Add comments that groups and describes the inits
client/mysqltest.c:
Add comments
Group inits logically
-rw-r--r-- | client/mysqltest.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 552d8c4ee29..6a2a7b072de 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -4280,25 +4280,30 @@ int main(int argc, char **argv) save_file[0]=0; TMPDIR[0]=0; + + /* Init cons */ memset(cons, 0, sizeof(cons)); cons_end = cons + MAX_CONS; next_con = cons + 1; cur_con = cons; + /* Init file stack */ memset(file_stack, 0, sizeof(file_stack)); - memset(&master_pos, 0, sizeof(master_pos)); file_stack_end= file_stack + MAX_INCLUDE_DEPTH - 1; cur_file= file_stack; - my_init_dynamic_array(&q_lines, sizeof(struct st_query*), INIT_Q_LINES, - INIT_Q_LINES); - + /* Init block stack */ memset(block_stack, 0, sizeof(block_stack)); block_stack_end= block_stack + BLOCK_STACK_DEPTH - 1; cur_block= block_stack; cur_block->ok= TRUE; /* Outer block should always be executed */ cur_block->cmd= cmd_none; + my_init_dynamic_array(&q_lines, sizeof(struct st_query*), INIT_Q_LINES, + INIT_Q_LINES); + + memset(&master_pos, 0, sizeof(master_pos)); + init_dynamic_string(&ds_res, "", 0, 65536); parse_args(argc, argv); |