Skip to content

Commit 155fbb9

Browse files
committed
inc: Update the new bindings to fix several translation bugs
1 parent 20a5abb commit 155fbb9

File tree

17 files changed

+117
-109
lines changed

17 files changed

+117
-109
lines changed

inc/CUnit/CUnit.bi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@
6363
CU_assertImplementation(-((actual) <> (expected)), __LINE__, ((("CU_ASSERT_NOT_EQUAL_FATAL(" + #actual) + ",") + #expected) + ")", __FILE__, "", CU_TRUE)
6464
#endmacro
6565
#macro CU_ASSERT_PTR_EQUAL(actual, expected)
66-
CU_assertImplementation(cptr(const any ptr, -((actual) = cptr(const any ptr, (expected)))), __LINE__, ((("CU_ASSERT_PTR_EQUAL(" + #actual) + ",") + #expected) + ")", __FILE__, "", CU_FALSE)
66+
CU_assertImplementation(-(cptr(const any ptr, (actual)) = cptr(const any ptr, (expected))), __LINE__, ((("CU_ASSERT_PTR_EQUAL(" + #actual) + ",") + #expected) + ")", __FILE__, "", CU_FALSE)
6767
#endmacro
6868
#macro CU_ASSERT_PTR_EQUAL_FATAL(actual, expected)
69-
CU_assertImplementation(cptr(const any ptr, -((actual) = cptr(const any ptr, (expected)))), __LINE__, ((("CU_ASSERT_PTR_EQUAL_FATAL(" + #actual) + ",") + #expected) + ")", __FILE__, "", CU_TRUE)
69+
CU_assertImplementation(-(cptr(const any ptr, (actual)) = cptr(const any ptr, (expected))), __LINE__, ((("CU_ASSERT_PTR_EQUAL_FATAL(" + #actual) + ",") + #expected) + ")", __FILE__, "", CU_TRUE)
7070
#endmacro
7171
#macro CU_ASSERT_PTR_NOT_EQUAL(actual, expected)
72-
CU_assertImplementation(cptr(const any ptr, -((actual) <> cptr(const any ptr, (expected)))), __LINE__, ((("CU_ASSERT_PTR_NOT_EQUAL(" + #actual) + ",") + #expected) + ")", __FILE__, "", CU_FALSE)
72+
CU_assertImplementation(-(cptr(const any ptr, (actual)) <> cptr(const any ptr, (expected))), __LINE__, ((("CU_ASSERT_PTR_NOT_EQUAL(" + #actual) + ",") + #expected) + ")", __FILE__, "", CU_FALSE)
7373
#endmacro
7474
#macro CU_ASSERT_PTR_NOT_EQUAL_FATAL(actual, expected)
75-
CU_assertImplementation(cptr(const any ptr, -((actual) <> cptr(const any ptr, (expected)))), __LINE__, ((("CU_ASSERT_PTR_NOT_EQUAL_FATAL(" + #actual) + ",") + #expected) + ")", __FILE__, "", CU_TRUE)
75+
CU_assertImplementation(-(cptr(const any ptr, (actual)) <> cptr(const any ptr, (expected))), __LINE__, ((("CU_ASSERT_PTR_NOT_EQUAL_FATAL(" + #actual) + ",") + #expected) + ")", __FILE__, "", CU_TRUE)
7676
#endmacro
7777
#macro CU_ASSERT_PTR_NULL(value)
7878
CU_assertImplementation(-(NULL = cptr(const any ptr, (value))), __LINE__, ("CU_ASSERT_PTR_NULL(" + #value) + ")", __FILE__, "", CU_FALSE)
@@ -111,14 +111,14 @@
111111
CU_assertImplementation(strncmp(cptr(const zstring ptr, (actual)), cptr(const zstring ptr, (expected)), cuint((count))), __LINE__, ((((("CU_ASSERT_NSTRING_NOT_EQUAL_FATAL(" + #actual) + ",") + #expected) + ",") + #count) + ")", __FILE__, "", CU_TRUE)
112112
#endmacro
113113
#macro CU_ASSERT_DOUBLE_EQUAL(actual, expected, granularity)
114-
CU_assertImplementation(-(fabs(cast(double, (actual) - (expected))) <= fabs(cast(double, (granularity)))), __LINE__, ((((("CU_ASSERT_DOUBLE_EQUAL(" + #actual) + ",") + #expected) + ",") + #granularity) + ")", __FILE__, "", CU_FALSE)
114+
CU_assertImplementation(-(fabs(cdbl((actual)) - (expected)) <= fabs(cdbl((granularity)))), __LINE__, ((((("CU_ASSERT_DOUBLE_EQUAL(" + #actual) + ",") + #expected) + ",") + #granularity) + ")", __FILE__, "", CU_FALSE)
115115
#endmacro
116116
#macro CU_ASSERT_DOUBLE_EQUAL_FATAL(actual, expected, granularity)
117-
CU_assertImplementation(-(fabs(cast(double, (actual) - (expected))) <= fabs(cast(double, (granularity)))), __LINE__, ((((("CU_ASSERT_DOUBLE_EQUAL_FATAL(" + #actual) + ",") + #expected) + ",") + #granularity) + ")", __FILE__, "", CU_TRUE)
117+
CU_assertImplementation(-(fabs(cdbl((actual)) - (expected)) <= fabs(cdbl((granularity)))), __LINE__, ((((("CU_ASSERT_DOUBLE_EQUAL_FATAL(" + #actual) + ",") + #expected) + ",") + #granularity) + ")", __FILE__, "", CU_TRUE)
118118
#endmacro
119119
#macro CU_ASSERT_DOUBLE_NOT_EQUAL(actual, expected, granularity)
120-
CU_assertImplementation(-(fabs(cast(double, (actual) - (expected))) > fabs(cast(double, (granularity)))), __LINE__, ((((("CU_ASSERT_DOUBLE_NOT_EQUAL(" + #actual) + ",") + #expected) + ",") + #granularity) + ")", __FILE__, "", CU_FALSE)
120+
CU_assertImplementation(-(fabs(cdbl((actual)) - (expected)) > fabs(cdbl((granularity)))), __LINE__, ((((("CU_ASSERT_DOUBLE_NOT_EQUAL(" + #actual) + ",") + #expected) + ",") + #granularity) + ")", __FILE__, "", CU_FALSE)
121121
#endmacro
122122
#macro CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL(actual, expected, granularity)
123-
CU_assertImplementation(-(fabs(cast(double, (actual) - (expected))) > fabs(cast(double, (granularity)))), __LINE__, ((((("CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL(" + #actual) + ",") + #expected) + ",") + #granularity) + ")", __FILE__, "", CU_TRUE)
123+
CU_assertImplementation(-(fabs(cdbl((actual)) - (expected)) > fabs(cdbl((granularity)))), __LINE__, ((((("CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL(" + #actual) + ",") + #expected) + ",") + #granularity) + ")", __FILE__, "", CU_TRUE)
124124
#endmacro

inc/allegro.bi

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
'' #define EMPTY_STRING => EMPTY_STRING_
2121
'' #define SYSTEM_NONE => SYSTEM_NONE_
2222
'' #define MOUSEDRV_NONE => MOUSEDRV_NONE_
23-
'' #define DRAW_SPRITE_H_FLIP => DRAW_SPRITE_H_FLIP_
2423
'' #define DRAW_SPRITE_V_FLIP => DRAW_SPRITE_V_FLIP_
24+
'' #define DRAW_SPRITE_H_FLIP => DRAW_SPRITE_H_FLIP_
2525
'' #define DRAW_SPRITE_VH_FLIP => DRAW_SPRITE_VH_FLIP_
2626
'' #define MIDI_DIGMID => MIDI_DIGMID_
2727
'' #define EOF => EOF_
@@ -81,13 +81,13 @@ type GFX_VTABLE as GFX_VTABLE_
8181
type GFX_MODE as GFX_MODE_
8282
type RLE_SPRITE as RLE_SPRITE_
8383
type FONT_GLYPH as FONT_GLYPH_
84-
type FONT as FONT_
8584
type FONT_VTABLE as FONT_VTABLE_
85+
type FONT as FONT_
8686
type DIALOG as DIALOG_
8787
type PACKFILE as PACKFILE_
88+
type PACKFILE_VTABLE as PACKFILE_VTABLE_
8889
type LZSS_PACK_DATA as LZSS_PACK_DATA_
8990
type LZSS_UNPACK_DATA as LZSS_UNPACK_DATA_
90-
type PACKFILE_VTABLE as PACKFILE_VTABLE_
9191

9292
#define ALLEGRO_H
9393
#define ALLEGRO_BASE_H
@@ -257,12 +257,15 @@ type PACKFILE_VTABLE as PACKFILE_VTABLE_
257257
#define _farnspeekl(addr) (*cptr(ulong ptr, (addr)))
258258
#endif
259259

260-
#define READ3BYTES(p) (((*cptr(ubyte ptr, (p))) or ((*cptr(ubyte ptr, (p) + 1)) shl 8)) or ((*cptr(ubyte ptr, (p) + 2)) shl 16))
260+
#define READ3BYTES(p) _
261+
( cptr(ubyte ptr, (p))[0] or _
262+
(cptr(ubyte ptr, (p))[1] shl 8) or _
263+
(cptr(ubyte ptr, (p))[2] shl 16) )
261264
#macro WRITE3BYTES(p, c)
262265
scope
263-
*cptr(ubyte ptr, (p)) = (c)
264-
*cptr(ubyte ptr, (p) + 1) = (c) shr 8
265-
*cptr(ubyte ptr, (p) + 2) = (c) shr 16
266+
cptr(ubyte ptr, (p))[0] = (c)
267+
cptr(ubyte ptr, (p))[1] = (c) shr 8
268+
cptr(ubyte ptr, (p))[2] = (c) shr 16
266269
end scope
267270
#endmacro
268271

@@ -336,13 +339,13 @@ declare function uwidth_max(byval type_ as long) as long
336339
#define EMPTY_STRING_ !"\0\0\0"
337340

338341
extern _AL_DLL empty_string as zstring * 4
339-
extern ugetc as function(byval s as const zstring ptr) as long
340-
extern ugetx as function(byval s as zstring ptr ptr) as long
341-
extern ugetxc as function(byval s as const zstring ptr ptr) as long
342-
extern usetc as function(byval s as zstring ptr, byval c as long) as long
343-
extern uwidth as function(byval s as const zstring ptr) as long
344-
extern ucwidth as function(byval c as long) as long
345-
extern uisok as function(byval c as long) as long
342+
extern _AL_DLL ugetc as function(byval s as const zstring ptr) as long
343+
extern _AL_DLL ugetx as function(byval s as zstring ptr ptr) as long
344+
extern _AL_DLL ugetxc as function(byval s as const zstring ptr ptr) as long
345+
extern _AL_DLL usetc as function(byval s as zstring ptr, byval c as long) as long
346+
extern _AL_DLL uwidth as function(byval s as const zstring ptr) as long
347+
extern _AL_DLL ucwidth as function(byval c as long) as long
348+
extern _AL_DLL uisok as function(byval c as long) as long
346349

347350
declare function uoffset(byval s as const zstring ptr, byval idx as long) as long
348351
declare function ugetat(byval s as const zstring ptr, byval idx as long) as long
@@ -662,7 +665,7 @@ extern _AL_DLL freeze_mouse_flag as long
662665
#define MOUSE_FLAG_MOVE_Z 128
663666
#define MOUSE_FLAG_MOVE_W 256
664667

665-
extern mouse_callback as sub(byval flags as long)
668+
extern _AL_DLL mouse_callback as sub(byval flags as long)
666669

667670
declare sub show_mouse(byval bmp as BITMAP ptr)
668671
declare sub scare_mouse()
@@ -683,8 +686,8 @@ declare function mouse_on_screen() as long
683686

684687
#define ALLEGRO_TIMER_H
685688
#define TIMERS_PER_SECOND cast(clong, 1193181)
686-
#define SECS_TO_TIMER(x) cast(clong, (x) * TIMERS_PER_SECOND)
687-
#define MSEC_TO_TIMER(x) cast(clong, (x) * (TIMERS_PER_SECOND / 1000))
689+
#define SECS_TO_TIMER(x) (cast(clong, (x)) * TIMERS_PER_SECOND)
690+
#define MSEC_TO_TIMER(x) (cast(clong, (x)) * (TIMERS_PER_SECOND / 1000))
688691
#define BPS_TO_TIMER(x) (TIMERS_PER_SECOND / cast(clong, (x)))
689692
#define BPM_TO_TIMER(x) ((60 * TIMERS_PER_SECOND) / cast(clong, (x)))
690693

@@ -750,9 +753,9 @@ declare sub remove_keyboard()
750753
declare function poll_keyboard() as long
751754
declare function keyboard_needs_poll() as long
752755

753-
extern keyboard_callback as function(byval key as long) as long
754-
extern keyboard_ucallback as function(byval key as long, byval scancode as long ptr) as long
755-
extern keyboard_lowlevel_callback as sub(byval scancode as long)
756+
extern _AL_DLL keyboard_callback as function(byval key as long) as long
757+
extern _AL_DLL keyboard_ucallback as function(byval key as long, byval scancode as long ptr) as long
758+
extern _AL_DLL keyboard_lowlevel_callback as sub(byval scancode as long)
756759

757760
declare sub install_keyboard_hooks(byval keypressed as function() as long, byval readkey as function() as long)
758761

@@ -2058,22 +2061,19 @@ extern _AL_DLL gui_button_proc as DIALOG_PROC
20582061
extern _AL_DLL gui_edit_proc as DIALOG_PROC
20592062
extern _AL_DLL gui_list_proc as DIALOG_PROC
20602063
extern _AL_DLL gui_text_list_proc as DIALOG_PROC
2061-
2062-
extern gui_menu_draw_menu as sub(byval x as long, byval y as long, byval w as long, byval h as long)
2063-
extern gui_menu_draw_menu_item as sub(byval m as MENU ptr, byval x as long, byval y as long, byval w as long, byval h as long, byval bar as long, byval sel as long)
2064-
2064+
extern _AL_DLL gui_menu_draw_menu as sub(byval x as long, byval y as long, byval w as long, byval h as long)
2065+
extern _AL_DLL gui_menu_draw_menu_item as sub(byval m as MENU ptr, byval x as long, byval y as long, byval w as long, byval h as long, byval bar as long, byval sel as long)
20652066
extern _AL_DLL active_dialog as DIALOG ptr
20662067
extern _AL_DLL active_menu as MENU ptr
20672068
extern _AL_DLL gui_mouse_focus as long
20682069
extern _AL_DLL gui_fg_color as long
20692070
extern _AL_DLL gui_mg_color as long
20702071
extern _AL_DLL gui_bg_color as long
20712072
extern _AL_DLL gui_font_baseline as long
2072-
2073-
extern gui_mouse_x as function() as long
2074-
extern gui_mouse_y as function() as long
2075-
extern gui_mouse_z as function() as long
2076-
extern gui_mouse_b as function() as long
2073+
extern _AL_DLL gui_mouse_x as function() as long
2074+
extern _AL_DLL gui_mouse_y as function() as long
2075+
extern _AL_DLL gui_mouse_z as function() as long
2076+
extern _AL_DLL gui_mouse_b as function() as long
20772077

20782078
declare sub gui_set_screen(byval bmp as BITMAP ptr)
20792079
declare function gui_get_screen() as BITMAP ptr
@@ -2241,7 +2241,7 @@ declare function start_sound_input(byval rate as long, byval bits as long, byval
22412241
declare sub stop_sound_input()
22422242
declare function read_sound_input(byval buffer as any ptr) as long
22432243

2244-
extern digi_recorder as sub()
2244+
extern _AL_DLL digi_recorder as sub()
22452245

22462246
declare sub lock_sample(byval spl as SAMPLE ptr)
22472247
declare sub register_sample_file_type(byval ext as const zstring ptr, byval load as function(byval filename as const zstring ptr) as SAMPLE ptr, byval save as function(byval filename as const zstring ptr, byval spl as SAMPLE ptr) as long)
@@ -2267,14 +2267,14 @@ declare sub free_audio_stream_buffer(byval stream as AUDIOSTREAM ptr)
22672267
#define MIDI_VOICES 64
22682268
#define MIDI_TRACKS 32
22692269

2270-
type __dummyid_5_extracted_allegro_4_4_2_include_allegro_midi
2270+
type __MIDI_track
22712271
data as ubyte ptr
22722272
len as long
22732273
end type
22742274

22752275
type MIDI
22762276
divisions as long
2277-
track(0 to 31) as __dummyid_5_extracted_allegro_4_4_2_include_allegro_midi
2277+
track(0 to 31) as __MIDI_track
22782278
end type
22792279

22802280
#define MIDI_AUTODETECT (-1)
@@ -2338,10 +2338,10 @@ declare function get_midi_length(byval midi as MIDI ptr) as long
23382338
declare sub midi_out(byval data_ as ubyte ptr, byval length as long)
23392339
declare function load_midi_patches() as long
23402340

2341-
extern midi_msg_callback as sub(byval msg as long, byval byte1 as long, byval byte2 as long)
2342-
extern midi_meta_callback as sub(byval type_ as long, byval data_ as const ubyte ptr, byval length as long)
2343-
extern midi_sysex_callback as sub(byval data_ as const ubyte ptr, byval length as long)
2344-
extern midi_recorder as sub(byval data_ as ubyte)
2341+
extern _AL_DLL midi_msg_callback as sub(byval msg as long, byval byte1 as long, byval byte2 as long)
2342+
extern _AL_DLL midi_meta_callback as sub(byval type_ as long, byval data_ as const ubyte ptr, byval length as long)
2343+
extern _AL_DLL midi_sysex_callback as sub(byval data_ as const ubyte ptr, byval length as long)
2344+
extern _AL_DLL midi_recorder as sub(byval data_ as ubyte)
23452345

23462346
declare sub lock_midi(byval midi as MIDI ptr)
23472347
declare sub reserve_voices(byval digi_voices_ as long, byval midi_voices_ as long)
@@ -2769,7 +2769,7 @@ declare sub set_window_close_hook(byval proc as sub())
27692769
declare sub set_clip(byval bitmap as BITMAP ptr, byval x1 as long, byval y_1 as long, byval x2 as long, byval y2 as long)
27702770
declare sub yield_timeslice()
27712771

2772-
extern retrace_proc as sub()
2772+
extern _AL_DLL retrace_proc as sub()
27732773

27742774
declare sub set_file_encoding(byval encoding_ as long)
27752775
declare function get_file_encoding() as long

inc/allegro/algif.bi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
#inclib "algif"
23

34
#include once "allegro.bi"
45

inc/allegro/alpng.bi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
#inclib "alpng"
23

34
#include once "allegro.bi"
45

inc/allegro5/allegro.bi

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,15 @@ type ALLEGRO_COND as ALLEGRO_COND_
6464

6565
#define __al_included_allegro5_astdint_h
6666
#define __al_included_allegro5_astdbool_h
67-
#define READ3BYTES(p) (((*cptr(ubyte ptr, (p))) or ((*cptr(ubyte ptr, (p) + 1)) shl 8)) or ((*cptr(ubyte ptr, (p) + 2)) shl 16))
67+
#define READ3BYTES(p) _
68+
( cptr(ubyte ptr, (p))[0] or _
69+
(cptr(ubyte ptr, (p))[1] shl 8) or _
70+
(cptr(ubyte ptr, (p))[2] shl 16) )
6871
#macro WRITE3BYTES(p, c)
6972
scope
70-
*cptr(ubyte ptr, (p)) = (c)
71-
*cptr(ubyte ptr, (p) + 1) = (c) shr 8
72-
*cptr(ubyte ptr, (p) + 2) = (c) shr 16
73+
cptr(ubyte ptr, (p))[0] = (c)
74+
cptr(ubyte ptr, (p))[1] = (c) shr 8
75+
cptr(ubyte ptr, (p))[2] = (c) shr 16
7376
end scope
7477
#endmacro
7578
#define bmp_write16(addr, c) *cptr(ushort ptr, (addr)) = (c)
@@ -478,7 +481,7 @@ declare sub _al_trace_suffix(byval msg as const zstring ptr, ...)
478481
#define ALLEGRO_WARN ALLEGRO_TRACE_LEVEL(2)
479482
#define ALLEGRO_ERROR ALLEGRO_TRACE_LEVEL(3)
480483

481-
extern _al_user_assert_handler as sub(byval expr as const zstring ptr, byval file as const zstring ptr, byval line_ as long, byval func as const zstring ptr)
484+
extern _AL_DLL _al_user_assert_handler as sub(byval expr as const zstring ptr, byval file as const zstring ptr, byval line_ as long, byval func as const zstring ptr)
482485

483486
declare sub al_register_assert_handler(byval handler as sub(byval expr as const zstring ptr, byval file as const zstring ptr, byval line_ as long, byval func as const zstring ptr))
484487

@@ -863,12 +866,12 @@ declare function al_get_display_mode(byval index as long, byval mode as ALLEGRO_
863866
#define _AL_MAX_JOYSTICK_STICKS 8
864867
#define _AL_MAX_JOYSTICK_BUTTONS 32
865868

866-
type __dummyid_0_extracted_allegro_5_0_10_include_allegro5_joystick
869+
type __ALLEGRO_JOYSTICK_STATE_stick
867870
axis(0 to 2) as single
868871
end type
869872

870873
type ALLEGRO_JOYSTICK_STATE
871-
stick(0 to 7) as __dummyid_0_extracted_allegro_5_0_10_include_allegro5_joystick
874+
stick(0 to 7) as __ALLEGRO_JOYSTICK_STATE_stick
872875
button(0 to 31) as long
873876
end type
874877

@@ -1280,6 +1283,10 @@ declare function al_check_inverse(byval trans as const ALLEGRO_TRANSFORM ptr, by
12801283
declare function _WinMain(byval _main as any ptr, byval hInst as any ptr, byval hPrev as any ptr, byval Cmd as zstring ptr, byval nShow as long) as long
12811284

12821285
#define AL_JOY_TYPE_DIRECTX AL_ID(asc("D"), asc("X"), asc(" "), asc(" "))
1286+
1287+
extern _AL_DLL _al_joydrv_directx as ALLEGRO_JOYSTICK_DRIVER
1288+
1289+
#define _AL_JOYSTICK_DRIVER_DIRECTX ( AL_JOY_TYPE_DIRECTX, @_al_joydrv_directx, true ),
12831290
#endif
12841291

12851292
end extern

inc/allegro5/allegro_audio.bi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ enum
2828
ALLEGRO_AUDIO_DEPTH_UINT24 = ALLEGRO_AUDIO_DEPTH_INT24 or ALLEGRO_AUDIO_DEPTH_UNSIGNED
2929
end enum
3030

31-
#define ALLEGRO_MAX_CHANNELS 8
32-
3331
type ALLEGRO_CHANNEL_CONF as long
3432
enum
3533
ALLEGRO_CHANNEL_CONF_1 = &h10
@@ -41,6 +39,8 @@ enum
4139
ALLEGRO_CHANNEL_CONF_7_1 = &h71
4240
end enum
4341

42+
#define ALLEGRO_MAX_CHANNELS 8
43+
4444
type ALLEGRO_PLAYMODE as long
4545
enum
4646
ALLEGRO_PLAYMODE_ONCE = &h100

inc/cgui.bi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
extern "C"
1313

1414
#ifndef FONT
15-
type BITMAP as BITMAP_
1615
type FONT as FONT_
16+
type BITMAP as BITMAP_
1717
type DATAFILE as DATAFILE_
1818
#endif
1919

inc/curl.bi

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,6 @@ type CURL as any
9696
#endif
9797

9898
#define curl_socket_typedef
99-
#define HTTPPOST_FILENAME (1 shl 0)
100-
#define HTTPPOST_READFILE (1 shl 1)
101-
#define HTTPPOST_PTRNAME (1 shl 2)
102-
#define HTTPPOST_PTRCONTENTS (1 shl 3)
103-
#define HTTPPOST_BUFFER (1 shl 4)
104-
#define HTTPPOST_PTRBUFFER (1 shl 5)
105-
#define HTTPPOST_CALLBACK (1 shl 6)
10699

107100
type curl_httppost
108101
next as curl_httppost ptr
@@ -120,6 +113,14 @@ type curl_httppost
120113
userp as any ptr
121114
end type
122115

116+
#define HTTPPOST_FILENAME (1 shl 0)
117+
#define HTTPPOST_READFILE (1 shl 1)
118+
#define HTTPPOST_PTRNAME (1 shl 2)
119+
#define HTTPPOST_PTRCONTENTS (1 shl 3)
120+
#define HTTPPOST_BUFFER (1 shl 4)
121+
#define HTTPPOST_PTRBUFFER (1 shl 5)
122+
#define HTTPPOST_CALLBACK (1 shl 6)
123+
123124
type curl_progress_callback as function(byval clientp as any ptr, byval dltotal as double, byval dlnow as double, byval ultotal as double, byval ulnow as double) as long
124125
type curl_xferinfo_callback as function(byval clientp as any ptr, byval dltotal as curl_off_t, byval dlnow as curl_off_t, byval ultotal as curl_off_t, byval ulnow as curl_off_t) as long
125126

@@ -151,7 +152,7 @@ end enum
151152
#define CURLFINFOFLAG_KNOWN_SIZE (1 shl 6)
152153
#define CURLFINFOFLAG_KNOWN_HLINKCOUNT (1 shl 7)
153154

154-
type __dummyid_29_extracted_curl_7_39_0_include_curl_curl
155+
type __curl_fileinfo_strings
155156
time as zstring ptr
156157
perm as zstring ptr
157158
user as zstring ptr
@@ -168,7 +169,7 @@ type curl_fileinfo
168169
gid as long
169170
size as curl_off_t
170171
hardlinks as clong
171-
strings as __dummyid_29_extracted_curl_7_39_0_include_curl_curl
172+
strings as __curl_fileinfo_strings
172173
flags as ulong
173174
b_data as zstring ptr
174175
b_size as uinteger
@@ -551,8 +552,6 @@ end enum
551552
#define CURLOPTTYPE_OBJECTPOINT 10000
552553
#define CURLOPTTYPE_FUNCTIONPOINT 20000
553554
#define CURLOPTTYPE_OFF_T 30000
554-
#define CURLOPT_XFERINFODATA CURLOPT_PROGRESSDATA
555-
#define CURLOPT_SERVER_RESPONSE_TIMEOUT CURLOPT_FTP_RESPONSE_TIMEOUT
556555

557556
type CURLoption as long
558557
enum
@@ -771,6 +770,8 @@ enum
771770
CURLOPT_LASTENTRY
772771
end enum
773772

773+
#define CURLOPT_XFERINFODATA CURLOPT_PROGRESSDATA
774+
#define CURLOPT_SERVER_RESPONSE_TIMEOUT CURLOPT_FTP_RESPONSE_TIMEOUT
774775
#define CURLOPT_POST301 CURLOPT_POSTREDIR
775776
#define CURLOPT_SSLKEYPASSWD CURLOPT_KEYPASSWD
776777
#define CURLOPT_FTPAPPEND CURLOPT_APPEND
@@ -1167,15 +1168,15 @@ enum
11671168
CURLMSG_LAST
11681169
end enum
11691170

1170-
union __dummyid_56_extracted_curl_7_39_0_include_curl_multi
1171+
union __CURLMsg__data
11711172
whatever as any ptr
11721173
result as CURLcode
11731174
end union
11741175

11751176
type CURLMsg_
11761177
msg as CURLMSG
11771178
easy_handle as CURL ptr
1178-
data as __dummyid_56_extracted_curl_7_39_0_include_curl_multi
1179+
data as __CURLMsg__data
11791180
end type
11801181

11811182
#define CURL_WAIT_POLLIN &h0001

0 commit comments

Comments
 (0)