You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
Replace header ifdef guards with #pragma once
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#ifndef HASHTABLE_H_
|
||||
#define HASHTABLE_H_
|
||||
#pragma once
|
||||
|
||||
typedef unsigned int (*HashFunc)(const void *item);
|
||||
typedef int (*HashValueCmpFunc)(const void *a, const void *b);
|
||||
@@ -9,5 +8,3 @@ struct HashTable *hashtable_new(HashFunc func, HashValueCmpFunc cmp, int size, i
|
||||
void hashtable_free(struct HashTable *ht);
|
||||
void hashtable_insert(struct HashTable *ht, const void *value);
|
||||
void *hashtable_query(struct HashTable *ht, const void *value);
|
||||
|
||||
#endif // HASHTABLE_H_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef LIBMIO0_H_
|
||||
#define LIBMIO0_H_
|
||||
#pragma once
|
||||
|
||||
// defines
|
||||
|
||||
@@ -46,5 +45,3 @@ int mio0_decode_file(const char *in_file, unsigned long offset, const char *out_
|
||||
// in_file: input filename containing raw data to be encoded
|
||||
// out_file: output filename to write MIO0 compressed data to
|
||||
int mio0_encode_file(const char *in_file, const char *out_file);
|
||||
|
||||
#endif // LIBMIO0_H_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef N64CKSUM_H_
|
||||
#define N64CKSUM_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -12,5 +11,3 @@ void n64cksum_calc_6102(unsigned char *buf, unsigned int cksum[]);
|
||||
// buf: buffer containing ROM data
|
||||
// checksums are written into the buffer
|
||||
void n64cksum_update_checksums(uint8_t *buf);
|
||||
|
||||
#endif // N64CKSUM_H_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef N64GRAPHICS_H_
|
||||
#define N64GRAPHICS_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -96,5 +95,3 @@ const char *n64graphics_get_read_version(void);
|
||||
|
||||
// get version of underlying graphics writing library
|
||||
const char *n64graphics_get_write_version(void);
|
||||
|
||||
#endif // N64GRAPHICS_H_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef N64GRAPHICS_CI_H_
|
||||
#define N64GRAPHICS_CI_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -38,5 +37,3 @@ const char *n64graphics_get_read_version(void);
|
||||
|
||||
// get version of underlying graphics writing library
|
||||
const char *n64graphics_get_write_version(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef UTILS_H_
|
||||
#define UTILS_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -149,5 +148,3 @@ void dir_list_free(dir_list *list);
|
||||
// suffix: string to see if 'str' ends with
|
||||
// returns 1 if 'str' ends with 'suffix'
|
||||
int str_ends_with(const char *str, const char *suffix);
|
||||
|
||||
#endif // UTILS_H_
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#ifndef UTF8_H_
|
||||
#define UTF8_H_
|
||||
#pragma once
|
||||
|
||||
char *utf8_decode(char *str, uint32_t *codep);
|
||||
|
||||
#endif // UTF8_H_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef UTILS_H_
|
||||
#define UTILS_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
@@ -148,5 +147,3 @@ void dir_list_free(dir_list *list);
|
||||
// suffix: string to see if 'str' ends with
|
||||
// returns 1 if 'str' ends with 'suffix'
|
||||
int str_ends_with(const char *str, const char *suffix);
|
||||
|
||||
#endif // UTILS_H_
|
||||
|
||||
Reference in New Issue
Block a user