Show
Ignore:
Timestamp:
05/25/05 07:36:10 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
5385
Message:

* only look up AUTOLOAD when there is possibly a hit for AUTOLOAD.
* therefore DBI.connect and Digest::MD5.new no longer refers to

the builtin prim connect and new, but rather to their Perl 5
space methods.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Embed/Perl5.hs

    r3863 r3867  
    3434callPerl5 _ = constFail 
    3535 
     36canPerl5 :: PerlSV -> String -> IO Bool 
     37canPerl5 _ = constFail 
     38 
    3639#else 
    3740 
     
    6871foreign import ccall "perl5.h perl5_call" 
    6972    perl5_call :: CString -> CInt -> Ptr PerlSV -> IO PerlSV 
     73foreign import ccall "perl5.h perl5_can" 
     74    perl5_can :: PerlSV -> CString -> IO Bool 
    7075foreign import ccall "perl5.h perl5_init" 
    7176    perl5_init :: CInt -> Ptr CString -> IO PerlInterpreter 
     
    9297            perl5_call cstr (toEnum $ length args) argv 
    9398 
     99canPerl5 :: PerlSV -> String -> IO Bool 
     100canPerl5 sv meth = withCString meth $ \cstr -> perl5_can sv cstr 
     101 
    94102evalPerl5 :: String -> IO PerlSV 
    95103evalPerl5 str = do