2003-05-13 02:34:18 -04:00
|
|
|
/*
|
|
|
|
* syck.h
|
|
|
|
*
|
|
|
|
* $Author$
|
|
|
|
* $Date$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 why the lucky stiff
|
|
|
|
*/
|
2003-05-09 17:25:50 -04:00
|
|
|
|
|
|
|
#ifndef SYCK_H
|
|
|
|
#define SYCK_H
|
|
|
|
|
2003-07-11 18:52:14 -04:00
|
|
|
#define SYCK_YAML_MAJOR 1
|
|
|
|
#define SYCK_YAML_MINOR 0
|
|
|
|
|
2005-09-20 02:50:20 -04:00
|
|
|
#define SYCK_VERSION "0.60"
|
2003-05-10 15:55:18 -04:00
|
|
|
#define YAML_DOMAIN "yaml.org,2002"
|
2003-05-09 17:25:50 -04:00
|
|
|
|
2003-10-14 20:32:44 -04:00
|
|
|
#include <stdio.h>
|
2003-10-17 16:53:39 -04:00
|
|
|
#include <ctype.h>
|
2003-05-20 02:48:04 -04:00
|
|
|
#include "st.h"
|
2003-05-09 17:25:50 -04:00
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2003-05-13 02:34:18 -04:00
|
|
|
/*
|
|
|
|
* Memory Allocation
|
|
|
|
*/
|
2003-05-09 17:25:50 -04:00
|
|
|
#if defined(HAVE_ALLOCA_H) && !defined(__GNUC__)
|
|
|
|
#include <alloca.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
void syck_assert( char *, unsigned );
|
|
|
|
# define ASSERT(f) \
|
|
|
|
if ( f ) \
|
|
|
|
{} \
|
|
|
|
else \
|
|
|
|
syck_assert( __FILE__, __LINE__ )
|
|
|
|
#else
|
|
|
|
# define ASSERT(f)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef NULL
|
|
|
|
# define NULL (void *)0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define ALLOC_CT 8
|
2003-11-25 14:51:38 -05:00
|
|
|
#define SYCK_BUFFERSIZE 4096
|
2003-05-09 17:25:50 -04:00
|
|
|
#define S_ALLOC_N(type,n) (type*)malloc(sizeof(type)*(n))
|
|
|
|
#define S_ALLOC(type) (type*)malloc(sizeof(type))
|
|
|
|
#define S_REALLOC_N(var,type,n) (var)=(type*)realloc((char*)(var),sizeof(type)*(n))
|
2005-12-19 09:13:27 -05:00
|
|
|
#define S_FREE(n) if (n) { free(n); n = NULL; }
|
2003-05-09 17:25:50 -04:00
|
|
|
|
|
|
|
#define S_ALLOCA_N(type,n) (type*)alloca(sizeof(type)*(n))
|
|
|
|
|
|
|
|
#define S_MEMZERO(p,type,n) memset((p), 0, sizeof(type)*(n))
|
|
|
|
#define S_MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(n))
|
|
|
|
#define S_MEMMOVE(p1,p2,type,n) memmove((p1), (p2), sizeof(type)*(n))
|
|
|
|
#define S_MEMCMP(p1,p2,type,n) memcmp((p1), (p2), sizeof(type)*(n))
|
|
|
|
|
|
|
|
#define BLOCK_FOLD 10
|
|
|
|
#define BLOCK_LIT 20
|
|
|
|
#define BLOCK_PLAIN 30
|
2005-09-12 23:58:33 -04:00
|
|
|
#define NL_CHOMP 40
|
|
|
|
#define NL_KEEP 50
|
2003-05-09 17:25:50 -04:00
|
|
|
|
2003-05-13 02:34:18 -04:00
|
|
|
/*
|
|
|
|
* Node definitions
|
|
|
|
*/
|
2005-09-12 23:58:33 -04:00
|
|
|
#ifndef ST_DATA_T_DEFINED
|
|
|
|
typedef long st_data_t;
|
|
|
|
#endif
|
|
|
|
|
2003-05-09 17:25:50 -04:00
|
|
|
#define SYMID unsigned long
|
|
|
|
|
|
|
|
typedef struct _syck_node SyckNode;
|
|
|
|
|
|
|
|
enum syck_kind_tag {
|
|
|
|
syck_map_kind,
|
|
|
|
syck_seq_kind,
|
|
|
|
syck_str_kind
|
|
|
|
};
|
|
|
|
|
|
|
|
enum map_part {
|
|
|
|
map_key,
|
|
|
|
map_value
|
|
|
|
};
|
|
|
|
|
2005-09-12 23:58:33 -04:00
|
|
|
enum map_style {
|
|
|
|
map_none,
|
|
|
|
map_inline
|
|
|
|
};
|
|
|
|
|
|
|
|
enum seq_style {
|
|
|
|
seq_none,
|
|
|
|
seq_inline
|
|
|
|
};
|
|
|
|
|
2004-05-14 23:11:28 -04:00
|
|
|
enum scalar_style {
|
|
|
|
scalar_none,
|
|
|
|
scalar_1quote,
|
|
|
|
scalar_2quote,
|
2005-09-12 23:58:33 -04:00
|
|
|
scalar_fold,
|
|
|
|
scalar_literal,
|
|
|
|
scalar_plain
|
2004-05-14 23:11:28 -04:00
|
|
|
};
|
|
|
|
|
2003-07-11 18:52:14 -04:00
|
|
|
/*
|
|
|
|
* Node metadata struct
|
|
|
|
*/
|
2003-05-09 17:25:50 -04:00
|
|
|
struct _syck_node {
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Symbol table ID */
|
2003-05-09 17:25:50 -04:00
|
|
|
SYMID id;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Underlying kind */
|
2003-05-09 17:25:50 -04:00
|
|
|
enum syck_kind_tag kind;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Fully qualified tag-uri for type */
|
2003-05-09 17:25:50 -04:00
|
|
|
char *type_id;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Anchor name */
|
2003-05-09 17:25:50 -04:00
|
|
|
char *anchor;
|
|
|
|
union {
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Storage for map data */
|
2003-05-09 17:25:50 -04:00
|
|
|
struct SyckMap {
|
2005-09-12 23:58:33 -04:00
|
|
|
enum map_style style;
|
2003-05-09 17:25:50 -04:00
|
|
|
SYMID *keys;
|
|
|
|
SYMID *values;
|
|
|
|
long capa;
|
|
|
|
long idx;
|
|
|
|
} *pairs;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Storage for sequence data */
|
2003-05-09 17:25:50 -04:00
|
|
|
struct SyckSeq {
|
2005-09-12 23:58:33 -04:00
|
|
|
enum seq_style style;
|
2003-05-09 17:25:50 -04:00
|
|
|
SYMID *items;
|
|
|
|
long capa;
|
|
|
|
long idx;
|
|
|
|
} *list;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Storage for string data */
|
2003-05-09 17:25:50 -04:00
|
|
|
struct SyckStr {
|
2004-05-14 23:11:28 -04:00
|
|
|
enum scalar_style style;
|
2003-05-09 17:25:50 -04:00
|
|
|
char *ptr;
|
|
|
|
long len;
|
|
|
|
} *str;
|
|
|
|
} data;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Shortcut node */
|
2003-05-14 16:01:09 -04:00
|
|
|
void *shortcut;
|
2003-05-09 17:25:50 -04:00
|
|
|
};
|
|
|
|
|
2003-05-13 02:34:18 -04:00
|
|
|
/*
|
|
|
|
* Parser definitions
|
|
|
|
*/
|
2003-07-11 18:52:14 -04:00
|
|
|
typedef struct _syck_parser SyckParser;
|
|
|
|
typedef struct _syck_file SyckIoFile;
|
|
|
|
typedef struct _syck_str SyckIoStr;
|
|
|
|
typedef struct _syck_level SyckLevel;
|
|
|
|
|
2003-05-09 17:25:50 -04:00
|
|
|
typedef SYMID (*SyckNodeHandler)(SyckParser *, SyckNode *);
|
|
|
|
typedef void (*SyckErrorHandler)(SyckParser *, char *);
|
2003-06-17 12:55:54 -04:00
|
|
|
typedef SyckNode * (*SyckBadAnchorHandler)(SyckParser *, char *);
|
2003-05-09 17:25:50 -04:00
|
|
|
typedef long (*SyckIoFileRead)(char *, SyckIoFile *, long, long);
|
|
|
|
typedef long (*SyckIoStrRead)(char *, SyckIoStr *, long, long);
|
|
|
|
|
|
|
|
enum syck_io_type {
|
|
|
|
syck_io_str,
|
|
|
|
syck_io_file
|
|
|
|
};
|
|
|
|
|
2003-10-14 19:15:19 -04:00
|
|
|
enum syck_parser_input {
|
|
|
|
syck_yaml_utf8,
|
|
|
|
syck_yaml_utf16,
|
|
|
|
syck_yaml_utf32,
|
|
|
|
syck_bytecode_utf8
|
|
|
|
};
|
|
|
|
|
2003-05-09 17:25:50 -04:00
|
|
|
enum syck_level_status {
|
|
|
|
syck_lvl_header,
|
|
|
|
syck_lvl_doc,
|
2003-10-14 19:15:19 -04:00
|
|
|
syck_lvl_open,
|
2003-05-09 17:25:50 -04:00
|
|
|
syck_lvl_seq,
|
2003-05-13 02:34:18 -04:00
|
|
|
syck_lvl_map,
|
2003-05-09 17:25:50 -04:00
|
|
|
syck_lvl_block,
|
|
|
|
syck_lvl_str,
|
2005-09-12 23:58:33 -04:00
|
|
|
syck_lvl_iseq,
|
|
|
|
syck_lvl_imap,
|
2003-05-09 17:25:50 -04:00
|
|
|
syck_lvl_end,
|
2005-09-12 23:58:33 -04:00
|
|
|
syck_lvl_pause,
|
|
|
|
syck_lvl_anctag,
|
|
|
|
syck_lvl_mapx,
|
|
|
|
syck_lvl_seqx
|
2003-05-09 17:25:50 -04:00
|
|
|
};
|
|
|
|
|
2003-07-11 18:52:14 -04:00
|
|
|
/*
|
2003-08-19 12:38:02 -04:00
|
|
|
* Parser structs
|
2003-07-11 18:52:14 -04:00
|
|
|
*/
|
2003-08-19 12:38:02 -04:00
|
|
|
struct _syck_file {
|
|
|
|
/* File pointer */
|
|
|
|
FILE *ptr;
|
|
|
|
/* Function which FILE -> buffer */
|
|
|
|
SyckIoFileRead read;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _syck_str {
|
|
|
|
/* String buffer pointers */
|
|
|
|
char *beg, *ptr, *end;
|
|
|
|
/* Function which string -> buffer */
|
|
|
|
SyckIoStrRead read;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _syck_level {
|
2005-09-12 23:58:33 -04:00
|
|
|
/* Indent */
|
2003-08-19 12:38:02 -04:00
|
|
|
int spaces;
|
2005-09-12 23:58:33 -04:00
|
|
|
/* Counts nodes emitted at this level, useful for parsing
|
|
|
|
* keys and pairs in bytecode */
|
2003-10-14 19:15:19 -04:00
|
|
|
int ncount;
|
2005-09-12 23:58:33 -04:00
|
|
|
/* Does node have anchors or tags? */
|
|
|
|
int anctag;
|
|
|
|
/* Domain prefixing at the given level */
|
2003-08-19 12:38:02 -04:00
|
|
|
char *domain;
|
2005-09-12 23:58:33 -04:00
|
|
|
/* Keeps a node status */
|
2003-08-19 12:38:02 -04:00
|
|
|
enum syck_level_status status;
|
|
|
|
};
|
|
|
|
|
2003-05-09 17:25:50 -04:00
|
|
|
struct _syck_parser {
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Root node */
|
2003-05-15 17:46:47 -04:00
|
|
|
SYMID root, root_on_error;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Implicit typing flag */
|
2003-05-09 17:25:50 -04:00
|
|
|
int implicit_typing, taguri_expansion;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Scripting language function to handle nodes */
|
2003-05-09 17:25:50 -04:00
|
|
|
SyckNodeHandler handler;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Error handler */
|
2003-05-09 17:25:50 -04:00
|
|
|
SyckErrorHandler error_handler;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* InvalidAnchor handler */
|
2003-06-17 12:55:54 -04:00
|
|
|
SyckBadAnchorHandler bad_anchor_handler;
|
2003-10-14 19:15:19 -04:00
|
|
|
/* Parser input type */
|
|
|
|
enum syck_parser_input input_type;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* IO type */
|
2003-05-09 17:25:50 -04:00
|
|
|
enum syck_io_type io_type;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Custom buffer size */
|
2003-05-09 17:25:50 -04:00
|
|
|
size_t bufsize;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Buffer pointers */
|
2003-05-19 12:37:20 -04:00
|
|
|
char *buffer, *linectptr, *lineptr, *toktmp, *token, *cursor, *marker, *limit;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Line counter */
|
2003-05-09 17:25:50 -04:00
|
|
|
int linect;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Last token from yylex() */
|
2003-05-09 17:25:50 -04:00
|
|
|
int last_token;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Force a token upon next call to yylex() */
|
2003-05-09 17:25:50 -04:00
|
|
|
int force_token;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* EOF flag */
|
2003-05-09 17:25:50 -04:00
|
|
|
int eof;
|
|
|
|
union {
|
2003-08-19 12:38:02 -04:00
|
|
|
SyckIoFile *file;
|
|
|
|
SyckIoStr *str;
|
2003-05-09 17:25:50 -04:00
|
|
|
} io;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Symbol table for anchors */
|
2003-06-17 12:55:54 -04:00
|
|
|
st_table *anchors, *bad_anchors;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Optional symbol table for SYMIDs */
|
2003-05-09 17:25:50 -04:00
|
|
|
st_table *syms;
|
2003-07-04 08:51:42 -04:00
|
|
|
/* Levels of indentation */
|
2003-08-19 12:38:02 -04:00
|
|
|
SyckLevel *levels;
|
2003-05-09 17:25:50 -04:00
|
|
|
int lvl_idx;
|
|
|
|
int lvl_capa;
|
2005-09-12 23:58:33 -04:00
|
|
|
/* Pointer for extension's use */
|
2003-05-09 17:25:50 -04:00
|
|
|
void *bonus;
|
|
|
|
};
|
|
|
|
|
2003-07-11 18:52:14 -04:00
|
|
|
/*
|
|
|
|
* Emitter definitions
|
|
|
|
*/
|
|
|
|
typedef struct _syck_emitter SyckEmitter;
|
|
|
|
typedef struct _syck_emitter_node SyckEmitterNode;
|
|
|
|
|
|
|
|
typedef void (*SyckOutputHandler)(SyckEmitter *, char *, long);
|
2005-09-12 23:58:33 -04:00
|
|
|
typedef void (*SyckEmitterHandler)(SyckEmitter *, st_data_t);
|
2003-07-11 18:52:14 -04:00
|
|
|
|
|
|
|
enum doc_stage {
|
|
|
|
doc_open,
|
|
|
|
doc_processing
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Emitter struct
|
|
|
|
*/
|
|
|
|
struct _syck_emitter {
|
|
|
|
/* Headerless doc flag */
|
|
|
|
int headless;
|
|
|
|
/* Force header? */
|
|
|
|
int use_header;
|
|
|
|
/* Force version? */
|
|
|
|
int use_version;
|
|
|
|
/* Sort hash keys */
|
|
|
|
int sort_keys;
|
|
|
|
/* Anchor format */
|
|
|
|
char *anchor_format;
|
|
|
|
/* Explicit typing on all collections? */
|
|
|
|
int explicit_typing;
|
|
|
|
/* Best width on folded scalars */
|
|
|
|
int best_width;
|
|
|
|
/* Use literal[1] or folded[2] blocks on all text? */
|
2005-09-12 23:58:33 -04:00
|
|
|
enum scalar_style style;
|
2003-07-11 18:52:14 -04:00
|
|
|
/* Stage of written document */
|
|
|
|
enum doc_stage stage;
|
|
|
|
/* Level counter */
|
|
|
|
int level;
|
|
|
|
/* Default indentation */
|
|
|
|
int indent;
|
|
|
|
/* Object ignore ID */
|
|
|
|
SYMID ignore_id;
|
|
|
|
/* Symbol table for anchors */
|
2005-09-12 23:58:33 -04:00
|
|
|
st_table *markers, *anchors, *anchored;
|
2003-07-11 18:52:14 -04:00
|
|
|
/* Custom buffer size */
|
|
|
|
size_t bufsize;
|
|
|
|
/* Buffer */
|
|
|
|
char *buffer, *marker;
|
|
|
|
/* Absolute position of the buffer */
|
|
|
|
long bufpos;
|
2005-09-12 23:58:33 -04:00
|
|
|
/* Handler for emitter nodes */
|
|
|
|
SyckEmitterHandler emitter_handler;
|
2003-07-11 18:52:14 -04:00
|
|
|
/* Handler for output */
|
2005-09-12 23:58:33 -04:00
|
|
|
SyckOutputHandler output_handler;
|
|
|
|
/* Levels of indentation */
|
|
|
|
SyckLevel *levels;
|
|
|
|
int lvl_idx;
|
|
|
|
int lvl_capa;
|
2003-07-11 18:52:14 -04:00
|
|
|
/* Pointer for extension's use */
|
|
|
|
void *bonus;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Emitter node metadata struct
|
|
|
|
*/
|
|
|
|
struct _syck_emitter_node {
|
|
|
|
/* Node buffer position */
|
|
|
|
long pos;
|
|
|
|
/* Current indent */
|
|
|
|
long indent;
|
|
|
|
/* Collection? */
|
|
|
|
int is_shortcut;
|
|
|
|
};
|
|
|
|
|
2003-05-13 02:34:18 -04:00
|
|
|
/*
|
|
|
|
* Handler prototypes
|
|
|
|
*/
|
2003-05-09 17:25:50 -04:00
|
|
|
SYMID syck_hdlr_add_node( SyckParser *, SyckNode * );
|
|
|
|
SyckNode *syck_hdlr_add_anchor( SyckParser *, char *, SyckNode * );
|
2003-06-17 12:55:54 -04:00
|
|
|
void syck_hdlr_remove_anchor( SyckParser *, char * );
|
|
|
|
SyckNode *syck_hdlr_get_anchor( SyckParser *, char * );
|
2003-05-09 17:25:50 -04:00
|
|
|
void syck_add_transfer( char *, SyckNode *, int );
|
2003-05-10 15:55:18 -04:00
|
|
|
char *syck_xprivate( char *, int );
|
* sprintf.c (rb_str_format): allow %c to print one character
string (e.g. ?x).
* lib/tempfile.rb (Tempfile::make_tmpname): put dot between
basename and pid. [ruby-talk:196272]
* parse.y (do_block): remove -> style block.
* parse.y (parser_yylex): remove tLAMBDA_ARG.
* eval.c (rb_call0): binding for the return event hook should have
consistent scope. [ruby-core:07928]
* eval.c (proc_invoke): return behavior should depend whether it
is surrounded by a lambda or a mere block.
* eval.c (formal_assign): handles post splat arguments.
* eval.c (rb_call0): ditto.
* st.c (strhash): use FNV-1a hash.
* parse.y (parser_yylex): removed experimental ';;' terminator.
* eval.c (rb_node_arity): should be aware of post splat arguments.
* eval.c (rb_proc_arity): ditto.
* parse.y (f_args): syntax rule enhanced to support arguments
after the splat.
* parse.y (block_param): ditto for block parameters.
* parse.y (f_post_arg): mandatory formal arguments after the splat
argument.
* parse.y (new_args_gen): generate nodes for mandatory formal
arguments after the splat argument.
* eval.c (rb_eval): dispatch mandatory formal arguments after the
splat argument.
* parse.y (args): allow more than one splat in the argument list.
* parse.y (method_call): allow aref [] to accept all kind of
method argument, including assocs, splat, and block argument.
* eval.c (SETUP_ARGS0): prepare block argument as well.
* lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931]
* eval.c (error_line): print receivers true/false/nil specially.
* eval.c (rb_proc_yield): handles parameters in yield semantics.
* eval.c (nil_yield): gives LocalJumpError to denote no block
error.
* io.c (rb_io_getc): now takes one-character string.
* string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo
hashing algorithm.
* string.c (rb_str_aref): str[0] now returns 1 character string,
instead of a fixnum. [Ruby2]
* parse.y (parser_yylex): ?c now returns 1 character string,
instead of a fixnum. [Ruby2]
* string.c (rb_str_aset): no longer support fixnum insertion.
* eval.c (umethod_bind): should not update original class.
[ruby-dev:28636]
* eval.c (ev_const_get): should support constant access from
within instance_eval(). [ruby-dev:28327]
* time.c (time_timeval): should round for usec floating
number. [ruby-core:07896]
* time.c (time_add): ditto.
* dir.c (sys_warning): should not call a vararg function
rb_sys_warning() indirectly. [ruby-core:07886]
* numeric.c (flo_divmod): the first element of Float#divmod should
be an integer. [ruby-dev:28589]
* test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder.
* re.c (rb_reg_initialize): should not allow modifying literal
regexps. frozen check moved from rb_reg_initialize_m as well.
* re.c (rb_reg_initialize): should not modify untainted objects in
safe levels higher than 3.
* re.c (rb_memcmp): type change from char* to const void*.
* dir.c (dir_close): should not close untainted dir stream.
* dir.c (GetDIR): add tainted/frozen check for each dir operation.
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
typo fixed. a patch from Florian Gross <florg at florg.net>.
* eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from
event_hooks. no guarantee for arbitrary hook deletion.
[ruby-dev:28632]
* util.c (ruby_strtod): differ addition to minimize error.
[ruby-dev:28619]
* util.c (ruby_strtod): should not raise ERANGE when the input
string does not have any digits. [ruby-dev:28629]
* eval.c (proc_invoke): should restore old ruby_frame->block.
thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833]
also fix [ruby-dev:28614] as well.
* signal.c (trap): sig should be less then NSIG. Coverity found
this bug. a patch from Kevin Tew <tewk at tewk.com>.
[ruby-core:07823]
* math.c (math_log2): add new method inspired by
[ruby-talk:191237].
* math.c (math_log): add optional base argument to Math::log().
[ruby-talk:191308]
* ext/syck/emitter.c (syck_scan_scalar): avoid accessing
uninitialized array element. a patch from Pat Eyler
<rubypate at gmail.com>. [ruby-core:07809]
* array.c (rb_ary_fill): initialize local variables first. a
patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810]
* ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free
type_tag. a patch from Pat Eyler <rubypate at gmail.com>.
[ruby-core:07808]
* ext/socket/socket.c (make_hostent_internal): accept ai_family
check from Sam Roberts <sroberts at uniserve.com>.
[ruby-core:07691]
* util.c (ruby_strtod): should not cut off 18 digits for no
reason. [ruby-core:07796]
* array.c (rb_ary_fill): internalize local variable "beg" to
pacify Coverity. [ruby-core:07770]
* pack.c (pack_unpack): now supports CRLF newlines. a patch from
<tommy at tmtm.org>. [ruby-dev:28601]
* applied code clean-up patch from Stefan Huehner
<stefan at huehner.org>. [ruby-core:07764]
* lib/jcode.rb (String::tr_s): should have translated non
squeezing character sequence (i.e. a character) as well. thanks
to Hiroshi Ichikawa <gimite at gimite.ddo.jp> [ruby-list:42090]
* ext/socket/socket.c: document update patch from Sam Roberts
<sroberts at uniserve.com>. [ruby-core:07701]
* lib/mathn.rb (Integer): need not to remove gcd2. a patch from
NARUSE, Yui <naruse at airemix.com>. [ruby-dev:28570]
* parse.y (arg): too much NEW_LIST()
* eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen.
* eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.
[ruby-dev:28585]
* parse.y (arg): use NODE_ARGSCAT for placeholder.
* lib/getoptlong.rb (GetoptLong::get): RDoc update patch from
mathew <meta at pobox.com>. [ruby-core:07738]
* variable.c (rb_const_set): raise error when no target klass is
supplied. [ruby-dev:28582]
* prec.c (prec_prec_f): documentation patch from
<gerardo.santana at gmail.com>. [ruby-core:07689]
* bignum.c (rb_big_pow): second operand may be too big even if
it's a Fixnum. [ruby-talk:187984]
* README.EXT: update symbol description. [ruby-talk:188104]
* COPYING: explicitly note GPLv2. [ruby-talk:187922]
* parse.y: remove some obsolete syntax rules (unparenthesized
method calls in argument list).
* eval.c (rb_call0): insecure calling should be checked for non
NODE_SCOPE method invocations too.
* eval.c (rb_alias): should preserve the current safe level as
well as method definition.
* process.c (rb_f_sleep): remove RDoc description about SIGALRM
which is not valid on the current implementation. [ruby-dev:28464]
Thu Mar 23 21:40:47 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* eval.c (method_missing): should support argument splat in
super. a bug in combination of super, splat and
method_missing. [ruby-talk:185438]
* configure.in: Solaris SunPro compiler -rapth patch from
<kuwa at labs.fujitsu.com>. [ruby-dev:28443]
* configure.in: remove enable_rpath=no for Solaris.
[ruby-dev:28440]
* ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior
of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby
String object.
* ruby.1: a clarification patch from David Lutterkort
<dlutter at redhat.com>. [ruby-core:7508]
* lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems
directories. a patch from Eric Hodel <drbrain at segment7.net>.
[ruby-core:07423]
* eval.c (rb_clear_cache_by_class): clearing wrong cache.
* ext/extmk.rb: use :remove_destination to install extension libraries
to avoid SEGV. [ruby-dev:28417]
* eval.c (rb_thread_fd_writable): should not re-schedule output
from KILLED thread (must be error printing).
* array.c (rb_ary_flatten_bang): allow specifying recursion
level. [ruby-talk:182170]
* array.c (rb_ary_flatten): ditto.
* gc.c (add_heap): a heap_slots may overflow. a patch from Stefan
Weil <weil at mail.berlios.de>.
* eval.c (rb_call): use separate cache for fcall/vcall
invocation.
* eval.c (rb_eval): NODE_FCALL, NODE_VCALL can call local
functions.
* eval.c (rb_mod_local): a new method to specify newly added
visibility "local".
* eval.c (search_method): search for local methods which are
visible only from the current class.
* class.c (rb_class_local_methods): a method to list local methods.
* object.c (Init_Object): add BasicObject class as a top level
BlankSlate class.
* ruby.h (SYM2ID): should not cast to signed long.
[ruby-core:07414]
* class.c (rb_include_module): allow module duplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-09 17:20:17 -04:00
|
|
|
char *syck_taguri( const char *, const char *, int );
|
|
|
|
int syck_tagcmp( const char *, const char * );
|
2003-05-09 17:25:50 -04:00
|
|
|
int syck_add_sym( SyckParser *, char * );
|
|
|
|
int syck_lookup_sym( SyckParser *, SYMID, char ** );
|
|
|
|
int syck_try_implicit( SyckNode * );
|
2003-05-10 15:55:18 -04:00
|
|
|
char *syck_type_id_to_uri( char * );
|
2003-05-09 17:25:50 -04:00
|
|
|
void try_tag_implicit( SyckNode *, int );
|
2003-05-10 15:55:18 -04:00
|
|
|
char *syck_match_implicit( char *, size_t );
|
2003-05-09 17:25:50 -04:00
|
|
|
|
2003-05-13 02:34:18 -04:00
|
|
|
/*
|
|
|
|
* API prototypes
|
|
|
|
*/
|
* sprintf.c (rb_str_format): allow %c to print one character
string (e.g. ?x).
* lib/tempfile.rb (Tempfile::make_tmpname): put dot between
basename and pid. [ruby-talk:196272]
* parse.y (do_block): remove -> style block.
* parse.y (parser_yylex): remove tLAMBDA_ARG.
* eval.c (rb_call0): binding for the return event hook should have
consistent scope. [ruby-core:07928]
* eval.c (proc_invoke): return behavior should depend whether it
is surrounded by a lambda or a mere block.
* eval.c (formal_assign): handles post splat arguments.
* eval.c (rb_call0): ditto.
* st.c (strhash): use FNV-1a hash.
* parse.y (parser_yylex): removed experimental ';;' terminator.
* eval.c (rb_node_arity): should be aware of post splat arguments.
* eval.c (rb_proc_arity): ditto.
* parse.y (f_args): syntax rule enhanced to support arguments
after the splat.
* parse.y (block_param): ditto for block parameters.
* parse.y (f_post_arg): mandatory formal arguments after the splat
argument.
* parse.y (new_args_gen): generate nodes for mandatory formal
arguments after the splat argument.
* eval.c (rb_eval): dispatch mandatory formal arguments after the
splat argument.
* parse.y (args): allow more than one splat in the argument list.
* parse.y (method_call): allow aref [] to accept all kind of
method argument, including assocs, splat, and block argument.
* eval.c (SETUP_ARGS0): prepare block argument as well.
* lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931]
* eval.c (error_line): print receivers true/false/nil specially.
* eval.c (rb_proc_yield): handles parameters in yield semantics.
* eval.c (nil_yield): gives LocalJumpError to denote no block
error.
* io.c (rb_io_getc): now takes one-character string.
* string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo
hashing algorithm.
* string.c (rb_str_aref): str[0] now returns 1 character string,
instead of a fixnum. [Ruby2]
* parse.y (parser_yylex): ?c now returns 1 character string,
instead of a fixnum. [Ruby2]
* string.c (rb_str_aset): no longer support fixnum insertion.
* eval.c (umethod_bind): should not update original class.
[ruby-dev:28636]
* eval.c (ev_const_get): should support constant access from
within instance_eval(). [ruby-dev:28327]
* time.c (time_timeval): should round for usec floating
number. [ruby-core:07896]
* time.c (time_add): ditto.
* dir.c (sys_warning): should not call a vararg function
rb_sys_warning() indirectly. [ruby-core:07886]
* numeric.c (flo_divmod): the first element of Float#divmod should
be an integer. [ruby-dev:28589]
* test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder.
* re.c (rb_reg_initialize): should not allow modifying literal
regexps. frozen check moved from rb_reg_initialize_m as well.
* re.c (rb_reg_initialize): should not modify untainted objects in
safe levels higher than 3.
* re.c (rb_memcmp): type change from char* to const void*.
* dir.c (dir_close): should not close untainted dir stream.
* dir.c (GetDIR): add tainted/frozen check for each dir operation.
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
typo fixed. a patch from Florian Gross <florg at florg.net>.
* eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from
event_hooks. no guarantee for arbitrary hook deletion.
[ruby-dev:28632]
* util.c (ruby_strtod): differ addition to minimize error.
[ruby-dev:28619]
* util.c (ruby_strtod): should not raise ERANGE when the input
string does not have any digits. [ruby-dev:28629]
* eval.c (proc_invoke): should restore old ruby_frame->block.
thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833]
also fix [ruby-dev:28614] as well.
* signal.c (trap): sig should be less then NSIG. Coverity found
this bug. a patch from Kevin Tew <tewk at tewk.com>.
[ruby-core:07823]
* math.c (math_log2): add new method inspired by
[ruby-talk:191237].
* math.c (math_log): add optional base argument to Math::log().
[ruby-talk:191308]
* ext/syck/emitter.c (syck_scan_scalar): avoid accessing
uninitialized array element. a patch from Pat Eyler
<rubypate at gmail.com>. [ruby-core:07809]
* array.c (rb_ary_fill): initialize local variables first. a
patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810]
* ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free
type_tag. a patch from Pat Eyler <rubypate at gmail.com>.
[ruby-core:07808]
* ext/socket/socket.c (make_hostent_internal): accept ai_family
check from Sam Roberts <sroberts at uniserve.com>.
[ruby-core:07691]
* util.c (ruby_strtod): should not cut off 18 digits for no
reason. [ruby-core:07796]
* array.c (rb_ary_fill): internalize local variable "beg" to
pacify Coverity. [ruby-core:07770]
* pack.c (pack_unpack): now supports CRLF newlines. a patch from
<tommy at tmtm.org>. [ruby-dev:28601]
* applied code clean-up patch from Stefan Huehner
<stefan at huehner.org>. [ruby-core:07764]
* lib/jcode.rb (String::tr_s): should have translated non
squeezing character sequence (i.e. a character) as well. thanks
to Hiroshi Ichikawa <gimite at gimite.ddo.jp> [ruby-list:42090]
* ext/socket/socket.c: document update patch from Sam Roberts
<sroberts at uniserve.com>. [ruby-core:07701]
* lib/mathn.rb (Integer): need not to remove gcd2. a patch from
NARUSE, Yui <naruse at airemix.com>. [ruby-dev:28570]
* parse.y (arg): too much NEW_LIST()
* eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen.
* eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.
[ruby-dev:28585]
* parse.y (arg): use NODE_ARGSCAT for placeholder.
* lib/getoptlong.rb (GetoptLong::get): RDoc update patch from
mathew <meta at pobox.com>. [ruby-core:07738]
* variable.c (rb_const_set): raise error when no target klass is
supplied. [ruby-dev:28582]
* prec.c (prec_prec_f): documentation patch from
<gerardo.santana at gmail.com>. [ruby-core:07689]
* bignum.c (rb_big_pow): second operand may be too big even if
it's a Fixnum. [ruby-talk:187984]
* README.EXT: update symbol description. [ruby-talk:188104]
* COPYING: explicitly note GPLv2. [ruby-talk:187922]
* parse.y: remove some obsolete syntax rules (unparenthesized
method calls in argument list).
* eval.c (rb_call0): insecure calling should be checked for non
NODE_SCOPE method invocations too.
* eval.c (rb_alias): should preserve the current safe level as
well as method definition.
* process.c (rb_f_sleep): remove RDoc description about SIGALRM
which is not valid on the current implementation. [ruby-dev:28464]
Thu Mar 23 21:40:47 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* eval.c (method_missing): should support argument splat in
super. a bug in combination of super, splat and
method_missing. [ruby-talk:185438]
* configure.in: Solaris SunPro compiler -rapth patch from
<kuwa at labs.fujitsu.com>. [ruby-dev:28443]
* configure.in: remove enable_rpath=no for Solaris.
[ruby-dev:28440]
* ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior
of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby
String object.
* ruby.1: a clarification patch from David Lutterkort
<dlutter at redhat.com>. [ruby-core:7508]
* lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems
directories. a patch from Eric Hodel <drbrain at segment7.net>.
[ruby-core:07423]
* eval.c (rb_clear_cache_by_class): clearing wrong cache.
* ext/extmk.rb: use :remove_destination to install extension libraries
to avoid SEGV. [ruby-dev:28417]
* eval.c (rb_thread_fd_writable): should not re-schedule output
from KILLED thread (must be error printing).
* array.c (rb_ary_flatten_bang): allow specifying recursion
level. [ruby-talk:182170]
* array.c (rb_ary_flatten): ditto.
* gc.c (add_heap): a heap_slots may overflow. a patch from Stefan
Weil <weil at mail.berlios.de>.
* eval.c (rb_call): use separate cache for fcall/vcall
invocation.
* eval.c (rb_eval): NODE_FCALL, NODE_VCALL can call local
functions.
* eval.c (rb_mod_local): a new method to specify newly added
visibility "local".
* eval.c (search_method): search for local methods which are
visible only from the current class.
* class.c (rb_class_local_methods): a method to list local methods.
* object.c (Init_Object): add BasicObject class as a top level
BlankSlate class.
* ruby.h (SYM2ID): should not cast to signed long.
[ruby-core:07414]
* class.c (rb_include_module): allow module duplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-09 17:20:17 -04:00
|
|
|
char *syck_strndup( const char *, long );
|
2003-05-09 17:25:50 -04:00
|
|
|
long syck_io_file_read( char *, SyckIoFile *, long, long );
|
|
|
|
long syck_io_str_read( char *, SyckIoStr *, long, long );
|
2003-07-28 15:27:42 -04:00
|
|
|
char *syck_base64enc( char *, long );
|
|
|
|
char *syck_base64dec( char *, long );
|
2006-06-20 14:02:17 -04:00
|
|
|
SyckEmitter *syck_new_emitter(void);
|
2005-09-12 23:58:33 -04:00
|
|
|
SYMID syck_emitter_mark_node( SyckEmitter *, st_data_t );
|
2003-07-11 18:52:14 -04:00
|
|
|
void syck_emitter_ignore_id( SyckEmitter *, SYMID );
|
2005-09-12 23:58:33 -04:00
|
|
|
void syck_output_handler( SyckEmitter *, SyckOutputHandler );
|
|
|
|
void syck_emitter_handler( SyckEmitter *, SyckEmitterHandler );
|
2003-07-11 18:52:14 -04:00
|
|
|
void syck_free_emitter( SyckEmitter * );
|
|
|
|
void syck_emitter_clear( SyckEmitter * );
|
* sprintf.c (rb_str_format): allow %c to print one character
string (e.g. ?x).
* lib/tempfile.rb (Tempfile::make_tmpname): put dot between
basename and pid. [ruby-talk:196272]
* parse.y (do_block): remove -> style block.
* parse.y (parser_yylex): remove tLAMBDA_ARG.
* eval.c (rb_call0): binding for the return event hook should have
consistent scope. [ruby-core:07928]
* eval.c (proc_invoke): return behavior should depend whether it
is surrounded by a lambda or a mere block.
* eval.c (formal_assign): handles post splat arguments.
* eval.c (rb_call0): ditto.
* st.c (strhash): use FNV-1a hash.
* parse.y (parser_yylex): removed experimental ';;' terminator.
* eval.c (rb_node_arity): should be aware of post splat arguments.
* eval.c (rb_proc_arity): ditto.
* parse.y (f_args): syntax rule enhanced to support arguments
after the splat.
* parse.y (block_param): ditto for block parameters.
* parse.y (f_post_arg): mandatory formal arguments after the splat
argument.
* parse.y (new_args_gen): generate nodes for mandatory formal
arguments after the splat argument.
* eval.c (rb_eval): dispatch mandatory formal arguments after the
splat argument.
* parse.y (args): allow more than one splat in the argument list.
* parse.y (method_call): allow aref [] to accept all kind of
method argument, including assocs, splat, and block argument.
* eval.c (SETUP_ARGS0): prepare block argument as well.
* lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931]
* eval.c (error_line): print receivers true/false/nil specially.
* eval.c (rb_proc_yield): handles parameters in yield semantics.
* eval.c (nil_yield): gives LocalJumpError to denote no block
error.
* io.c (rb_io_getc): now takes one-character string.
* string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo
hashing algorithm.
* string.c (rb_str_aref): str[0] now returns 1 character string,
instead of a fixnum. [Ruby2]
* parse.y (parser_yylex): ?c now returns 1 character string,
instead of a fixnum. [Ruby2]
* string.c (rb_str_aset): no longer support fixnum insertion.
* eval.c (umethod_bind): should not update original class.
[ruby-dev:28636]
* eval.c (ev_const_get): should support constant access from
within instance_eval(). [ruby-dev:28327]
* time.c (time_timeval): should round for usec floating
number. [ruby-core:07896]
* time.c (time_add): ditto.
* dir.c (sys_warning): should not call a vararg function
rb_sys_warning() indirectly. [ruby-core:07886]
* numeric.c (flo_divmod): the first element of Float#divmod should
be an integer. [ruby-dev:28589]
* test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder.
* re.c (rb_reg_initialize): should not allow modifying literal
regexps. frozen check moved from rb_reg_initialize_m as well.
* re.c (rb_reg_initialize): should not modify untainted objects in
safe levels higher than 3.
* re.c (rb_memcmp): type change from char* to const void*.
* dir.c (dir_close): should not close untainted dir stream.
* dir.c (GetDIR): add tainted/frozen check for each dir operation.
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
typo fixed. a patch from Florian Gross <florg at florg.net>.
* eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from
event_hooks. no guarantee for arbitrary hook deletion.
[ruby-dev:28632]
* util.c (ruby_strtod): differ addition to minimize error.
[ruby-dev:28619]
* util.c (ruby_strtod): should not raise ERANGE when the input
string does not have any digits. [ruby-dev:28629]
* eval.c (proc_invoke): should restore old ruby_frame->block.
thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833]
also fix [ruby-dev:28614] as well.
* signal.c (trap): sig should be less then NSIG. Coverity found
this bug. a patch from Kevin Tew <tewk at tewk.com>.
[ruby-core:07823]
* math.c (math_log2): add new method inspired by
[ruby-talk:191237].
* math.c (math_log): add optional base argument to Math::log().
[ruby-talk:191308]
* ext/syck/emitter.c (syck_scan_scalar): avoid accessing
uninitialized array element. a patch from Pat Eyler
<rubypate at gmail.com>. [ruby-core:07809]
* array.c (rb_ary_fill): initialize local variables first. a
patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810]
* ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free
type_tag. a patch from Pat Eyler <rubypate at gmail.com>.
[ruby-core:07808]
* ext/socket/socket.c (make_hostent_internal): accept ai_family
check from Sam Roberts <sroberts at uniserve.com>.
[ruby-core:07691]
* util.c (ruby_strtod): should not cut off 18 digits for no
reason. [ruby-core:07796]
* array.c (rb_ary_fill): internalize local variable "beg" to
pacify Coverity. [ruby-core:07770]
* pack.c (pack_unpack): now supports CRLF newlines. a patch from
<tommy at tmtm.org>. [ruby-dev:28601]
* applied code clean-up patch from Stefan Huehner
<stefan at huehner.org>. [ruby-core:07764]
* lib/jcode.rb (String::tr_s): should have translated non
squeezing character sequence (i.e. a character) as well. thanks
to Hiroshi Ichikawa <gimite at gimite.ddo.jp> [ruby-list:42090]
* ext/socket/socket.c: document update patch from Sam Roberts
<sroberts at uniserve.com>. [ruby-core:07701]
* lib/mathn.rb (Integer): need not to remove gcd2. a patch from
NARUSE, Yui <naruse at airemix.com>. [ruby-dev:28570]
* parse.y (arg): too much NEW_LIST()
* eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen.
* eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.
[ruby-dev:28585]
* parse.y (arg): use NODE_ARGSCAT for placeholder.
* lib/getoptlong.rb (GetoptLong::get): RDoc update patch from
mathew <meta at pobox.com>. [ruby-core:07738]
* variable.c (rb_const_set): raise error when no target klass is
supplied. [ruby-dev:28582]
* prec.c (prec_prec_f): documentation patch from
<gerardo.santana at gmail.com>. [ruby-core:07689]
* bignum.c (rb_big_pow): second operand may be too big even if
it's a Fixnum. [ruby-talk:187984]
* README.EXT: update symbol description. [ruby-talk:188104]
* COPYING: explicitly note GPLv2. [ruby-talk:187922]
* parse.y: remove some obsolete syntax rules (unparenthesized
method calls in argument list).
* eval.c (rb_call0): insecure calling should be checked for non
NODE_SCOPE method invocations too.
* eval.c (rb_alias): should preserve the current safe level as
well as method definition.
* process.c (rb_f_sleep): remove RDoc description about SIGALRM
which is not valid on the current implementation. [ruby-dev:28464]
Thu Mar 23 21:40:47 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* eval.c (method_missing): should support argument splat in
super. a bug in combination of super, splat and
method_missing. [ruby-talk:185438]
* configure.in: Solaris SunPro compiler -rapth patch from
<kuwa at labs.fujitsu.com>. [ruby-dev:28443]
* configure.in: remove enable_rpath=no for Solaris.
[ruby-dev:28440]
* ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior
of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby
String object.
* ruby.1: a clarification patch from David Lutterkort
<dlutter at redhat.com>. [ruby-core:7508]
* lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems
directories. a patch from Eric Hodel <drbrain at segment7.net>.
[ruby-core:07423]
* eval.c (rb_clear_cache_by_class): clearing wrong cache.
* ext/extmk.rb: use :remove_destination to install extension libraries
to avoid SEGV. [ruby-dev:28417]
* eval.c (rb_thread_fd_writable): should not re-schedule output
from KILLED thread (must be error printing).
* array.c (rb_ary_flatten_bang): allow specifying recursion
level. [ruby-talk:182170]
* array.c (rb_ary_flatten): ditto.
* gc.c (add_heap): a heap_slots may overflow. a patch from Stefan
Weil <weil at mail.berlios.de>.
* eval.c (rb_call): use separate cache for fcall/vcall
invocation.
* eval.c (rb_eval): NODE_FCALL, NODE_VCALL can call local
functions.
* eval.c (rb_mod_local): a new method to specify newly added
visibility "local".
* eval.c (search_method): search for local methods which are
visible only from the current class.
* class.c (rb_class_local_methods): a method to list local methods.
* object.c (Init_Object): add BasicObject class as a top level
BlankSlate class.
* ruby.h (SYM2ID): should not cast to signed long.
[ruby-core:07414]
* class.c (rb_include_module): allow module duplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-09 17:20:17 -04:00
|
|
|
void syck_emitter_write( SyckEmitter *, const char *, long );
|
2005-09-12 23:58:33 -04:00
|
|
|
void syck_emitter_escape( SyckEmitter *, char *, long );
|
2003-07-24 12:30:43 -04:00
|
|
|
void syck_emitter_flush( SyckEmitter *, long );
|
2005-09-12 23:58:33 -04:00
|
|
|
void syck_emit( SyckEmitter *, st_data_t );
|
|
|
|
void syck_emit_scalar( SyckEmitter *, char *, enum scalar_style, int, int, char, char *, long );
|
|
|
|
void syck_emit_1quoted( SyckEmitter *, int, char *, long );
|
|
|
|
void syck_emit_2quoted( SyckEmitter *, int, char *, long );
|
|
|
|
void syck_emit_folded( SyckEmitter *, int, char, char *, long );
|
|
|
|
void syck_emit_literal( SyckEmitter *, char, char *, long );
|
|
|
|
void syck_emit_seq( SyckEmitter *, char *, enum seq_style );
|
|
|
|
void syck_emit_item( SyckEmitter *, st_data_t );
|
|
|
|
void syck_emit_map( SyckEmitter *, char *, enum map_style );
|
|
|
|
void syck_emit_end( SyckEmitter * );
|
* sprintf.c (rb_str_format): allow %c to print one character
string (e.g. ?x).
* lib/tempfile.rb (Tempfile::make_tmpname): put dot between
basename and pid. [ruby-talk:196272]
* parse.y (do_block): remove -> style block.
* parse.y (parser_yylex): remove tLAMBDA_ARG.
* eval.c (rb_call0): binding for the return event hook should have
consistent scope. [ruby-core:07928]
* eval.c (proc_invoke): return behavior should depend whether it
is surrounded by a lambda or a mere block.
* eval.c (formal_assign): handles post splat arguments.
* eval.c (rb_call0): ditto.
* st.c (strhash): use FNV-1a hash.
* parse.y (parser_yylex): removed experimental ';;' terminator.
* eval.c (rb_node_arity): should be aware of post splat arguments.
* eval.c (rb_proc_arity): ditto.
* parse.y (f_args): syntax rule enhanced to support arguments
after the splat.
* parse.y (block_param): ditto for block parameters.
* parse.y (f_post_arg): mandatory formal arguments after the splat
argument.
* parse.y (new_args_gen): generate nodes for mandatory formal
arguments after the splat argument.
* eval.c (rb_eval): dispatch mandatory formal arguments after the
splat argument.
* parse.y (args): allow more than one splat in the argument list.
* parse.y (method_call): allow aref [] to accept all kind of
method argument, including assocs, splat, and block argument.
* eval.c (SETUP_ARGS0): prepare block argument as well.
* lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931]
* eval.c (error_line): print receivers true/false/nil specially.
* eval.c (rb_proc_yield): handles parameters in yield semantics.
* eval.c (nil_yield): gives LocalJumpError to denote no block
error.
* io.c (rb_io_getc): now takes one-character string.
* string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo
hashing algorithm.
* string.c (rb_str_aref): str[0] now returns 1 character string,
instead of a fixnum. [Ruby2]
* parse.y (parser_yylex): ?c now returns 1 character string,
instead of a fixnum. [Ruby2]
* string.c (rb_str_aset): no longer support fixnum insertion.
* eval.c (umethod_bind): should not update original class.
[ruby-dev:28636]
* eval.c (ev_const_get): should support constant access from
within instance_eval(). [ruby-dev:28327]
* time.c (time_timeval): should round for usec floating
number. [ruby-core:07896]
* time.c (time_add): ditto.
* dir.c (sys_warning): should not call a vararg function
rb_sys_warning() indirectly. [ruby-core:07886]
* numeric.c (flo_divmod): the first element of Float#divmod should
be an integer. [ruby-dev:28589]
* test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder.
* re.c (rb_reg_initialize): should not allow modifying literal
regexps. frozen check moved from rb_reg_initialize_m as well.
* re.c (rb_reg_initialize): should not modify untainted objects in
safe levels higher than 3.
* re.c (rb_memcmp): type change from char* to const void*.
* dir.c (dir_close): should not close untainted dir stream.
* dir.c (GetDIR): add tainted/frozen check for each dir operation.
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
typo fixed. a patch from Florian Gross <florg at florg.net>.
* eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from
event_hooks. no guarantee for arbitrary hook deletion.
[ruby-dev:28632]
* util.c (ruby_strtod): differ addition to minimize error.
[ruby-dev:28619]
* util.c (ruby_strtod): should not raise ERANGE when the input
string does not have any digits. [ruby-dev:28629]
* eval.c (proc_invoke): should restore old ruby_frame->block.
thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833]
also fix [ruby-dev:28614] as well.
* signal.c (trap): sig should be less then NSIG. Coverity found
this bug. a patch from Kevin Tew <tewk at tewk.com>.
[ruby-core:07823]
* math.c (math_log2): add new method inspired by
[ruby-talk:191237].
* math.c (math_log): add optional base argument to Math::log().
[ruby-talk:191308]
* ext/syck/emitter.c (syck_scan_scalar): avoid accessing
uninitialized array element. a patch from Pat Eyler
<rubypate at gmail.com>. [ruby-core:07809]
* array.c (rb_ary_fill): initialize local variables first. a
patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810]
* ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free
type_tag. a patch from Pat Eyler <rubypate at gmail.com>.
[ruby-core:07808]
* ext/socket/socket.c (make_hostent_internal): accept ai_family
check from Sam Roberts <sroberts at uniserve.com>.
[ruby-core:07691]
* util.c (ruby_strtod): should not cut off 18 digits for no
reason. [ruby-core:07796]
* array.c (rb_ary_fill): internalize local variable "beg" to
pacify Coverity. [ruby-core:07770]
* pack.c (pack_unpack): now supports CRLF newlines. a patch from
<tommy at tmtm.org>. [ruby-dev:28601]
* applied code clean-up patch from Stefan Huehner
<stefan at huehner.org>. [ruby-core:07764]
* lib/jcode.rb (String::tr_s): should have translated non
squeezing character sequence (i.e. a character) as well. thanks
to Hiroshi Ichikawa <gimite at gimite.ddo.jp> [ruby-list:42090]
* ext/socket/socket.c: document update patch from Sam Roberts
<sroberts at uniserve.com>. [ruby-core:07701]
* lib/mathn.rb (Integer): need not to remove gcd2. a patch from
NARUSE, Yui <naruse at airemix.com>. [ruby-dev:28570]
* parse.y (arg): too much NEW_LIST()
* eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen.
* eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.
[ruby-dev:28585]
* parse.y (arg): use NODE_ARGSCAT for placeholder.
* lib/getoptlong.rb (GetoptLong::get): RDoc update patch from
mathew <meta at pobox.com>. [ruby-core:07738]
* variable.c (rb_const_set): raise error when no target klass is
supplied. [ruby-dev:28582]
* prec.c (prec_prec_f): documentation patch from
<gerardo.santana at gmail.com>. [ruby-core:07689]
* bignum.c (rb_big_pow): second operand may be too big even if
it's a Fixnum. [ruby-talk:187984]
* README.EXT: update symbol description. [ruby-talk:188104]
* COPYING: explicitly note GPLv2. [ruby-talk:187922]
* parse.y: remove some obsolete syntax rules (unparenthesized
method calls in argument list).
* eval.c (rb_call0): insecure calling should be checked for non
NODE_SCOPE method invocations too.
* eval.c (rb_alias): should preserve the current safe level as
well as method definition.
* process.c (rb_f_sleep): remove RDoc description about SIGALRM
which is not valid on the current implementation. [ruby-dev:28464]
Thu Mar 23 21:40:47 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* eval.c (method_missing): should support argument splat in
super. a bug in combination of super, splat and
method_missing. [ruby-talk:185438]
* configure.in: Solaris SunPro compiler -rapth patch from
<kuwa at labs.fujitsu.com>. [ruby-dev:28443]
* configure.in: remove enable_rpath=no for Solaris.
[ruby-dev:28440]
* ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior
of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby
String object.
* ruby.1: a clarification patch from David Lutterkort
<dlutter at redhat.com>. [ruby-core:7508]
* lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems
directories. a patch from Eric Hodel <drbrain at segment7.net>.
[ruby-core:07423]
* eval.c (rb_clear_cache_by_class): clearing wrong cache.
* ext/extmk.rb: use :remove_destination to install extension libraries
to avoid SEGV. [ruby-dev:28417]
* eval.c (rb_thread_fd_writable): should not re-schedule output
from KILLED thread (must be error printing).
* array.c (rb_ary_flatten_bang): allow specifying recursion
level. [ruby-talk:182170]
* array.c (rb_ary_flatten): ditto.
* gc.c (add_heap): a heap_slots may overflow. a patch from Stefan
Weil <weil at mail.berlios.de>.
* eval.c (rb_call): use separate cache for fcall/vcall
invocation.
* eval.c (rb_eval): NODE_FCALL, NODE_VCALL can call local
functions.
* eval.c (rb_mod_local): a new method to specify newly added
visibility "local".
* eval.c (search_method): search for local methods which are
visible only from the current class.
* class.c (rb_class_local_methods): a method to list local methods.
* object.c (Init_Object): add BasicObject class as a top level
BlankSlate class.
* ruby.h (SYM2ID): should not cast to signed long.
[ruby-core:07414]
* class.c (rb_include_module): allow module duplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-09 17:20:17 -04:00
|
|
|
void syck_emit_tag( SyckEmitter *, const char *, const char * );
|
2005-09-12 23:58:33 -04:00
|
|
|
void syck_emit_indent( SyckEmitter * );
|
|
|
|
SyckLevel *syck_emitter_current_level( SyckEmitter * );
|
|
|
|
SyckLevel *syck_emitter_parent_level( SyckEmitter * );
|
|
|
|
void syck_emitter_pop_level( SyckEmitter * );
|
|
|
|
void syck_emitter_add_level( SyckEmitter *, int, enum syck_level_status );
|
|
|
|
void syck_emitter_reset_levels( SyckEmitter * );
|
2007-03-18 23:58:57 -04:00
|
|
|
SyckParser *syck_new_parser(void);
|
2003-05-09 17:25:50 -04:00
|
|
|
void syck_free_parser( SyckParser * );
|
2003-05-15 17:46:47 -04:00
|
|
|
void syck_parser_set_root_on_error( SyckParser *, SYMID );
|
2003-05-09 17:25:50 -04:00
|
|
|
void syck_parser_implicit_typing( SyckParser *, int );
|
|
|
|
void syck_parser_taguri_expansion( SyckParser *, int );
|
2005-09-12 23:58:33 -04:00
|
|
|
int syck_scan_scalar( int, char *, long );
|
2003-05-09 17:25:50 -04:00
|
|
|
void syck_parser_handler( SyckParser *, SyckNodeHandler );
|
|
|
|
void syck_parser_error_handler( SyckParser *, SyckErrorHandler );
|
2003-06-17 12:55:54 -04:00
|
|
|
void syck_parser_bad_anchor_handler( SyckParser *, SyckBadAnchorHandler );
|
2003-05-09 17:25:50 -04:00
|
|
|
void syck_parser_file( SyckParser *, FILE *, SyckIoFileRead );
|
|
|
|
void syck_parser_str( SyckParser *, char *, long, SyckIoStrRead );
|
|
|
|
void syck_parser_str_auto( SyckParser *, char *, SyckIoStrRead );
|
|
|
|
SyckLevel *syck_parser_current_level( SyckParser * );
|
|
|
|
void syck_parser_add_level( SyckParser *, int, enum syck_level_status );
|
2003-05-15 17:46:47 -04:00
|
|
|
void syck_parser_pop_level( SyckParser * );
|
2003-05-09 17:25:50 -04:00
|
|
|
void free_any_io( SyckParser * );
|
|
|
|
long syck_parser_read( SyckParser * );
|
|
|
|
long syck_parser_readlen( SyckParser *, long );
|
|
|
|
SYMID syck_parse( SyckParser * );
|
|
|
|
void syck_default_error_handler( SyckParser *, char * );
|
2003-10-17 16:53:39 -04:00
|
|
|
SYMID syck_yaml2byte_handler( SyckParser *, SyckNode * );
|
|
|
|
char *syck_yaml2byte( char * );
|
2003-05-09 17:25:50 -04:00
|
|
|
|
2003-05-13 02:34:18 -04:00
|
|
|
/*
|
|
|
|
* Allocation prototypes
|
|
|
|
*/
|
2007-03-18 23:58:57 -04:00
|
|
|
SyckNode *syck_alloc_map(void);
|
|
|
|
SyckNode *syck_alloc_seq(void);
|
|
|
|
SyckNode *syck_alloc_str(void);
|
2003-05-09 17:25:50 -04:00
|
|
|
void syck_free_node( SyckNode * );
|
|
|
|
void syck_free_members( SyckNode * );
|
* sprintf.c (rb_str_format): allow %c to print one character
string (e.g. ?x).
* lib/tempfile.rb (Tempfile::make_tmpname): put dot between
basename and pid. [ruby-talk:196272]
* parse.y (do_block): remove -> style block.
* parse.y (parser_yylex): remove tLAMBDA_ARG.
* eval.c (rb_call0): binding for the return event hook should have
consistent scope. [ruby-core:07928]
* eval.c (proc_invoke): return behavior should depend whether it
is surrounded by a lambda or a mere block.
* eval.c (formal_assign): handles post splat arguments.
* eval.c (rb_call0): ditto.
* st.c (strhash): use FNV-1a hash.
* parse.y (parser_yylex): removed experimental ';;' terminator.
* eval.c (rb_node_arity): should be aware of post splat arguments.
* eval.c (rb_proc_arity): ditto.
* parse.y (f_args): syntax rule enhanced to support arguments
after the splat.
* parse.y (block_param): ditto for block parameters.
* parse.y (f_post_arg): mandatory formal arguments after the splat
argument.
* parse.y (new_args_gen): generate nodes for mandatory formal
arguments after the splat argument.
* eval.c (rb_eval): dispatch mandatory formal arguments after the
splat argument.
* parse.y (args): allow more than one splat in the argument list.
* parse.y (method_call): allow aref [] to accept all kind of
method argument, including assocs, splat, and block argument.
* eval.c (SETUP_ARGS0): prepare block argument as well.
* lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931]
* eval.c (error_line): print receivers true/false/nil specially.
* eval.c (rb_proc_yield): handles parameters in yield semantics.
* eval.c (nil_yield): gives LocalJumpError to denote no block
error.
* io.c (rb_io_getc): now takes one-character string.
* string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo
hashing algorithm.
* string.c (rb_str_aref): str[0] now returns 1 character string,
instead of a fixnum. [Ruby2]
* parse.y (parser_yylex): ?c now returns 1 character string,
instead of a fixnum. [Ruby2]
* string.c (rb_str_aset): no longer support fixnum insertion.
* eval.c (umethod_bind): should not update original class.
[ruby-dev:28636]
* eval.c (ev_const_get): should support constant access from
within instance_eval(). [ruby-dev:28327]
* time.c (time_timeval): should round for usec floating
number. [ruby-core:07896]
* time.c (time_add): ditto.
* dir.c (sys_warning): should not call a vararg function
rb_sys_warning() indirectly. [ruby-core:07886]
* numeric.c (flo_divmod): the first element of Float#divmod should
be an integer. [ruby-dev:28589]
* test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder.
* re.c (rb_reg_initialize): should not allow modifying literal
regexps. frozen check moved from rb_reg_initialize_m as well.
* re.c (rb_reg_initialize): should not modify untainted objects in
safe levels higher than 3.
* re.c (rb_memcmp): type change from char* to const void*.
* dir.c (dir_close): should not close untainted dir stream.
* dir.c (GetDIR): add tainted/frozen check for each dir operation.
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
typo fixed. a patch from Florian Gross <florg at florg.net>.
* eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from
event_hooks. no guarantee for arbitrary hook deletion.
[ruby-dev:28632]
* util.c (ruby_strtod): differ addition to minimize error.
[ruby-dev:28619]
* util.c (ruby_strtod): should not raise ERANGE when the input
string does not have any digits. [ruby-dev:28629]
* eval.c (proc_invoke): should restore old ruby_frame->block.
thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833]
also fix [ruby-dev:28614] as well.
* signal.c (trap): sig should be less then NSIG. Coverity found
this bug. a patch from Kevin Tew <tewk at tewk.com>.
[ruby-core:07823]
* math.c (math_log2): add new method inspired by
[ruby-talk:191237].
* math.c (math_log): add optional base argument to Math::log().
[ruby-talk:191308]
* ext/syck/emitter.c (syck_scan_scalar): avoid accessing
uninitialized array element. a patch from Pat Eyler
<rubypate at gmail.com>. [ruby-core:07809]
* array.c (rb_ary_fill): initialize local variables first. a
patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810]
* ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free
type_tag. a patch from Pat Eyler <rubypate at gmail.com>.
[ruby-core:07808]
* ext/socket/socket.c (make_hostent_internal): accept ai_family
check from Sam Roberts <sroberts at uniserve.com>.
[ruby-core:07691]
* util.c (ruby_strtod): should not cut off 18 digits for no
reason. [ruby-core:07796]
* array.c (rb_ary_fill): internalize local variable "beg" to
pacify Coverity. [ruby-core:07770]
* pack.c (pack_unpack): now supports CRLF newlines. a patch from
<tommy at tmtm.org>. [ruby-dev:28601]
* applied code clean-up patch from Stefan Huehner
<stefan at huehner.org>. [ruby-core:07764]
* lib/jcode.rb (String::tr_s): should have translated non
squeezing character sequence (i.e. a character) as well. thanks
to Hiroshi Ichikawa <gimite at gimite.ddo.jp> [ruby-list:42090]
* ext/socket/socket.c: document update patch from Sam Roberts
<sroberts at uniserve.com>. [ruby-core:07701]
* lib/mathn.rb (Integer): need not to remove gcd2. a patch from
NARUSE, Yui <naruse at airemix.com>. [ruby-dev:28570]
* parse.y (arg): too much NEW_LIST()
* eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen.
* eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.
[ruby-dev:28585]
* parse.y (arg): use NODE_ARGSCAT for placeholder.
* lib/getoptlong.rb (GetoptLong::get): RDoc update patch from
mathew <meta at pobox.com>. [ruby-core:07738]
* variable.c (rb_const_set): raise error when no target klass is
supplied. [ruby-dev:28582]
* prec.c (prec_prec_f): documentation patch from
<gerardo.santana at gmail.com>. [ruby-core:07689]
* bignum.c (rb_big_pow): second operand may be too big even if
it's a Fixnum. [ruby-talk:187984]
* README.EXT: update symbol description. [ruby-talk:188104]
* COPYING: explicitly note GPLv2. [ruby-talk:187922]
* parse.y: remove some obsolete syntax rules (unparenthesized
method calls in argument list).
* eval.c (rb_call0): insecure calling should be checked for non
NODE_SCOPE method invocations too.
* eval.c (rb_alias): should preserve the current safe level as
well as method definition.
* process.c (rb_f_sleep): remove RDoc description about SIGALRM
which is not valid on the current implementation. [ruby-dev:28464]
Thu Mar 23 21:40:47 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* eval.c (method_missing): should support argument splat in
super. a bug in combination of super, splat and
method_missing. [ruby-talk:185438]
* configure.in: Solaris SunPro compiler -rapth patch from
<kuwa at labs.fujitsu.com>. [ruby-dev:28443]
* configure.in: remove enable_rpath=no for Solaris.
[ruby-dev:28440]
* ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior
of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby
String object.
* ruby.1: a clarification patch from David Lutterkort
<dlutter at redhat.com>. [ruby-core:7508]
* lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems
directories. a patch from Eric Hodel <drbrain at segment7.net>.
[ruby-core:07423]
* eval.c (rb_clear_cache_by_class): clearing wrong cache.
* ext/extmk.rb: use :remove_destination to install extension libraries
to avoid SEGV. [ruby-dev:28417]
* eval.c (rb_thread_fd_writable): should not re-schedule output
from KILLED thread (must be error printing).
* array.c (rb_ary_flatten_bang): allow specifying recursion
level. [ruby-talk:182170]
* array.c (rb_ary_flatten): ditto.
* gc.c (add_heap): a heap_slots may overflow. a patch from Stefan
Weil <weil at mail.berlios.de>.
* eval.c (rb_call): use separate cache for fcall/vcall
invocation.
* eval.c (rb_eval): NODE_FCALL, NODE_VCALL can call local
functions.
* eval.c (rb_mod_local): a new method to specify newly added
visibility "local".
* eval.c (search_method): search for local methods which are
visible only from the current class.
* class.c (rb_class_local_methods): a method to list local methods.
* object.c (Init_Object): add BasicObject class as a top level
BlankSlate class.
* ruby.h (SYM2ID): should not cast to signed long.
[ruby-core:07414]
* class.c (rb_include_module): allow module duplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-09 17:20:17 -04:00
|
|
|
SyckNode *syck_new_str( const char *, enum scalar_style );
|
|
|
|
SyckNode *syck_new_str2( const char *, long, enum scalar_style );
|
2005-09-12 23:58:33 -04:00
|
|
|
void syck_replace_str( SyckNode *, char *, enum scalar_style );
|
|
|
|
void syck_replace_str2( SyckNode *, char *, long, enum scalar_style );
|
2003-05-09 17:25:50 -04:00
|
|
|
void syck_str_blow_away_commas( SyckNode * );
|
|
|
|
char *syck_str_read( SyckNode * );
|
|
|
|
SyckNode *syck_new_map( SYMID, SYMID );
|
2005-09-12 23:58:33 -04:00
|
|
|
void syck_map_empty( SyckNode * );
|
2003-05-09 17:25:50 -04:00
|
|
|
void syck_map_add( SyckNode *, SYMID, SYMID );
|
|
|
|
SYMID syck_map_read( SyckNode *, enum map_part, long );
|
2003-05-14 16:01:09 -04:00
|
|
|
void syck_map_assign( SyckNode *, enum map_part, long, SYMID );
|
2003-05-15 17:46:47 -04:00
|
|
|
long syck_map_count( SyckNode * );
|
2003-05-09 17:25:50 -04:00
|
|
|
void syck_map_update( SyckNode *, SyckNode * );
|
|
|
|
SyckNode *syck_new_seq( SYMID );
|
2005-09-12 23:58:33 -04:00
|
|
|
void syck_seq_empty( SyckNode * );
|
2003-05-09 17:25:50 -04:00
|
|
|
void syck_seq_add( SyckNode *, SYMID );
|
2005-09-12 23:58:33 -04:00
|
|
|
void syck_seq_assign( SyckNode *, long, SYMID );
|
2003-05-09 17:25:50 -04:00
|
|
|
SYMID syck_seq_read( SyckNode *, long );
|
|
|
|
long syck_seq_count( SyckNode * );
|
2003-05-15 17:46:47 -04:00
|
|
|
|
2003-07-28 15:27:42 -04:00
|
|
|
/*
|
|
|
|
* Lexer prototypes
|
|
|
|
*/
|
2003-10-14 19:15:19 -04:00
|
|
|
void syckerror( char * );
|
2005-10-13 10:30:54 -04:00
|
|
|
int syckparse( void * );
|
|
|
|
union YYSTYPE;
|
|
|
|
int sycklex( union YYSTYPE *, SyckParser * );
|
2003-07-28 15:27:42 -04:00
|
|
|
|
2003-05-09 17:25:50 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
} /* extern "C" { */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* ifndef SYCK_H */
|