MySQL 9.1.0
Source Code Documentation
readline.cc File Reference
#include <stdio.h>
#include <sys/types.h>
#include "client/my_readline.h"
#include "m_string.h"
#include "my_dbug.h"
#include "my_dir.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_sys.h"
#include "my_thread_local.h"
#include "mysql/service_mysql_alloc.h"

Functions

static bool init_line_buffer (LINE_BUFFER *buffer, File file, ulong size, ulong max_size)
 
static bool init_line_buffer_from_string (LINE_BUFFER *buffer, char *str)
 
static size_t fill_buffer (LINE_BUFFER *buffer)
 
static char * intern_read_line (LINE_BUFFER *buffer, ulong *out_length)
 
LINE_BUFFERbatch_readline_init (ulong max_size, FILE *file)
 
char * batch_readline (LINE_BUFFER *line_buff, bool binary_mode)
 
void batch_readline_end (LINE_BUFFER *line_buff)
 
LINE_BUFFERbatch_readline_command (LINE_BUFFER *line_buff, char *str)
 

Function Documentation

◆ batch_readline()

char * batch_readline ( LINE_BUFFER line_buff,
bool  binary_mode 
)

◆ batch_readline_command()

LINE_BUFFER * batch_readline_command ( LINE_BUFFER line_buff,
char *  str 
)

◆ batch_readline_end()

void batch_readline_end ( LINE_BUFFER line_buff)

◆ batch_readline_init()

LINE_BUFFER * batch_readline_init ( ulong  max_size,
FILE *  file 
)

◆ fill_buffer()

static size_t fill_buffer ( LINE_BUFFER buffer)
static

◆ init_line_buffer()

static bool init_line_buffer ( LINE_BUFFER buffer,
File  file,
ulong  size,
ulong  max_size 
)
static

◆ init_line_buffer_from_string()

static bool init_line_buffer_from_string ( LINE_BUFFER buffer,
char *  str 
)
static

◆ intern_read_line()

char * intern_read_line ( LINE_BUFFER buffer,
ulong *  out_length 
)
static