summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-03 17:10:40 -0500
committerpommicket <pommicket@gmail.com>2023-01-03 17:10:40 -0500
commit0d92c03f3998fe4d16f3ba928d3a94583755e1ce (patch)
treea2afad849822433ea795ce6bc216321722e754f2 /config.c
parentbaae904ed2c97ba5c701442ec5ef6900715f785d (diff)
rename ted_seterr to ted_error
Diffstat (limited to 'config.c')
-rw-r--r--config.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/config.c b/config.c
index 45bc093..e94e164 100644
--- a/config.c
+++ b/config.c
@@ -162,7 +162,7 @@ static void config_err(ConfigReader *cfg, const char *fmt, ...) {
va_start(args, fmt);
vsnprintf(error + strlen(error), sizeof error - strlen(error) - 1, fmt, args);
va_end(args);
- ted_seterr(cfg->ted, "%s", error);
+ ted_error(cfg->ted, "%s", error);
}
static void context_copy(SettingsContext *dest, const SettingsContext *src) {
@@ -424,7 +424,7 @@ static void config_init_settings(void) {
void config_read(Ted *ted, ConfigPart **parts, const char *filename) {
FILE *fp = fopen(filename, "rb");
if (!fp) {
- ted_seterr(ted, "Couldn't open config file %s: %s.", filename, strerror(errno));
+ ted_error(ted, "Couldn't open config file %s: %s.", filename, strerror(errno));
return;
}
@@ -475,7 +475,7 @@ void config_read(Ted *ted, ConfigPart **parts, const char *filename) {
}
if (ferror(fp))
- ted_seterr(ted, "Error reading %s.", filename);
+ ted_error(ted, "Error reading %s.", filename);
fclose(fp);
}
@@ -604,7 +604,7 @@ uniform sampler2D t_texture;\n\
char error[512] = {0};
GLuint shader = gl_compile_and_link_shaders(error, vshader, fshader);
if (*error)
- ted_seterr(ted, "%s", error);
+ ted_error(ted, "%s", error);
if (shader) {
GLuint buffer = 0, array = 0;
glGenBuffers(1, &buffer);
@@ -649,7 +649,7 @@ static void settings_load_bg_texture(Ted *ted, Settings *s) {
if (texture) {
s->bg_texture = gl_rc_texture_new(texture);
} else {
- ted_seterr(ted, "Couldn't load image %s", path);
+ ted_error(ted, "Couldn't load image %s", path);
}
}