diff --git a/.github/ci_compile_sources.sh b/.github/ci_compile_sources.sh index 776e16229..4a4b81274 100644 --- a/.github/ci_compile_sources.sh +++ b/.github/ci_compile_sources.sh @@ -17,7 +17,7 @@ CC=cc SRCDIR=./src set -- "" -set -- "$@" -std=c89 +set -- "$@" -std=c99 set -- "$@" -Wall set -- "$@" -Wextra set -- "$@" -pedantic diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e2579224e..5c8ff9aaf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,7 +7,7 @@ in mind. Reviewing changes to `src/*` and `nuklear.h`: -* Ensure C89 compatibility. +* Ensure C99 compatibility. * The code should work for several backends to an acceptable degree. * Check no other parts of `nuklear.h` are related to the PR and thus nothing is missing. * Recommend simple optimizations. diff --git a/README.md b/README.md index 949d4894c..6b8713fef 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ render backends, it focuses only on the actual UI. - Immediate-mode graphical user interface toolkit - Single-header library -- Written in C89 (ANSI C) +- Written in C99 (ANSI C) - Small codebase (~18kLOC) - Focus on portability, efficiency and simplicity - No dependencies (not even the standard library if not wanted) diff --git a/clib.json b/clib.json index 0b843fabc..36f59702d 100644 --- a/clib.json +++ b/clib.json @@ -1,6 +1,6 @@ { "name": "nuklear", - "version": "4.13.3", + "version": "5.0.0-dev", "repo": "Immediate-Mode-UI/Nuklear", "description": "A small ANSI C gui toolkit", "keywords": ["gl", "ui", "toolkit"], diff --git a/demo/allegro5/Makefile b/demo/allegro5/Makefile index 669cda155..954c51791 100644 --- a/demo/allegro5/Makefile +++ b/demo/allegro5/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function +CFLAGS += -std=c99 -Wall -Wextra -pedantic -Wno-unused-function SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/glfw_opengl3/Makefile b/demo/glfw_opengl3/Makefile index be7da50a5..689c19ea1 100644 --- a/demo/glfw_opengl3/Makefile +++ b/demo/glfw_opengl3/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -g -std=c89 -Wall -Wextra -pedantic +CFLAGS += -g -std=c99 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/glfw_opengl4/Makefile b/demo/glfw_opengl4/Makefile index be7da50a5..689c19ea1 100644 --- a/demo/glfw_opengl4/Makefile +++ b/demo/glfw_opengl4/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -g -std=c89 -Wall -Wextra -pedantic +CFLAGS += -g -std=c99 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/glfw_vulkan/Makefile b/demo/glfw_vulkan/Makefile index e738e13f6..68f6210d7 100644 --- a/demo/glfw_vulkan/Makefile +++ b/demo/glfw_vulkan/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic +CFLAGS += -std=c99 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/rawfb/sdl/Makefile b/demo/rawfb/sdl/Makefile index 94c189b5b..73d7b178d 100644 --- a/demo/rawfb/sdl/Makefile +++ b/demo/rawfb/sdl/Makefile @@ -1,4 +1,4 @@ -CFLAGS+=`sdl2-config --cflags --libs` -std=c89 -Wall -Wextra -pedantic -Wno-unused-function -O0 -g -fvisibility=hidden `pkg-config SDL2_ttf --cflags --libs` +CFLAGS+=`sdl2-config --cflags --libs` -std=c99 -Wall -Wextra -pedantic -Wno-unused-function -O0 -g -fvisibility=hidden `pkg-config SDL2_ttf --cflags --libs` .PHONY: clean diff --git a/demo/rawfb/x11/Makefile b/demo/rawfb/x11/Makefile index 57f6217e7..43adceace 100644 --- a/demo/rawfb/x11/Makefile +++ b/demo/rawfb/x11/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function +CFLAGS += -std=c99 -Wall -Wextra -pedantic -Wno-unused-function SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/sdl3_renderer/Makefile b/demo/sdl3_renderer/Makefile index 6022302ab..917f96acf 100644 --- a/demo/sdl3_renderer/Makefile +++ b/demo/sdl3_renderer/Makefile @@ -23,7 +23,7 @@ BINEXT := ${binext_${OSNAME}} TEMPDIR := ./bin BIN := ${TEMPDIR}/demo${BINEXT} -cflags += -std=c89 -Wall -Wextra -pedantic +cflags += -std=c99 -Wall -Wextra -pedantic #cflags += -O2 cflags += -O0 -g #cflags += -fsanitize=address diff --git a/demo/sdl_opengl2/Makefile b/demo/sdl_opengl2/Makefile index 398d16fa5..9ba54bc96 100644 --- a/demo/sdl_opengl2/Makefile +++ b/demo/sdl_opengl2/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -DSDL_DISABLE_IMMINTRIN_H +CFLAGS += -std=c99 -Wall -Wextra -pedantic -DSDL_DISABLE_IMMINTRIN_H SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/sdl_opengl3/Makefile b/demo/sdl_opengl3/Makefile index 6af5058f9..e585a5e68 100644 --- a/demo/sdl_opengl3/Makefile +++ b/demo/sdl_opengl3/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -g -std=c89 -Wall -Wextra -pedantic -DSDL_DISABLE_IMMINTRIN_H +CFLAGS += -g -std=c99 -Wall -Wextra -pedantic -DSDL_DISABLE_IMMINTRIN_H SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/sdl_opengles2/Makefile b/demo/sdl_opengles2/Makefile index b445c779a..e603967a0 100644 --- a/demo/sdl_opengles2/Makefile +++ b/demo/sdl_opengles2/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -DSDL_DISABLE_IMMINTRIN_H +CFLAGS += -std=c99 -Wall -Wextra -pedantic -DSDL_DISABLE_IMMINTRIN_H #CFLAGS += -Os SRC = main.c diff --git a/demo/sdl_renderer/Makefile b/demo/sdl_renderer/Makefile index b02f71b7e..60316aa3e 100644 --- a/demo/sdl_renderer/Makefile +++ b/demo/sdl_renderer/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -DSDL_DISABLE_IMMINTRIN_H +CFLAGS += -std=c99 -Wall -Wextra -pedantic -DSDL_DISABLE_IMMINTRIN_H #CFLAGS += -O2 CFLAGS += `sdl2-config --cflags` diff --git a/demo/sdl_vulkan/Makefile b/demo/sdl_vulkan/Makefile index 33e2a7019..28f67688b 100644 --- a/demo/sdl_vulkan/Makefile +++ b/demo/sdl_vulkan/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic +CFLAGS += -std=c99 -Wall -Wextra -pedantic #CFLAGS += -fsanitize=address -O2 CFLAGS += -DSDL_DISABLE_IMMINTRIN_H diff --git a/demo/x11/Makefile b/demo/x11/Makefile index edd46582c..77659bf6a 100644 --- a/demo/x11/Makefile +++ b/demo/x11/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -g -std=c89 -Wall -Wextra -pedantic -Wno-unused-function -D_POSIX_C_SOURCE=200809L +CFLAGS += -g -std=c99 -Wall -Wextra -pedantic -Wno-unused-function -D_POSIX_C_SOURCE=200809L SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/x11_opengl2/Makefile b/demo/x11_opengl2/Makefile index 025d9b174..a141a080e 100644 --- a/demo/x11_opengl2/Makefile +++ b/demo/x11_opengl2/Makefile @@ -6,7 +6,7 @@ CC ?= clang DCC = gcc # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic +CFLAGS += -std=c99 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/x11_opengl3/Makefile b/demo/x11_opengl3/Makefile index 025d9b174..a141a080e 100644 --- a/demo/x11_opengl3/Makefile +++ b/demo/x11_opengl3/Makefile @@ -6,7 +6,7 @@ CC ?= clang DCC = gcc # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic +CFLAGS += -std=c99 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/xcb_cairo/Makefile b/demo/xcb_cairo/Makefile index 082f9a3a8..b16b357e5 100644 --- a/demo/xcb_cairo/Makefile +++ b/demo/xcb_cairo/Makefile @@ -1,6 +1,6 @@ # Target BIN = demo -CFLAGS += -std=c89 -pedantic +CFLAGS += -std=c99 -pedantic LDFLAGS += -lm SRC = ${wildcard *.c} OBJ = $(SRC:.c=.o) diff --git a/nuklear.h b/nuklear.h index 3f77eb7d1..ae84b33c2 100644 --- a/nuklear.h +++ b/nuklear.h @@ -3,7 +3,7 @@ * Single-header ANSI C immediate mode cross-platform GUI library. * * VERSION: - * v4.13.3 + * v5.0.0-dev * * HOMEPAGE: * https://github.com/Immediate-Mode-UI/Nuklear/ @@ -21,7 +21,7 @@ * HIGHLIGHTS: * - Graphical user interface toolkit * - Single header library - * - Written in C89 (a.k.a. ANSI C or ISO C90) + * - Written in C99 (a.k.a. ISO C99) * - Small codebase (~18kLOC) * - Focus on portability, efficiency and simplicity * - No dependencies (not even the standard library if not wanted) diff --git a/src/HEADER.h b/src/HEADER.h index ef59d6a62..5dfba1f67 100644 --- a/src/HEADER.h +++ b/src/HEADER.h @@ -3,7 +3,7 @@ * Single-header ANSI C immediate mode cross-platform GUI library. * * VERSION: - * v4.13.3 + * v5.0.0-dev * * HOMEPAGE: * https://github.com/Immediate-Mode-UI/Nuklear/ @@ -21,7 +21,7 @@ * HIGHLIGHTS: * - Graphical user interface toolkit * - Single header library - * - Written in C89 (a.k.a. ANSI C or ISO C90) + * - Written in C99 (a.k.a. ISO C99) * - Small codebase (~18kLOC) * - Focus on portability, efficiency and simplicity * - No dependencies (not even the standard library if not wanted) diff --git a/src/HEADER.md b/src/HEADER.md index 311fe2b1b..05bfa2fb5 100644 --- a/src/HEADER.md +++ b/src/HEADER.md @@ -37,7 +37,7 @@ render backends it only focuses on the actual UI. ## Highlights - Graphical user interface toolkit - Single header library -- Written in C89 (a.k.a. ANSI C or ISO C90) +- Written in C99 (a.k.a. ISO C99) - Small codebase (~18kLOC) - Focus on portability, efficiency and simplicity - No dependencies (not even the standard library if not wanted)