mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Avoid allocating a *ton* of data per charmap Stop relying on uninitialized data in charmap nodes Only initialize charmap nodes lazily
23 lines
566 B
C
23 lines
566 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>
|
|
|
|
struct Charmap *charmap_New(const char *name, const char *baseName);
|
|
void charmap_Delete(struct Charmap *charmap);
|
|
void charmap_Set(const char *name);
|
|
void charmap_Push(void);
|
|
void charmap_Pop(void);
|
|
void charmap_Add(char *mapping, uint8_t value);
|
|
size_t charmap_Convert(char const *input, uint8_t *output);
|
|
|
|
#endif /* RGBDS_ASM_CHARMAP_H */
|