Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Net::Curl exports all stuff that examples/simple.p6 needs to run :)

  • Loading branch information...
commit 3e0630dffb9056cf5297419573618106a83eb35f 1 parent c59f4b0
Ahmad M. Zawawi authored November 17, 2012

Showing 1 changed file with 14 additions and 7 deletions. Show diff stats Hide diff stats

  1. 21  lib/Net/Curl.pm6
21  lib/Net/Curl.pm6
@@ -7,24 +7,31 @@ use NativeCall;
7 7
 
8 8
 constant LIB = 'libcurl.so';
9 9
 
10  
-constant CURLOPT_URL = 10002;
11  
-constant CURLE_OK    = 0;
  10
+constant CURLOPT_URL is export = 10002;
  11
+constant CURLE_OK    is export = 0;
12 12
 
13 13
 
14 14
 sub curl_easy_init() 
15 15
 	returns OpaquePointer
16  
-	is native(LIB) { ... };
  16
+	is native(LIB)
  17
+	is export { ... };
17 18
 
18 19
 sub curl_easy_cleanup(OpaquePointer)
19  
-	is native(LIB) { ... };
  20
+	is native(LIB)
  21
+	is export { ... };
20 22
 
21 23
 sub curl_easy_setopt(OpaquePointer, int, Str)
22  
-	is native(LIB) { ... };
  24
+	is native(LIB)
  25
+	is export { ... };
23 26
 
24 27
 sub curl_easy_perform(OpaquePointer)
25  
-	returns int is native(LIB) { ... };
  28
+	returns int
  29
+	is native(LIB) 
  30
+	is export { ... };
26 31
 
27 32
 sub curl_easy_strerror(int)
28  
-	returns Str is native(LIB) { ... };
  33
+	returns Str
  34
+	is native(LIB) 
  35
+	is export { ... };
29 36
 
30 37
 

0 notes on commit 3e0630d

Please sign in to comment.
Something went wrong with that request. Please try again.