GDB (API)
Classes | Defines | Functions
/home/stan/gdb/src/gdb/common/buffer.h File Reference
#include <stddef.h>
#include <string.h>
#include "ansidecl.h"

Go to the source code of this file.

Classes

struct  buffer

Defines

#define buffer_grow_str(BUFFER, STRING)   buffer_grow (BUFFER, STRING, strlen (STRING))
#define buffer_grow_str0(BUFFER, STRING)   buffer_grow (BUFFER, STRING, strlen (STRING) + 1)

Functions

void buffer_grow (struct buffer *buffer, const char *data, size_t size)
void buffer_free (struct buffer *buffer)
void buffer_init (struct buffer *buffer)
char * buffer_finish (struct buffer *buffer)
void buffer_xml_printf (struct buffer *buffer, const char *format,...) ATTRIBUTE_PRINTF(2

Define Documentation

#define buffer_grow_str (   BUFFER,
  STRING 
)    buffer_grow (BUFFER, STRING, strlen (STRING))

Definition at line 58 of file buffer.h.

#define buffer_grow_str0 (   BUFFER,
  STRING 
)    buffer_grow (BUFFER, STRING, strlen (STRING) + 1)

Definition at line 60 of file buffer.h.


Function Documentation

char* buffer_finish ( struct buffer buffer)

Definition at line 77 of file buffer.c.

void buffer_free ( struct buffer buffer)

Definition at line 59 of file buffer.c.

void buffer_grow ( struct buffer buffer,
const char *  data,
size_t  size 
)

Definition at line 36 of file buffer.c.

void buffer_init ( struct buffer buffer)

Definition at line 71 of file buffer.c.

void buffer_xml_printf ( struct buffer buffer,
const char *  format,
  ... 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines