summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-01 23:38:51 -0500
committerpommicket <pommicket@gmail.com>2023-01-01 23:38:51 -0500
commit8c16344d5279eef6ed6ad18d4de7e8a2a5bf2f98 (patch)
treee56a9102b9317b51ace48ce0cba37d5397d6105b /ted.h
parent94b241351c7418c2f6a32cc01b889bc48478c50d (diff)
char const => const char
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ted.h b/ted.h
index f649bff..448b0b1 100644
--- a/ted.h
+++ b/ted.h
@@ -593,7 +593,7 @@ typedef struct Ted {
} Ted;
// === colors.c ===
-ColorSetting color_setting_from_str(char const *str);
+ColorSetting color_setting_from_str(const char *str);
const char *color_setting_to_str(ColorSetting s);
Status color_from_str(const char *str, u32 *color);
ColorSetting color_for_symbol_kind(SymbolKind kind);
@@ -604,13 +604,13 @@ void gl_rc_sab_decref(GlRcSAB **ps);
GlRcTexture *gl_rc_texture_new(GLuint texture);
void gl_rc_texture_incref(GlRcTexture *t);
void gl_rc_texture_decref(GlRcTexture **pt);
-GLuint gl_compile_shader(char error_buf[256], char const *code, GLenum shader_type);
+GLuint gl_compile_shader(char error_buf[256], const char *code, GLenum shader_type);
GLuint gl_link_program(char error_buf[256], GLuint *shaders, size_t count);
-GLuint gl_compile_and_link_shaders(char error_buf[256], char const *vshader_code, char const *fshader_code);
+GLuint gl_compile_and_link_shaders(char error_buf[256], const char *vshader_code, const char *fshader_code);
// prints a debug message if `attrib` is not found
-GLuint gl_attrib_location(GLuint program, char const *attrib);
+GLuint gl_attrib_location(GLuint program, const char *attrib);
// prints a debug message if `uniform` is not found
-GLint gl_uniform_location(GLuint program, char const *uniform);
+GLint gl_uniform_location(GLuint program, const char *uniform);
void gl_geometry_init(void);
void gl_geometry_rect(Rect r, u32 color_rgba);
void gl_geometry_rect_border(Rect r, float border_thickness, u32 color);