From: Hartmut Holzgraefe Date: Sat, 15 Dec 2001 14:19:13 +0000 (+0000) Subject: improved xml generatioimproved xml generation X-Git-Tag: PRE_ISSET_PATCH~542 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43d0919298131992c239a518187ea5aa4a00003c;p=php improved xml generatioimproved xml generation --- diff --git a/ext/skeleton/create_stubs b/ext/skeleton/create_stubs index f5eb3e18ae..2bad4d14a4 100755 --- a/ext/skeleton/create_stubs +++ b/ext/skeleton/create_stubs @@ -20,7 +20,7 @@ function convert(i, j, t) if (type == "int" || type == "long") { longs = longs "\tlong " name ";\n" - } else if (type == "bool") { + } else if (type == "bool" || (type == "boolean") { bools = bools "\tzend_bool " name ";\n" } else if (type == "double" || type == "float") { doubles = doubles "\tdouble " name ";\n" @@ -29,7 +29,7 @@ function convert(i, j, t) ints = ints "\tint " name "_len;\n" } else if (type == "array" || type == "object" || type == "mixed") { zvals = zvals "\tzval *" name " = NULL;\n" - } else if (type == "resource") { + } else if (type == "resource" || type == "handle") { zvals = zvals "\tzval *" name " = NULL;\n" resources = resources "\tif (" name ") {\n" \ "\t\tZEND_FETCH_RESOURCE(???, ???, " name ", " name "_id, \"???\", ???_rsrc_id);\n\t}\n" @@ -48,8 +48,8 @@ function comment(s) BEGIN { name = "[_A-Za-z][_A-Za-z0-9]*" - type = "int|long|double|float|string|bool|array|object|resource|mixed|void" - spec = "l|l|d|d|s|b|a|o|r|z|" + type = "int|long|double|float|string|bool|boolean|array|object|resource|handle|mixed|void" + spec = "l|l|d|d|s|b|b|a|o|r|r|z|" num_funcs = 0 # create a map from type name to the spec @@ -66,13 +66,16 @@ BEGIN { } - xmlhead = " \n" \ + xmlhead = "\n" \ + "\n" \ + " \n" \ " functions\n" \ " \n\n" \ " \n" \ - " \n" \ - " \n" \ - " \n\n"; + " &warn.experimental;\n" \ + " \n" \ + " \n" \ + " \n\n"; xmlfoot = " \n\n" \ "