updated headers to reduce warnings

This commit is contained in:
farisawan-2000
2020-12-15 23:10:28 -05:00
parent 93283ed408
commit 9597bc91c3
3 changed files with 8 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
#ifndef S2D_CONFIG_H
#define S2D_CONFIG_H
#define const
// include your font header here
#include "fonts/impact.h"

View File

@@ -15,7 +15,7 @@ int s2d_colorFrames = 0;
extern u32 gGlobalTimer;
void s2d_snprint(int x, int y, char *str, uObjMtx *buf, int len) {
void s2d_snprint(int x, int y, const char *str, uObjMtx *buf, int len) {
char *p = str;
int tx = 0, ty = 0;
int tmp_len = 0;
@@ -94,7 +94,7 @@ void s2d_print(int x, int y, const char *str, uObjMtx *buf) {
s2d_snprint(x, y, str, buf, s2d_strlen(str));
}
void s2d_type_print(int x, int y, char *str, uObjMtx *buf, int *pos) {
void s2d_type_print(int x, int y, const char *str, uObjMtx *buf, int *pos) {
int len = s2d_strlen(str);
s2d_snprint(x, y, str, buf, *pos);
@@ -105,7 +105,7 @@ void s2d_type_print(int x, int y, char *str, uObjMtx *buf, int *pos) {
}
}
void s2d_vsprint(int x, int y, uObjMtx *buf, char *str, ...) {
void s2d_vsprint(int x, int y, uObjMtx *buf, const char *str, ...) {
va_list args;
va_start(args, str);
// vsprintf(str, )

View File

@@ -17,7 +17,7 @@
#define CH_GET_NEXT(x) (*(++x))
#define CH_SKIP(x) {x++;}
extern void s2d_snprint(int x, int y, char *str, uObjMtx *buf, int len);
extern void s2d_snprint(int x, int y, const char *str, uObjMtx *buf, int len);
extern void s2d_print(int x, int y, const char *str, uObjMtx *buf);
extern void s2d_type_print(int x, int y, char *str, uObjMtx *buf, int *pos);
extern void s2d_vsprint(int x, int y, uObjMtx *buf, char *str, ...);
extern void s2d_type_print(int x, int y, const char *str, uObjMtx *buf, int *pos);
extern void s2d_vsprint(int x, int y, uObjMtx *buf, const char *str, ...);