summaryrefslogtreecommitdiff
path: root/ext/syck
diff options
context:
space:
mode:
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/node.c6
-rw-r--r--ext/syck/rubyext.c8
-rw-r--r--ext/syck/syck.c2
-rw-r--r--ext/syck/syck.h8
4 files changed, 12 insertions, 12 deletions
diff --git a/ext/syck/node.c b/ext/syck/node.c
index cbc2adb..47bce64 100644
--- a/ext/syck/node.c
+++ b/ext/syck/node.c
@@ -46,7 +46,7 @@ syck_free_node( SyckNode *n )
}
SyckNode *
-syck_alloc_map()
+syck_alloc_map(void)
{
SyckNode *n;
struct SyckMap *m;
@@ -65,7 +65,7 @@ syck_alloc_map()
}
SyckNode *
-syck_alloc_seq()
+syck_alloc_seq(void)
{
SyckNode *n;
struct SyckSeq *s;
@@ -83,7 +83,7 @@ syck_alloc_seq()
}
SyckNode *
-syck_alloc_str()
+syck_alloc_str(void)
{
SyckNode *n;
struct SyckStr *s;
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c
index 371ef15..1966a2d 100644
--- a/ext/syck/rubyext.c
+++ b/ext/syck/rubyext.c
@@ -60,10 +60,10 @@ static VALUE oDefaultResolver, oGenericResolver;
/*
* my private collection of numerical oddities.
*/
-static double S_zero() { return 0.0; }
-static double S_one() { return 1.0; }
-static double S_inf() { return S_one() / S_zero(); }
-static double S_nan() { return S_zero() / S_zero(); }
+static double S_zero(void) { return 0.0; }
+static double S_one(void) { return 1.0; }
+static double S_inf(void) { return S_one() / S_zero(); }
+static double S_nan(void) { return S_zero() / S_zero(); }
static VALUE syck_node_transform( VALUE );
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index daf5316..bab7ee5 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -155,7 +155,7 @@ syck_parser_set_root_on_error( SyckParser *p, SYMID roer )
* Allocate the parser
*/
SyckParser *
-syck_new_parser()
+syck_new_parser(void)
{
SyckParser *p;
p = S_ALLOC( SyckParser );
diff --git a/ext/syck/syck.h b/ext/syck/syck.h
index 0833644..8d878a4 100644
--- a/ext/syck/syck.h
+++ b/ext/syck/syck.h
@@ -390,7 +390,7 @@ 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 * );
-SyckParser *syck_new_parser();
+SyckParser *syck_new_parser(void);
void syck_free_parser( SyckParser * );
void syck_parser_set_root_on_error( SyckParser *, SYMID );
void syck_parser_implicit_typing( SyckParser *, int );
@@ -416,9 +416,9 @@ char *syck_yaml2byte( char * );
/*
* Allocation prototypes
*/
-SyckNode *syck_alloc_map();
-SyckNode *syck_alloc_seq();
-SyckNode *syck_alloc_str();
+SyckNode *syck_alloc_map(void);
+SyckNode *syck_alloc_seq(void);
+SyckNode *syck_alloc_str(void);
void syck_free_node( SyckNode * );
void syck_free_members( SyckNode * );
SyckNode *syck_new_str( const char *, enum scalar_style );