diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2000-10-31 11:30:11 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2000-10-31 11:30:11 +0000 |
commit | c420d653ee4f25ab48d1111ed8a80d82e9f47a3d (patch) | |
tree | 3cc0369f848bee8baa29e4560dffb449592553e6 /ext/skeleton | |
parent | f589a3b587419c3fede092629a4b3bc65b20f505 (diff) | |
download | php-git-c420d653ee4f25ab48d1111ed8a80d82e9f47a3d.tar.gz |
support for short comments was added to ext_skel proto files
theese will be used in proto comments in the source
and as <refpurpose> information in the XML docs
Diffstat (limited to 'ext/skeleton')
-rwxr-xr-x | ext/skeleton/create_stubs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/skeleton/create_stubs b/ext/skeleton/create_stubs index e302fe31be..f1af21fa1a 100755 --- a/ext/skeleton/create_stubs +++ b/ext/skeleton/create_stubs @@ -147,6 +147,11 @@ BEGIN { } } + if (x = gobble("\\)")) { + sub(/^[ \t]+/, "", line) + fcomments[num_funcs] = line + } + funcs[num_funcs] = func_name types[num_funcs] = func_type maxargs[num_funcs] = args_max @@ -171,7 +176,7 @@ END { xmlstr = " <refentry id=\"function." refid "\">\n" \ " <refnamediv>\n" \ " <refname>" funcs[i] "</refname>\n" \ - " <refpurpose></refpurpose>\n" \ + " <refpurpose>" fcomments[i] "</refpurpose>\n" \ " </refnamediv>\n" \ " <refsect1>\n" \ " <title>Description</title>\n" \ @@ -261,7 +266,7 @@ END { } } - proto = proto closeopts ")\n */\nPHP_FUNCTION(" funcs[i] ")\n{" + proto = proto closeopts ")\n " fcomments[i] " */\nPHP_FUNCTION(" funcs[i] ")\n{" if (maxargs[i]) { zvals = zvals ";" fetchargs = fetchargs ") == FAILURE)" closefetch "{\n\t\tWRONG_PARAM_COUNT;\n\t}\n" |