GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
scm-string.c File Reference
#include "defs.h"
#include "charset.h"
#include "guile-internal.h"
#include "gdbsupport/buildargv.h"

Go to the source code of this file.

Classes

struct  scm_to_stringn_data
 
struct  scm_from_stringn_data
 

Functions

int gdbscm_scm_string_to_int (SCM string)
 
SCM gdbscm_scm_from_c_string (const char *string)
 
gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_c_string (SCM string)
 
SCM gdbscm_scm_from_printf (const char *format,...)
 
static SCM gdbscm_call_scm_to_stringn (void *datap)
 
gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_string (SCM string, size_t *lenp, const char *charset, int strict, SCM *except_scmp)
 
static SCM gdbscm_call_scm_from_stringn (void *datap)
 
SCM gdbscm_scm_from_string (const char *string, size_t len, const char *charset, int strict)
 
gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_host_string (SCM string, size_t *lenp, SCM *except_scmp)
 
SCM gdbscm_scm_from_host_string (const char *string, size_t len)
 
static SCM gdbscm_string_to_argv (SCM string_scm)
 
void gdbscm_initialize_strings (void)
 

Variables

static const scheme_function string_functions []
 

Function Documentation

◆ gdbscm_call_scm_from_stringn()

static SCM gdbscm_call_scm_from_stringn ( void * datap)
static

Definition at line 159 of file scm-string.c.

Referenced by gdbscm_scm_from_string().

◆ gdbscm_call_scm_to_stringn()

static SCM gdbscm_call_scm_to_stringn ( void * datap)
static

Definition at line 92 of file scm-string.c.

Referenced by gdbscm_scm_to_string().

◆ gdbscm_initialize_strings()

void gdbscm_initialize_strings ( void )

Definition at line 273 of file scm-string.c.

References gdbscm_define_functions(), and string_functions.

◆ gdbscm_scm_from_c_string()

SCM gdbscm_scm_from_c_string ( const char * string)

◆ gdbscm_scm_from_host_string()

SCM gdbscm_scm_from_host_string ( const char * string,
size_t len )

◆ gdbscm_scm_from_printf()

SCM gdbscm_scm_from_printf ( const char * format,
... )

Definition at line 63 of file scm-string.c.

◆ gdbscm_scm_from_string()

SCM gdbscm_scm_from_string ( const char * string,
size_t len,
const char * charset,
int strict )

◆ gdbscm_scm_string_to_int()

int gdbscm_scm_string_to_int ( SCM string)

Definition at line 32 of file scm-string.c.

◆ gdbscm_scm_to_c_string()

gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_c_string ( SCM string)

◆ gdbscm_scm_to_host_string()

gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_host_string ( SCM string,
size_t * lenp,
SCM * except_scmp )

◆ gdbscm_scm_to_string()

gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_string ( SCM string,
size_t * lenp,
const char * charset,
int strict,
SCM * except_scmp )

◆ gdbscm_string_to_argv()

static SCM gdbscm_string_to_argv ( SCM string_scm)
static

Variable Documentation

◆ string_functions

const scheme_function string_functions[]
static
Initial value:
=
{
{ "string->argv", 1, 0, 0, as_a_scm_t_subr (gdbscm_string_to_argv),
"\
Convert a string to a list of strings split up according to\n\
gdb's argv parsing rules." },
}
#define END_FUNCTIONS
static scm_t_subr as_a_scm_t_subr(SCM(*func)(void))
static SCM gdbscm_string_to_argv(SCM string_scm)
Definition scm-string.c:237

Definition at line 262 of file scm-string.c.

Referenced by gdbscm_initialize_strings().