This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | st_line_buffer |
Typedefs | |
| typedef st_line_buffer | LINE_BUFFER |
Functions | |
| LINE_BUFFER * | batch_readline_init (ulong max_size, FILE *file) |
| LINE_BUFFER * | batch_readline_command (LINE_BUFFER *buffer, my_string str) |
| char * | batch_readline (LINE_BUFFER *buffer) |
| void | batch_readline_end (LINE_BUFFER *buffer) |
| typedef struct st_line_buffer LINE_BUFFER |
| char* batch_readline | ( | LINE_BUFFER * | buffer | ) |
Definition at line 46 of file readline.cc.
References intern_read_line(), out_length, pos(), and st_line_buffer::read_length.
Referenced by read_and_execute().
00047 { 00048 char *pos; 00049 ulong out_length; 00050 00051 if (!(pos=intern_read_line(line_buff,&out_length))) 00052 return 0; 00053 if (out_length && pos[out_length-1] == '\n') 00054 out_length--; /* Remove '\n' */ 00055 line_buff->read_length=out_length; 00056 pos[out_length]=0; 00057 return pos; 00058 }
Here is the call graph for this function:

Here is the caller graph for this function:

| LINE_BUFFER* batch_readline_command | ( | LINE_BUFFER * | buffer, | |
| my_string | str | |||
| ) |
Definition at line 71 of file readline.cc.
References init_line_buffer_from_string(), my_free, my_malloc(), MY_WME, MY_ZEROFILL, and MYF.
Referenced by get_one_option().
00072 { 00073 if (!line_buff) 00074 if (!(line_buff=(LINE_BUFFER*) 00075 my_malloc(sizeof(*line_buff),MYF(MY_WME | MY_ZEROFILL)))) 00076 return 0; 00077 if (init_line_buffer_from_string(line_buff,str)) 00078 { 00079 my_free((char*) line_buff,MYF(0)); 00080 return 0; 00081 } 00082 return line_buff; 00083 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void batch_readline_end | ( | LINE_BUFFER * | buffer | ) |
Definition at line 61 of file readline.cc.
References st_line_buffer::buffer, MY_ALLOW_ZERO_PTR, my_free, and MYF.
Referenced by com_source(), and mysql_end().
00062 { 00063 if (line_buff) 00064 { 00065 my_free((gptr) line_buff->buffer,MYF(MY_ALLOW_ZERO_PTR)); 00066 my_free((char*) line_buff,MYF(0)); 00067 } 00068 }
Here is the caller graph for this function:

| LINE_BUFFER* batch_readline_init | ( | ulong | max_size, | |
| FILE * | file | |||
| ) |
Definition at line 31 of file readline.cc.
References init_line_buffer(), IO_SIZE, my_free, my_malloc(), MY_WME, MY_ZEROFILL, and MYF.
Referenced by com_source(), and main().
00032 { 00033 LINE_BUFFER *line_buff; 00034 if (!(line_buff=(LINE_BUFFER*) 00035 my_malloc(sizeof(*line_buff),MYF(MY_WME | MY_ZEROFILL)))) 00036 return 0; 00037 if (init_line_buffer(line_buff,fileno(file),IO_SIZE,max_size)) 00038 { 00039 my_free((char*) line_buff,MYF(0)); 00040 return 0; 00041 } 00042 return line_buff; 00043 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.4.7

