mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-18 17:35:45 +01:00
move /src/util/intdef.h to /src/util/types.h
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include <time.h>
|
||||
|
||||
#include "../error.h"
|
||||
#include "../util/intdef.h"
|
||||
#include "../types.h"
|
||||
|
||||
#define SECTOR 0x1000 // sector size
|
||||
#define TABLE 0x800 // table (total) element count
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../types.h"
|
||||
#include "../util/atrb.h"
|
||||
#include "../util/intdef.h"
|
||||
|
||||
/* contains chunk metadata */
|
||||
struct mcx_chunk {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../util/intdef.h"
|
||||
#include "../types.h"
|
||||
|
||||
#define MAX_DEPTH 512
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../types.h"
|
||||
#include "../util/atrb.h"
|
||||
#include "../util/intdef.h"
|
||||
|
||||
/* NBT (named binary tag) is a tree data structure. Tags have a numeric type ID, name and a payload.
|
||||
* NBT files are a compressed `compound` tag. GZip is the compression used in most cases,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "util/intdef.h"
|
||||
#include "types.h"
|
||||
|
||||
static void error_log(FILE *restrict stream, const char *restrict pfx, uint ln, const char *restrict file, const char *restrict fmt, va_list ap) {
|
||||
fprintf(stream, "(%s:%u) [%s] '", file, ln, pfx);
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "util/atrb.h"
|
||||
#include "util/intdef.h"
|
||||
#include "util/macro.h"
|
||||
|
||||
void error_debug(uint ln, const char *restrict file, const char *restrict fmt, ...);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "../error.h"
|
||||
#include "../util/intdef.h"
|
||||
#include "../types.h"
|
||||
#include "shader.h"
|
||||
|
||||
#define VERTC 3
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <glad/gl.h>
|
||||
|
||||
#include "../error.h"
|
||||
#include "../util/intdef.h"
|
||||
#include "../types.h"
|
||||
#include "input.h"
|
||||
#include "render.h"
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../types.h"
|
||||
#include "../error.h"
|
||||
#include "atrb.h"
|
||||
#include "intdef.h"
|
||||
|
||||
int conf_procbuf(const char *restrict buf, char *restrict kout, char *restrict vout, usize len) {
|
||||
bool feq = false; // whether we've found the equal sign
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../types.h"
|
||||
#include "atrb.h"
|
||||
#include "intdef.h"
|
||||
|
||||
/* error codes */
|
||||
enum conf_err {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Licensed under the MIT Licence. See LICENSE for details */
|
||||
#pragma once
|
||||
|
||||
#include "intdef.h"
|
||||
#include "../types.h"
|
||||
|
||||
#if defined(__has_attribute) && __has_attribute(vector_size)
|
||||
typedef float fvec2 __attribute__((vector_size(sizeof(float) * 2))); // SMID vector for 2 `float`
|
||||
|
||||
Reference in New Issue
Block a user