mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
With permission from the main authors [1], most of the code has been relicensed under the MIT license. SPDX license identifiers are used so that the license headers in source code files aren't too large. Add CONTRIBUTORS.rst file. [1] https://github.com/rednex/rgbds/issues/128 Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
28 lines
561 B
C
28 lines
561 B
C
/*
|
|
* This file is part of RGBDS.
|
|
*
|
|
* Copyright (c) 1997-2018, Carsten Sorensen and RGBDS contributors.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef RGBDS_ASM_CHARMAP_H
|
|
#define RGBDS_ASM_CHARMAP_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define MAXCHARMAPS 512
|
|
#define CHARMAPLENGTH 16
|
|
|
|
struct Charmap {
|
|
int32_t count;
|
|
char input[MAXCHARMAPS][CHARMAPLENGTH + 1];
|
|
char output[MAXCHARMAPS];
|
|
};
|
|
|
|
int32_t readUTF8Char(char *destination, char *source);
|
|
int32_t charmap_Add(char *input, uint8_t output);
|
|
int32_t charmap_Convert(char **input);
|
|
|
|
#endif /* RGBDS_ASM_CHARMAP_H */
|