User Tools

Site Tools


allocating_20arrays_20using_20the_20windows_20api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
allocating_20arrays_20using_20the_20windows_20api [2022/12/26 22:55] – Added BBCSDL version richardrussellallocating_20arrays_20using_20the_20windows_20api [2024/01/05 00:22] (current) – external edit 127.0.0.1
Line 56: Line 56:
       DEF PROCdim1d(RETURN A(),S%,D1%)       DEF PROCdim1d(RETURN A(),S%,D1%)
       LOCAL a%%       LOCAL a%%
-      SYS "SDL_malloc", 64, 5+S%*(D1%+1) TO a%%+      SYS "SDL_malloc", 5+S%*(D1%+1) TO a%%
       IF @platform% AND &40 ELSE a%% = !^a%%       IF @platform% AND &40 ELSE a%% = !^a%%
       ?a%%=1 : a%%!1=D1%+1       ?a%%=1 : a%%!1=D1%+1
Line 64: Line 64:
       DEF PROCdim2d(RETURN A(),S%,D1%,D2%)       DEF PROCdim2d(RETURN A(),S%,D1%,D2%)
       LOCAL a%%       LOCAL a%%
-      SYS "SDL_malloc", 64, 9+S%*(D1%+1)*(D2%+1) TO a%%+      SYS "SDL_malloc", 9+S%*(D1%+1)*(D2%+1) TO a%%
       IF @platform% AND &40 ELSE a%% = !^a%%       IF @platform% AND &40 ELSE a%% = !^a%%
       ?a%%=2 : a%%!1=D1%+1 : a%%!5=D2%+1       ?a%%=2 : a%%!1=D1%+1 : a%%!5=D2%+1
allocating_20arrays_20using_20the_20windows_20api.1672095340.txt.gz · Last modified: 2024/01/05 00:16 (external edit)