Minor tweaks to the IDL

While rewriting gen_ext_hhvm in C++ I discovered these little
anomalies: the "return" field of a function has to exist, and has to be
a dictionary.

I'm also removing the specific class name of hphp_create_continuation as
per the discussion, and removing the support for parsing
types like that.
Esse commit está contido em:
Owen Yamauchi
2013-04-19 15:28:38 -07:00
commit de Sara Golemon
commit 008387c504
7 arquivos alterados com 23 adições e 9 exclusões
-5
Ver Arquivo
@@ -256,11 +256,6 @@ function EndClass() {
}
function idl_parse_type($t) {
// Named object types
if (!strncmp($t, 'Object:', 7)) {
return substr($t, 7);
}
if (defined($t) && ($v = constant($t)) &&
is_integer($v) && ($v > 0) && ($v < TypeMask)) {
return $v;
+1 -1
Ver Arquivo
@@ -6,7 +6,7 @@
{
"name": "hphp_create_continuation",
"return": {
"type": "Object:Continuation"
"type": "Object"
},
"args": [
{
+3
Ver Arquivo
@@ -1054,6 +1054,9 @@
"HasDocComment",
"HipHopSpecific"
],
"return": {
"type": null
},
"args": [
{
"name": "filename",
+9
Ver Arquivo
@@ -19,6 +19,9 @@
"flags": [
"HasDocComment"
],
"return": {
"type": null
},
"args": [
{
"name": "toEncoding",
@@ -64,6 +67,9 @@
"flags": [
"HasDocComment"
],
"return": {
"type": null
},
"args": [
{
"name": "encoding",
@@ -91,6 +97,9 @@
"flags": [
"HasDocComment"
],
"return": {
"type": null
},
"args": [
{
"name": "encoding",
+6 -2
Ver Arquivo
@@ -893,7 +893,9 @@
"flags": [
"HasDocComment"
],
"return": null,
"return": {
"type": null
},
"args": [
]
},
@@ -903,7 +905,9 @@
"flags": [
"HasDocComment"
],
"return": null,
"return": {
"type": null
},
"args": [
]
},
+3
Ver Arquivo
@@ -473,6 +473,9 @@
"HipHopSpecific",
"NoInjection"
],
"return": {
"type": null
},
"args": [
]
}
+1 -1
Ver Arquivo
@@ -13623,7 +13623,7 @@ const char *g_class_map[] = {
NULL,
NULL,
(const char *)0x10006040, "hphp_create_continuation", "", (const char*)0, (const char*)0,
"/**\n * ( excerpt from\n * http://php.net/manual/en/function.hphp-create-continuation.php )\n *\n *\n * @clsname string\n * @funcname string\n * @origFuncName\n * string\n * @args map\n *\n * @return Continuation\n *\n */",
"/**\n * ( excerpt from\n * http://php.net/manual/en/function.hphp-create-continuation.php )\n *\n *\n * @clsname string\n * @funcname string\n * @origFuncName\n * string\n * @args map\n *\n * @return object\n */",
(const char *)0x40 /* KindOfObject */, (const char *)0x2000, "clsname", "", (const char *)0x14 /* KindOfString */, "", (const char *)0, "", (const char *)0, NULL,
(const char *)0x2000, "funcname", "", (const char *)0x14 /* KindOfString */, "", (const char *)0, "", (const char *)0, NULL,
(const char *)0x2000, "origFuncName", "", (const char *)0x14 /* KindOfString */, "", (const char *)0, "", (const char *)0, NULL,