cURL / Mailing Lists / curl-library / Single Mail

curl-library

[ curl-Bugs-893163 ] portability changes to curlgtk.c sample

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 08 Feb 2004 18:15:29 -0800

Bugs item #893163, was opened at 2004-02-08 21:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=893163&group_id=976

Category: libcurl
Group: portability problem
Status: Open
Resolution: None
Priority: 5
Submitted By: Ken Rastatter (krastatter)
Assigned to: Daniel Stenberg (bagder)
Summary: portability changes to curlgtk.c sample

Initial Comment:
Attached is a diff file for the curlgtk.c sample included
with libcurl 7.11.0. These minor changes remove
portability issues with the this example and allow it to run
on Win32. Specifically:

* The use of pthread_create() has been replaced by
g_thread_create(). This removes the dependency on the
pthreads library. Since this is an example using GTK+,
g_thread_create() is available as it is a part of glibc.

* The CURLOPT_FILE option is now referred to by its
"newer name" CURLOPT_WRITEDATA.

* The use of CURLOPT_WRITEFUNCTION has been added.
 As described in the docs, this avoids the crashes when
using a DLL under Win32.

* The output file has been renamed from "/tmp/test.curl"
to "test.curl". It's unlikely that there is a /tmp when in
Win32 and other examples in libcurl write their output files
to the working directory.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=893163&group_id=976
Received on 2004-02-09