diff options
author | Andrei Zmievski <andrei@php.net> | 2001-08-11 03:24:23 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2001-08-11 03:24:23 +0000 |
commit | 4e857ef2d3546a3d22ac278809789225712917e9 (patch) | |
tree | 926b109760f350954508018b2dc9b988548301c8 /ext/ext_skel | |
parent | dc2e12253f09a5b274e6e690bf22dee990455dd7 (diff) | |
download | php-git-4e857ef2d3546a3d22ac278809789225712917e9.tar.gz |
Changed ext_skel to use zend_parse_parameters() for argument parsing in
the generated functions. This cuts down on code a lot.
The point before this change was tagged BEFORE_PARAM_PARSING_CHANGE.
Diffstat (limited to 'ext/ext_skel')
-rwxr-xr-x | ext/ext_skel | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/ext/ext_skel b/ext/ext_skel index c9f1ddf7e5..18c32daf41 100755 --- a/ext/ext_skel +++ b/ext/ext_skel @@ -7,7 +7,7 @@ givup() { usage() { echo "$0 --extname=module [--proto=file] [--stubs=file] [--xml[=file]]" -echo " [--full-xml] [--no-help] [--assign-params [--string-lens]]" +echo " [--full-xml] [--no-help]" echo "" echo " --extname=module module is the name of your extension" echo " --proto=file file contains prototypes of functions to create" @@ -17,8 +17,6 @@ echo " --full-xml generate xml documentation for a self-contained exten echo " (not yet implemented)" echo " --no-help don't try to be nice and create comments in the code" echo " and helper functions to test if the module compiled" -echo " --assign-params" -echo " --string-lens" exit 1 } @@ -56,12 +54,6 @@ while test $# -gt 0; do --no-help) no_help="yes" ;; - --assign-params) - assign_params="yes" - ;; - --string-lens) - string_lens="yes" - ;; *) usage ;; @@ -69,10 +61,6 @@ while test $# -gt 0; do shift done -if test -z "$assign_params" && test -n "$string_lens"; then - usage -fi - if test -d "$extname" ; then givup "Directory $extname already exists." fi @@ -96,7 +84,7 @@ if test -z "$stubs"; then fi if test -n "$proto"; then - cat $proto | awk -v extname=$extname -v stubs=$stubs -v stubfile=$stubfile -v xml=$xml -v full_xml=$full_xml -v i_know_what_to_do_shut_up_i_dont_need_your_help_mode=$no_help -v assign_params=$assign_params -v string_lens=$string_lens -f ./skeleton/create_stubs + cat $proto | awk -v extname=$extname -v stubs=$stubs -v stubfile=$stubfile -v xml=$xml -v full_xml=$full_xml -v i_know_what_to_do_shut_up_i_dont_need_your_help_mode=$no_help -f ./skeleton/create_stubs fi if test -z "$stubs"; then |