mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
This prevents passing a negative value out of a signed char by accident. Also renders some casts in the code superfluous.
15 lines
301 B
C
15 lines
301 B
C
/*
|
|
* This file is part of RGBDS.
|
|
*
|
|
* Copyright (c) 2018, Antonio Nino Diaz and RGBDS contributors.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef EXTERN_UTF8DECODER_H
|
|
#define EXTERN_UTF8DECODER_H
|
|
|
|
uint32_t decode(uint32_t *state, uint32_t *codep, uint8_t byte);
|
|
|
|
#endif /* EXTERN_UTF8DECODER_H */
|