Source

Webware / WebKit / Adapters / common / marshal.h

Full commit
#ifndef MARSHAL_H
#define MARSHAL_H

typedef struct WFILE{

	char *str;
	char *ptr;
	char *end;

} WFILE;

#define HUGE_STRING_LENGTH  4096
#define TYPE_NULL	'0'
#define TYPE_NONE	'N'
#define TYPE_ELLIPSIS   '.'
#define TYPE_INT	'i'
#define TYPE_INT64	'I'
#define TYPE_FLOAT	'f'
#define TYPE_COMPLEX	'x'
#define TYPE_LONG	'l'
#define TYPE_STRING	's'
#define TYPE_TUPLE	'('
#define TYPE_LIST	'['
#define TYPE_DICT	'{'
#define TYPE_CODE	'c'
#define TYPE_UNICODE	'u'
#define TYPE_UNKNOWN	'?'

void insert_data(WFILE* dest, WFILE* src);
void w_byte(char c, WFILE* p);

void w_string(char* s, int n, WFILE* p);
void w_short(int x, WFILE* p);
void w_long(long x, WFILE* p);
void write_string(char* s, long len, WFILE* p);
void write_integer(int number, WFILE* wf);

#endif