Ruby  1.9.3p484(2013-11-22revision43786)
Data Structures | Macros | Functions
yaml2byte.c File Reference
#include "ruby/ruby.h"
#include <syck.h>
#include <assert.h>
#include "yamlbyte.h"
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  bytestring_t
 

Macros

#define YAMLBYTE_UTF8
 
#define TRACE0(a)   do { printf(a); printf("\n"); fflush(stdout); } while(0)
 
#define TRACE1(a, b)   do { printf(a,b); printf("\n"); fflush(stdout); } while(0)
 
#define TRACE2(a, b, c)   do { printf(a,b,c); printf("\n"); fflush(stdout); } while(0)
 
#define TRACE3(a, b, c, d)   do { printf(a,b,c,d); printf("\n"); fflush(stdout); } while(0)
 
#define CHUNKSIZE   64
 
#define HASH   ((long)0xCAFECAFE)
 

Functions

bytestring_tbytestring_alloc (void)
 
void bytestring_append (bytestring_t *str, char code, char *start, char *finish)
 
void bytestring_extend (bytestring_t *str, bytestring_t *ext)
 
SYMID syck_yaml2byte_handler (SyckParser *p, SyckNode *n)
 
char * syck_yaml2byte (char *yamlstr)
 

Macro Definition Documentation

#define CHUNKSIZE   64

Definition at line 28 of file yaml2byte.c.

Referenced by bytestring_alloc(), bytestring_append(), and bytestring_extend().

#define HASH   ((long)0xCAFECAFE)

Definition at line 29 of file yaml2byte.c.

Referenced by bytestring_alloc(), bytestring_append(), and bytestring_extend().

#define TRACE0 (   a)    do { printf(a); printf("\n"); fflush(stdout); } while(0)

Definition at line 18 of file yaml2byte.c.

#define TRACE1 (   a,
 
)    do { printf(a,b); printf("\n"); fflush(stdout); } while(0)

Definition at line 20 of file yaml2byte.c.

#define TRACE2 (   a,
  b,
 
)    do { printf(a,b,c); printf("\n"); fflush(stdout); } while(0)

Definition at line 22 of file yaml2byte.c.

#define TRACE3 (   a,
  b,
  c,
 
)    do { printf(a,b,c,d); printf("\n"); fflush(stdout); } while(0)

Definition at line 24 of file yaml2byte.c.

#define YAMLBYTE_UTF8

Definition at line 14 of file yaml2byte.c.

Function Documentation

bytestring_t* bytestring_alloc ( void  )
void bytestring_append ( bytestring_t str,
char  code,
char *  start,
char *  finish 
)
void bytestring_extend ( bytestring_t str,
bytestring_t ext 
)
char* syck_yaml2byte ( char *  yamlstr)
SYMID syck_yaml2byte_handler ( SyckParser p,
SyckNode n 
)