[svn:parrot] r39334 - trunk/runtime/parrot/library

barney at svn.parrot.org barney at svn.parrot.org
Tue Jun 2 14:51:57 UTC 2009


Author: barney
Date: Tue Jun  2 14:51:55 2009
New Revision: 39334
URL: https://trac.parrot.org/parrot/changeset/39334

Log:
[doc] The sub init() in nowadays in the namespace ['PCRE']

Modified:
   trunk/runtime/parrot/library/pcre.pir

Modified: trunk/runtime/parrot/library/pcre.pir
==============================================================================
--- trunk/runtime/parrot/library/pcre.pir	Tue Jun  2 10:47:05 2009	(r39333)
+++ trunk/runtime/parrot/library/pcre.pir	Tue Jun  2 14:51:55 2009	(r39334)
@@ -8,7 +8,10 @@
 =head1 SYNOPSIS
 
     load_bytecode 'pcre.pbc'
-    lib = pcre_init()
+
+    .local pmc func, lib
+    func = get_hll_global ['PCRE'], 'init'
+    lib = func()
 
     func = get_hll_global ['PCRE'], 'compile'
     ( regex, error, errptr )= func( pat, options )


More information about the parrot-commits mailing list