Skip to content

Commit de79654

Browse files
committed
wip
1 parent 3d2d59d commit de79654

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

Runtime/Bindings/FFI/curl/curl.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ struct static_curl_exports_table {
355355
CURLcode (*curl_easy_recv)(CURL* handle, void* buffer, size_t buflen, size_t* n);
356356
void (*curl_easy_reset)(CURL* handle);
357357
CURLcode (*curl_easy_send)(CURL* handle, const void* buffer, size_t buflen, size_t* n);
358-
CURLcode (*curl_easy_setopt)(CURL* handle, const struct curl_easyoption* option, va_list);
358+
CURLcode (*curl_easy_setopt)(CURL* handle, const struct curl_easyoption* option, ...);
359359
CURLcode (*curl_easy_ssls_import)(CURL* handle,
360360
const char* session_key,
361361
const unsigned char* shmac,
@@ -443,7 +443,7 @@ function curl.initialize()
443443
return curl.curl_easy_header(self, ...)
444444
end
445445
-- function easy:init(...)
446-
-- return curl.curl_easy_init(self, ...)
446+
-- return curl.curl_easy_init(self, ...)
447447
-- end
448448

449449
function easy:nextheader(...)

Runtime/Bindings/FFI/curl/curl_ffi.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
typedef CURLU* url_ptr_t;
77
typedef const CURLU* url_cptr_t;
88

9-
extern "C" {
10-
#include "curl_exports.h"
11-
}
12-
13-
149
// typedef enum {
1510
// /* This is the FILE * or void * the regular output should be written to. */
1611
// CURLOPT(CURLOPT_WRITEDATA, CURLOPTTYPE_CBPOINT, 1),
@@ -1129,6 +1124,8 @@ extern "C" {
11291124
// CURLOPT_LASTENTRY /* the last unused */
11301125
// } CURLoption;
11311126

1127+
#include "curl_exports.h"
1128+
11321129
namespace curl_ffi {
11331130
void* getExportsTable();
11341131
}

Tests/SmokeTests/bdd-library/test-start-runner.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,7 @@ local function testSetupTeardownHookNestingCase()
389389
_G.CALLSTACK = nil -- Is it a crime if there aren't any witnesses?
390390
end
391391

392-
function testInvalidErrorDetailsAfterThrownException()
393-
394-
end
392+
function testInvalidErrorDetailsAfterThrownException() end
395393

396394
local function testStartTestRunner()
397395
testNoFilesCase()

0 commit comments

Comments
 (0)