[svn:mod_parrot] r184 - mod_parrot/branches/autogen/build/lib/Generator

[email protected]
Newsgroups perl.cvs.mod_parrot
Message-ID <[email protected]>
Author: jhorwitz
Date: Mon Aug  1 12:28:25 2005
New Revision: 184

Modified:
   mod_parrot/branches/autogen/build/lib/Generator/ApacheRequestRec.pm
Log:
use new calling conventions to detect optional values instead of I1


Modified: mod_parrot/branches/autogen/build/lib/Generator/ApacheRequestRec.pm
==============================================================================
--- mod_parrot/branches/autogen/build/lib/Generator/ApacheRequestRec.pm	(original)
+++ mod_parrot/branches/autogen/build/lib/Generator/ApacheRequestRec.pm	Mon Aug  1 12:28:25 2005
@@ -127,16 +127,17 @@ sub get_imc_int_template
 
     my $template = <<'END'
 .sub %%NAME%% method
-    .param int data
+    .param int data :optional
+    .param int update_r :opt_count
     .local pmc r
     .local int offset
     .local pmc request_rec_%%NAME%%
     .local int %%NAME%%
-    .local int update_r
 
+    # XXX - for old calling conventions
     # whether or not we should update r with the new value.
-    if I1 == 0 goto done
-    update_r = 1
+    # if I1 == 0 goto done
+    # update_r = 1
 
 done:
     classoffset offset, self, 'Apache::RequestRec'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.