Skip to content

Commit f204785

Browse files
Merge pull request #41 from Free-Pascal-meets-SDL-Website/update-incs-342
Update some incs to 3.4.2 or 3.4.4
2 parents 8cc9a97 + e3dfa35 commit f204785

50 files changed

Lines changed: 5273 additions & 1359 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

units/SDL3.pas

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -76,58 +76,58 @@ interface
7676
corresponding C header file.
7777
Inc file was updated against
7878
SDL_init.inc --> SDL_init.h this version of the header file: }
79-
{$I SDL_log.inc} // 3.1.6-prev
80-
{$I SDL_version.inc} // 3.1.6-prev
81-
{$I SDL_revision.inc} // 3.1.6-prev
82-
{$I SDL_locale.inc} // 3.2.0
83-
{$I SDL_guid.inc} // 3.1.6-prev
84-
{$I SDL_hints.inc} // 3.2.12
85-
{$I SDL_misc.inc} // 3.2.0
79+
{$I SDL_log.inc} // 3.4.2
80+
{$I SDL_version.inc} // 3.4.2
81+
{$I SDL_revision.inc} // 3.4.2
82+
{$I SDL_locale.inc} // 3.4.4
83+
{$I SDL_guid.inc} // 3.4.2
84+
{$I SDL_hints.inc} // 3.4.4
85+
{$I SDL_misc.inc} // 3.4.4
8686
{$I SDL_stdinc.inc} // 3.1.6-prev (unfinished)
87-
{$I SDL_platform.inc} // 3.2.0
88-
{$I SDL_loadso.inc} // 3.2.0
89-
{$I SDL_rect.inc} // 3.1.6-prev
90-
{$I SDL_properties.inc} // 3.1.6-prev
91-
{$I SDL_pixels.inc} // 3.1.6-prev
92-
{$I SDL_blendmode.inc} // 3.1.6-prev
93-
{$I SDL_iostream.inc} // 3.2.0
94-
{$I SDL_asyncio.inc} // 3.2.0
95-
{$I SDL_surface.inc} // 3.2.20
96-
{$I SDL_video.inc} // 3.2.20
97-
{$I SDL_timer.inc} // 3.2.20
98-
{$I SDL_error.inc} // 3.1.6-prev
99-
{$I SDL_power.inc} // 3.1.6-prev
100-
{$I SDL_audio.inc} // 3.1.6-prev
101-
{$I SDL_sensor.inc} // 3.1.6-prev
102-
{$I SDL_scancode.inc} // 3.1.6-prev
103-
{$I SDL_keycode.inc} // 3.2.20
104-
{$I SDL_mouse.inc} // 3.1.6-prev
105-
{$I SDL_keyboard.inc} // 3.1.6-prev
106-
{$I SDL_joystick.inc} // 3.1.6-prev
107-
{$I SDL_gamepad.inc} // 3.2.0
108-
{$I SDL_haptic.inc} // 3.2.0
109-
{$I SDL_touch.inc} // 3.1.6-prev
110-
{$I SDL_pen.inc} // 3.2.20
111-
{$I SDL_camera.inc} // 3.1.6-prev
112-
{$I SDL_events.inc} // 3.2.20
113-
{$I SDL_init.inc} // 3.2.20
114-
{$I SDL_render.inc} // 3.1.6-prev
115-
{$I SDL_gpu.inc} // 3.2.0
116-
{$I SDL_clipboard.inc} // 3.2.0
117-
{$I SDL_cpuinfo.inc} // 3.2.0
118-
{$I SDL_dialog.inc} // 3.2.0
119-
{$I SDL_messagebox.inc} // 3.2.0
120-
{$I SDL_time.inc} // 3.2.0
121-
{$I SDL_filesystem.inc} // 3.2.0
122-
{$I SDL_atomic.inc} // 3.2.0
123-
{$I SDL_hidapi.inc} // 3.2.0
124-
{$I SDL_metal.inc} // 3.2.0
125-
{$I SDL_vulkan.inc} // 3.2.0
126-
{$I SDL_thread.inc} // 3.2.0
127-
{$I SDL_process.inc} // 3.2.0
128-
{$I SDL_storage.inc} // 3.2.0
129-
{$I SDL_tray.inc} // 3.2.12
130-
{$I SDL_mutex.inc} // 3.2.12
87+
{$I SDL_platform.inc} // 3.4.4
88+
{$I SDL_loadso.inc} // 3.4.4
89+
{$I SDL_rect.inc} // 3.4.2
90+
{$I SDL_properties.inc} // 3.4.2
91+
{$I SDL_pixels.inc} // 3.4.2
92+
{$I SDL_blendmode.inc} // 3.4.2
93+
{$I SDL_iostream.inc} // 3.4.4
94+
{$I SDL_asyncio.inc} // 3.4.4
95+
{$I SDL_surface.inc} // 3.4.4
96+
{$I SDL_video.inc} // 3.4.2
97+
{$I SDL_timer.inc} // 3.4.4
98+
{$I SDL_error.inc} // 3.4.2
99+
{$I SDL_power.inc} // 3.4.2
100+
{$I SDL_audio.inc} // 3.4.2
101+
{$I SDL_sensor.inc} // 3.4.4
102+
{$I SDL_scancode.inc} // 3.4.4
103+
{$I SDL_keycode.inc} // 3.4.4
104+
{$I SDL_mouse.inc} // 3.4.4
105+
{$I SDL_keyboard.inc} // 3.4.4
106+
{$I SDL_joystick.inc} // 3.4.4
107+
{$I SDL_gamepad.inc} // 3.4.4
108+
{$I SDL_haptic.inc} // 3.4.4
109+
{$I SDL_touch.inc} // 3.4.4
110+
{$I SDL_pen.inc} // 3.4.4
111+
{$I SDL_camera.inc} // 3.4.4
112+
{$I SDL_events.inc} // 3.4.4
113+
{$I SDL_init.inc} // 3.4.4
114+
{$I SDL_gpu.inc} // 3.4.4
115+
{$I SDL_render.inc} // 3.4.4
116+
{$I SDL_clipboard.inc} // 3.4.4
117+
{$I SDL_cpuinfo.inc} // 3.4.4
118+
{$I SDL_dialog.inc} // 3.4.4
119+
{$I SDL_messagebox.inc} // 3.4.4
120+
{$I SDL_time.inc} // 3.4.4
121+
{$I SDL_filesystem.inc} // 3.4.4
122+
{$I SDL_atomic.inc} // 3.4.4
123+
{$I SDL_hidapi.inc} // 3.4.4
124+
{$I SDL_metal.inc} // 3.4.4
125+
{$I SDL_vulkan.inc} // 3.4.4
126+
{$I SDL_thread.inc} // 3.4.4
127+
{$I SDL_process.inc} // 3.4.4
128+
{$I SDL_storage.inc} // 3.4.4
129+
{$I SDL_tray.inc} // 3.4.4
130+
{$I SDL_mutex.inc} // 3.4.4
131131

132132

133133

@@ -207,7 +207,7 @@ function SDL_RectEmptyFloat(const r: PSDL_FRect): Boolean;
207207
end;
208208

209209
function SDL_RectsEqualEpsilon(const a: PSDL_Frect; const b: PSDL_FRect;
210-
const epsilon: cfloat): Boolean;
210+
epsilon: cfloat): Boolean;
211211
begin
212212
Result :=
213213
(a <> nil) and (b <> nil) and ((a = b) or

units/SDL_asyncio.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ type
197197
* \returns a Pointer to the SDL_AsyncIO structure that is created or nil on
198198
* failure; call SDL_GetError() for more information.
199199
*
200+
* \threadsafety It is safe to call this function from any thread.
201+
*
200202
* \since This function is available since SDL 3.2.0.
201203
*
202204
* \sa SDL_CloseAsyncIO
@@ -524,6 +526,8 @@ procedure SDL_SignalAsyncIOQueue(queue: PSDL_AsyncIOQueue); cdecl;
524526
* results.
525527
* \returns true on success or false on failure; call SDL_GetError() for more
526528
* information.
529+
* \threadsafety It is safe to call this function from any thread.
530+
*
527531
*
528532
* \since This function is available since SDL 3.2.0.
529533
*

units/SDL_atomic.inc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ function SDL_AddAtomicInt(a: PSDL_AtomicInt; v: cint): cint; cdecl;
383383
*
384384
* ***Note: If you don't know what this macro is for, you shouldn't use it!***
385385
*
386-
* \param a a Pointer to an SDL_AtomicInt to increment.
386+
* \param a a Pointer to an SDL_AtomicInt to decrement.
387387
* \returns the previous value of the atomic variable.
388388
*
389389
* \threadsafety It is safe to call this macro from any thread.
@@ -504,6 +504,25 @@ function SDL_SetAtomicU32(a: PSDL_AtomicU32; v: cuint32): cuint32; cdecl;
504504
function SDL_GetAtomicU32(a: PSDL_AtomicU32): cuint32; cdecl;
505505
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_GetAtomicU32' {$ENDIF} {$ENDIF};
506506

507+
{*
508+
* Add to an atomic variable.
509+
*
510+
* This function also acts as a full memory barrier.
511+
*
512+
* ***Note: If you don't know what this function is for, you shouldn't use
513+
* it!***
514+
*
515+
* \param a a Pointer to an SDL_AtomicU32 variable to be modified.
516+
* \param v the desired value to add or subtract.
517+
* \returns the previous value of the atomic variable.
518+
*
519+
* \threadsafety It is safe to call this function from any thread.
520+
*
521+
* \since This function is available since SDL 3.4.0.
522+
}
523+
function SDL_AddAtomicU32(a: PSDL_AtomicU32; v: cint): cuint32; cdecl;
524+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_AddAtomicU32' {$ENDIF} {$ENDIF};
525+
507526
{*
508527
* Set a Pointer to a new value if it is currently an old value.
509528
*

0 commit comments

Comments
 (0)