Re: libcurl - help needed
- Posted by jmduro Oct 28, 2016
- 3376 views
I will check the changes to adopt the style allowing to generate documentation.
It may be a little early to pulish documentation because it is still a beta release. I'm improving it every day and it misses a real complete example. There are only small chunks of code today.
For example, yesterday I noticed that CURLOPT_ERRORBUFFER could not be managed as other (char *)-based options. It has to be managed apart:
elsif option = CURLOPT_ERRORBUFFER then -- char * code = c_func(xcurl_easy_setopt, {curl, option, param})
I also considered there was no reason to keep curl_easy_setopt as a function. I added this at the end of the procedure:
if (code != CURLE_OK) then o = findID(SETOPT_OPTIONS, option, 1) if atom(o) then warnError(sprintf("Unknown option '%d'", {option}), 1) else warnError(sprintf("Failed to set option '%s'", {o[2]}), 1) end if end if
Last, I intend to use the same method I used in my Low Level Windows Library to declare functions and structures and automate controls.
I think that documentation has to wait for code to be stable enough to ensure people will not use it but for testing.
Regards
Jean-Marc