From 2b7043f670f6efc70ebed5fbf62d83a22c095ffe Mon Sep 17 00:00:00 2001 From: jfiat Date: Mon, 28 Nov 2011 08:21:54 +0000 Subject: [PATCH] Fixed bug#18008: Function {CURL_OPT_CONSTANTS}.libcurl_version has wrong type git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@88050 8089f293-4706-0410-a29e-feb5c42a2edf --- curl_opt_constants.e | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/curl_opt_constants.e b/curl_opt_constants.e index 6bb67d79..7adb0ea8 100644 --- a/curl_opt_constants.e +++ b/curl_opt_constants.e @@ -17,8 +17,14 @@ class feature -- Version - libcurl_version: INTEGER - -- Declared as LIBCURL_VERSION + libcurl_version: STRING + -- String representation of LIBCURL_VERSION + do + create Result.make_from_c (libcurl_version_pointer) + end + + libcurl_version_pointer: POINTER + -- String pointer declared as LIBCURL_VERSION external "C inline use " alias @@ -65,7 +71,7 @@ feature -- Behavior "C inline use " alias "return CURLOPT_HEADER;" - end + end curlopt_noprogress: INTEGER -- Declared as CURLOPT_NOPROGRESS @@ -527,7 +533,7 @@ feature -- Protocol alias "return CURLOPT_RESUME_FROM_LARGE;" end - + curlopt_customrequest: INTEGER -- Declared as CURLOPT_CUSTOMREQUEST external @@ -697,7 +703,7 @@ feature -- Connection alias "return CURLOPT_IPRESOLVE;" end - + curl_ipresolve_whatever: INTEGER -- Declared as CURL_IPRESOLVE_WHATEVER external @@ -940,7 +946,7 @@ feature -- SSL and Security "return CURLOPT_KRBLEVEL;" end -feature -- SSH +feature -- SSH curlopt_ssh_auth_types: INTEGER -- Declared as CURLOPT_SSH_AUTH_TYPES @@ -1087,7 +1093,7 @@ feature -- Status report note library: "cURL: Library of reusable components for Eiffel." - copyright: "Copyright (c) 1984-2010, Eiffel Software and others" + copyright: "Copyright (c) 1984-2011, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software