Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ci_compile_sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ CC=cc
SRCDIR=./src

set -- ""
set -- "$@" -std=c89
set -- "$@" -std=c99
set -- "$@" -Wall
set -- "$@" -Wextra
set -- "$@" -pedantic
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion clib.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion demo/allegro5/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion demo/glfw_opengl3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion demo/glfw_opengl4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion demo/glfw_vulkan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion demo/rawfb/sdl/Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion demo/rawfb/x11/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion demo/sdl3_renderer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion demo/sdl_opengl2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion demo/sdl_opengl3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion demo/sdl_opengles2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion demo/sdl_renderer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion demo/sdl_vulkan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion demo/x11/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion demo/x11_opengl2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion demo/x11_opengl3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion demo/xcb_cairo/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Target
BIN = demo
CFLAGS += -std=c89 -pedantic
CFLAGS += -std=c99 -pedantic
LDFLAGS += -lm
SRC = ${wildcard *.c}
OBJ = $(SRC:.c=.o)
Expand Down
4 changes: 2 additions & 2 deletions nuklear.h
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/HEADER.h
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/HEADER.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading