aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-01-02 09:47:45 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-01-02 09:47:45 +0000
commit45aa89cf0235a72412dece20b6e5b12556591d49 (patch)
treee5d12e06785fb01a85cd5b68032efb0a81e5fa39
parentb9a170b117d6db89eb824c3faf5edc874b3f7ec4 (diff)
Replace uses of `c.int` with `c_int` for consistency
-rw-r--r--core/sys/windows/hidpi.odin3
-rw-r--r--core/sys/windows/types.odin2
-rw-r--r--core/sys/windows/wgl.odin20
3 files changed, 11 insertions, 14 deletions
diff --git a/core/sys/windows/hidpi.odin b/core/sys/windows/hidpi.odin
index 5e9787527..6f1e888cc 100644
--- a/core/sys/windows/hidpi.odin
+++ b/core/sys/windows/hidpi.odin
@@ -1,6 +1,5 @@
#+build windows
package sys_windows
-import "core:c"
HIDD_CONFIGURATION :: struct {
cookie: PVOID,
@@ -152,7 +151,7 @@ PHIDP_LINK_COLLECTION_NODE :: ^HIDP_LINK_COLLECTION_NODE
HIDP_PREPARSED_DATA :: rawptr
PHIDP_PREPARSED_DATA :: ^HIDP_PREPARSED_DATA
-HIDP_REPORT_TYPE :: enum c.int {
+HIDP_REPORT_TYPE :: enum c_int {
Input,
Output,
Feature,
diff --git a/core/sys/windows/types.odin b/core/sys/windows/types.odin
index 904970589..d4afe971e 100644
--- a/core/sys/windows/types.odin
+++ b/core/sys/windows/types.odin
@@ -2234,7 +2234,7 @@ SHELLEXECUTEINFOW :: struct {
lpFile: LPCWSTR, // in, either this value or lpIDList must be specified
lpParameters: LPCWSTR, // in, optional
lpDirectory: LPCWSTR, // in, optional
- nShow: c.int, // in, required
+ nShow: c_int, // in, required
hInstApp: HINSTANCE, // out when SEE_MASK_NOCLOSEPROCESS is specified
lpIDList: rawptr, // in, valid when SEE_MASK_IDLIST is specified, PCIDLIST_ABSOLUTE, for use with SEE_MASK_IDLIST & SEE_MASK_INVOKEIDLIST
lpClass: LPCWSTR, // in, valid when SEE_MASK_CLASSNAME is specified
diff --git a/core/sys/windows/wgl.odin b/core/sys/windows/wgl.odin
index f50f06939..436a96329 100644
--- a/core/sys/windows/wgl.odin
+++ b/core/sys/windows/wgl.odin
@@ -1,8 +1,6 @@
#+build windows
package sys_windows
-import "core:c"
-
foreign import "system:Opengl32.lib"
CONTEXT_MAJOR_VERSION_ARB :: 0x2091
@@ -54,9 +52,9 @@ GLYPHMETRICSFLOAT :: struct {
gmfCellIncY: f32,
}
-CreateContextAttribsARBType :: #type proc "c" (hdc: HDC, hShareContext: rawptr, attribList: [^]c.int) -> HGLRC
-ChoosePixelFormatARBType :: #type proc "c" (hdc: HDC, attribIList: [^]c.int, attribFList: [^]f32, maxFormats: DWORD, formats: [^]c.int, numFormats: [^]DWORD) -> BOOL
-SwapIntervalEXTType :: #type proc "c" (interval: c.int) -> bool
+CreateContextAttribsARBType :: #type proc "c" (hdc: HDC, hShareContext: rawptr, attribList: [^]c_int) -> HGLRC
+ChoosePixelFormatARBType :: #type proc "c" (hdc: HDC, attribIList: [^]c_int, attribFList: [^]f32, maxFormats: DWORD, formats: [^]c_int, numFormats: [^]DWORD) -> BOOL
+SwapIntervalEXTType :: #type proc "c" (interval: c_int) -> bool
GetExtensionsStringARBType :: #type proc "c" (HDC) -> cstring
// Procedures
@@ -73,18 +71,18 @@ foreign Opengl32 {
wglGetProcAddress :: proc(c_str: cstring) -> rawptr ---
wglDeleteContext :: proc(HGLRC: HGLRC) -> BOOL ---
wglCopyContext :: proc(src, dst: HGLRC, mask: UINT) -> BOOL ---
- wglCreateLayerContext :: proc(hdc: HDC, layer_plane: c.int) -> HGLRC ---
- wglDescribeLayerPlane :: proc(hdc: HDC, pixel_format, layer_plane: c.int, bytes: UINT, pd: LPLAYERPLANEDESCRIPTOR) -> BOOL ---
+ wglCreateLayerContext :: proc(hdc: HDC, layer_plane: c_int) -> HGLRC ---
+ wglDescribeLayerPlane :: proc(hdc: HDC, pixel_format, layer_plane: c_int, bytes: UINT, pd: LPLAYERPLANEDESCRIPTOR) -> BOOL ---
wglGetCurrentContext :: proc() -> HGLRC ---
wglGetCurrentDC :: proc() -> HDC ---
- wglGetLayerPaletteEntries :: proc(hdc: HDC, layer_plane, start, entries: c.int, cr: ^COLORREF) -> c.int ---
- wglRealizeLayerPalette :: proc(hdc: HDC, layer_plane: c.int, realize: BOOL) -> BOOL ---
- wglSetLayerPaletteEntries :: proc(hdc: HDC, layer_plane, start, entries: c.int, cr: ^COLORREF) -> c.int ---
+ wglGetLayerPaletteEntries :: proc(hdc: HDC, layer_plane, start, entries: c_int, cr: ^COLORREF) -> c_int ---
+ wglRealizeLayerPalette :: proc(hdc: HDC, layer_plane: c_int, realize: BOOL) -> BOOL ---
+ wglSetLayerPaletteEntries :: proc(hdc: HDC, layer_plane, start, entries: c_int, cr: ^COLORREF) -> c_int ---
wglShareLists :: proc(HGLRC1, HGLRC2: HGLRC) -> BOOL ---
wglSwapLayerBuffers :: proc(hdc: HDC, planes: DWORD) -> BOOL ---
wglUseFontBitmapsA :: proc(hdc: HDC, first, count, list_base: DWORD) -> BOOL ---
wglUseFontBitmapsW :: proc(hdc: HDC, first, count, list_base: DWORD) -> BOOL ---
- wglUseFontOutlines :: proc(hdc: HDC, first, count, list_base: DWORD, deviation, extrusion: f32, format: c.int, gmf: LPGLYPHMETRICSFLOAT) -> BOOL ---
+ wglUseFontOutlines :: proc(hdc: HDC, first, count, list_base: DWORD, deviation, extrusion: f32, format: c_int, gmf: LPGLYPHMETRICSFLOAT) -> BOOL ---
}
// Used by vendor:OpenGL