| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- Index: syck-0.55/ext/php/phpext.c
- --- syck-0.55/ext/php/phpext.c.orig 2003-09-24 16:36:09 +0200
- +++ syck-0.55/ext/php/phpext.c 2006-11-26 18:01:20 +0100
- @@ -177,6 +177,8 @@
- unsigned int i;
-
- MAKE_STD_ZVAL(o);
- + TSRMLS_FETCH();
- +
- switch (n->kind)
- {
- case syck_str_kind:
- Index: syck-0.55/ext/python/ydump.py
- --- syck-0.55/ext/python/ydump.py.orig 2004-03-01 19:36:47 +0100
- +++ syck-0.55/ext/python/ydump.py 2006-11-26 18:01:20 +0100
- @@ -358,6 +358,11 @@
- return 1
- if data[0] == '"':
- return 1
- + # patch from debian bug #286173: Ken Harris <ken@bitpoetry.com>
- + if data in ['yes','no','true','false','on','off',
- + 'YES','NO','TRUE','FALSE','ON','OFF',
- + 'Yes','No','True','False','On','Off']:
- + return 1
- return (re.search(r'[-:]', data) or re.search(r'(\d\.){2}', data))
-
- def hasSpecialChar(data):
- Index: syck-0.55/lib/bytecode.c
- --- syck-0.55/lib/bytecode.c.orig 2005-04-13 08:27:54 +0200
- +++ syck-0.55/lib/bytecode.c 2006-11-26 18:01:20 +0100
- @@ -8,6 +8,10 @@
- *
- * Copyright (C) 2003 why the lucky stiff
- */
- +
- +#include <stdlib.h>
- +#include <string.h>
- +
- #include "syck.h"
- #include "gram.h"
-
- Index: syck-0.55/lib/handler.c
- --- syck-0.55/lib/handler.c.orig 2005-01-08 22:44:00 +0100
- +++ syck-0.55/lib/handler.c 2006-11-26 18:01:20 +0100
- @@ -7,6 +7,9 @@
- * Copyright (C) 2003 why the lucky stiff
- */
-
- +#include <stdlib.h>
- +#include <string.h>
- +
- #include "syck.h"
-
- SYMID
- Index: syck-0.55/lib/implicit.c
- --- syck-0.55/lib/implicit.c.orig 2005-04-06 19:18:59 +0200
- +++ syck-0.55/lib/implicit.c 2006-11-26 18:01:20 +0100
- @@ -9,6 +9,7 @@
- * Copyright (C) 2003 why the lucky stiff
- */
-
- +#include <stdlib.h>
- #include "syck.h"
-
- #define YYCTYPE char
- Index: syck-0.55/lib/node.c
- --- syck-0.55/lib/node.c.orig 2005-04-13 08:27:54 +0200
- +++ syck-0.55/lib/node.c 2006-11-26 18:01:20 +0100
- @@ -7,6 +7,9 @@
- * Copyright (C) 2003 why the lucky stiff
- */
-
- +#include <stdlib.h>
- +#include <string.h>
- +
- #include "syck.h"
-
- /*
- Index: syck-0.55/lib/syck.c
- --- syck-0.55/lib/syck.c.orig 2005-01-01 03:06:25 +0100
- +++ syck-0.55/lib/syck.c 2006-11-26 18:01:20 +0100
- @@ -7,6 +7,7 @@
- * Copyright (C) 2003 why the lucky stiff
- */
- #include <stdio.h>
- +#include <stdlib.h>
- #include <string.h>
-
- #include "syck.h"
- @@ -67,12 +68,13 @@
-
- ASSERT( str != NULL );
- beg = str->ptr;
- +
- if ( max_size >= 0 )
- {
- max_size -= skip;
- - if ( max_size <= 0 ) max_size = 0;
- - else str->ptr += max_size;
- + if ( max_size < 0 ) max_size = 0;
-
- + str->ptr += max_size;
- if ( str->ptr > str->end )
- {
- str->ptr = str->end;
- Index: syck-0.55/lib/syck.h
- --- syck-0.55/lib/syck.h.orig 2005-04-13 08:27:54 +0200
- +++ syck-0.55/lib/syck.h 2006-11-26 18:01:20 +0100
- @@ -17,6 +17,8 @@
- #define YAML_DOMAIN "yaml.org,2002"
-
- #include <stdio.h>
- +#include <stdlib.h>
- +#include <string.h>
- #include <ctype.h>
- #ifdef HAVE_ST_H
- #include <st.h>
- Index: syck-0.55/lib/token.c
- --- syck-0.55/lib/token.c.orig 2005-04-13 08:27:54 +0200
- +++ syck-0.55/lib/token.c 2006-11-26 18:01:20 +0100
- @@ -8,6 +8,8 @@
- *
- * Copyright (C) 2003 why the lucky stiff
- */
- +#include <stdlib.h>
- +#include <string.h>
- #include "syck.h"
- #include "gram.h"
-
- Index: syck-0.55/lib/yaml2byte.c
- --- syck-0.55/lib/yaml2byte.c.orig 2004-08-02 19:32:35 +0200
- +++ syck-0.55/lib/yaml2byte.c 2006-11-26 18:02:03 +0100
- @@ -9,6 +9,8 @@
- * WARNING WARNING WARNING --- THIS IS *NOT JUST* PLAYING
- * ANYMORE! -- WHY HAS EMBRACED THIS AS THE REAL THING!
- */
- +#include <stdlib.h>
- +#include <string.h>
- #include <syck.h>
- #include <assert.h>
- #define YAMLBYTE_UTF8
|