yaml.patch 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. Index: syck-0.55/ext/php/phpext.c
  2. --- syck-0.55/ext/php/phpext.c.orig 2003-09-24 16:36:09 +0200
  3. +++ syck-0.55/ext/php/phpext.c 2006-11-26 18:01:20 +0100
  4. @@ -177,6 +177,8 @@
  5. unsigned int i;
  6. MAKE_STD_ZVAL(o);
  7. + TSRMLS_FETCH();
  8. +
  9. switch (n->kind)
  10. {
  11. case syck_str_kind:
  12. Index: syck-0.55/ext/python/ydump.py
  13. --- syck-0.55/ext/python/ydump.py.orig 2004-03-01 19:36:47 +0100
  14. +++ syck-0.55/ext/python/ydump.py 2006-11-26 18:01:20 +0100
  15. @@ -358,6 +358,11 @@
  16. return 1
  17. if data[0] == '"':
  18. return 1
  19. + # patch from debian bug #286173: Ken Harris <ken@bitpoetry.com>
  20. + if data in ['yes','no','true','false','on','off',
  21. + 'YES','NO','TRUE','FALSE','ON','OFF',
  22. + 'Yes','No','True','False','On','Off']:
  23. + return 1
  24. return (re.search(r'[-:]', data) or re.search(r'(\d\.){2}', data))
  25. def hasSpecialChar(data):
  26. Index: syck-0.55/lib/bytecode.c
  27. --- syck-0.55/lib/bytecode.c.orig 2005-04-13 08:27:54 +0200
  28. +++ syck-0.55/lib/bytecode.c 2006-11-26 18:01:20 +0100
  29. @@ -8,6 +8,10 @@
  30. *
  31. * Copyright (C) 2003 why the lucky stiff
  32. */
  33. +
  34. +#include <stdlib.h>
  35. +#include <string.h>
  36. +
  37. #include "syck.h"
  38. #include "gram.h"
  39. Index: syck-0.55/lib/handler.c
  40. --- syck-0.55/lib/handler.c.orig 2005-01-08 22:44:00 +0100
  41. +++ syck-0.55/lib/handler.c 2006-11-26 18:01:20 +0100
  42. @@ -7,6 +7,9 @@
  43. * Copyright (C) 2003 why the lucky stiff
  44. */
  45. +#include <stdlib.h>
  46. +#include <string.h>
  47. +
  48. #include "syck.h"
  49. SYMID
  50. Index: syck-0.55/lib/implicit.c
  51. --- syck-0.55/lib/implicit.c.orig 2005-04-06 19:18:59 +0200
  52. +++ syck-0.55/lib/implicit.c 2006-11-26 18:01:20 +0100
  53. @@ -9,6 +9,7 @@
  54. * Copyright (C) 2003 why the lucky stiff
  55. */
  56. +#include <stdlib.h>
  57. #include "syck.h"
  58. #define YYCTYPE char
  59. Index: syck-0.55/lib/node.c
  60. --- syck-0.55/lib/node.c.orig 2005-04-13 08:27:54 +0200
  61. +++ syck-0.55/lib/node.c 2006-11-26 18:01:20 +0100
  62. @@ -7,6 +7,9 @@
  63. * Copyright (C) 2003 why the lucky stiff
  64. */
  65. +#include <stdlib.h>
  66. +#include <string.h>
  67. +
  68. #include "syck.h"
  69. /*
  70. Index: syck-0.55/lib/syck.c
  71. --- syck-0.55/lib/syck.c.orig 2005-01-01 03:06:25 +0100
  72. +++ syck-0.55/lib/syck.c 2006-11-26 18:01:20 +0100
  73. @@ -7,6 +7,7 @@
  74. * Copyright (C) 2003 why the lucky stiff
  75. */
  76. #include <stdio.h>
  77. +#include <stdlib.h>
  78. #include <string.h>
  79. #include "syck.h"
  80. @@ -67,12 +68,13 @@
  81. ASSERT( str != NULL );
  82. beg = str->ptr;
  83. +
  84. if ( max_size >= 0 )
  85. {
  86. max_size -= skip;
  87. - if ( max_size <= 0 ) max_size = 0;
  88. - else str->ptr += max_size;
  89. + if ( max_size < 0 ) max_size = 0;
  90. + str->ptr += max_size;
  91. if ( str->ptr > str->end )
  92. {
  93. str->ptr = str->end;
  94. Index: syck-0.55/lib/syck.h
  95. --- syck-0.55/lib/syck.h.orig 2005-04-13 08:27:54 +0200
  96. +++ syck-0.55/lib/syck.h 2006-11-26 18:01:20 +0100
  97. @@ -17,6 +17,8 @@
  98. #define YAML_DOMAIN "yaml.org,2002"
  99. #include <stdio.h>
  100. +#include <stdlib.h>
  101. +#include <string.h>
  102. #include <ctype.h>
  103. #ifdef HAVE_ST_H
  104. #include <st.h>
  105. Index: syck-0.55/lib/token.c
  106. --- syck-0.55/lib/token.c.orig 2005-04-13 08:27:54 +0200
  107. +++ syck-0.55/lib/token.c 2006-11-26 18:01:20 +0100
  108. @@ -8,6 +8,8 @@
  109. *
  110. * Copyright (C) 2003 why the lucky stiff
  111. */
  112. +#include <stdlib.h>
  113. +#include <string.h>
  114. #include "syck.h"
  115. #include "gram.h"
  116. Index: syck-0.55/lib/yaml2byte.c
  117. --- syck-0.55/lib/yaml2byte.c.orig 2004-08-02 19:32:35 +0200
  118. +++ syck-0.55/lib/yaml2byte.c 2006-11-26 18:02:03 +0100
  119. @@ -9,6 +9,8 @@
  120. * WARNING WARNING WARNING --- THIS IS *NOT JUST* PLAYING
  121. * ANYMORE! -- WHY HAS EMBRACED THIS AS THE REAL THING!
  122. */
  123. +#include <stdlib.h>
  124. +#include <string.h>
  125. #include <syck.h>
  126. #include <assert.h>
  127. #define YAMLBYTE_UTF8