4a081501d8
- bios/conio/env/errno/gfx/io/mem/mouse/stdio/stdlib/string/sys/time/ video разложены по модулям: общие статики и helpers — в internal _-модулях (_conio.h/_mouse.h/_gfx.h/_palette.h/_atexit.h/_time.h) - lib/Makefile: LIBC_C = wildcard libc/*/*.c — гранулярность файлов = гранулярность DCE линкера - эффект _CODE: gfx_text 6986→2568 Б, gfx_mous −1745, gfx_demo/d16 −542; ранее timedir −3270, ls −3098, stattest −2995 - комментарии оставшихся модулей переведены на русский; puts: убран мёртвый pchars; videomode_raw разложен на get/set - docs/libc-split-asm-cases.md — правила asm-связок между модулями; docs/libc-roadmap.md — план этапа - восстановлен examples/mdview/SAMPLE.MD (нужен make floppy) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
375 B
C
18 lines
375 B
C
#ifndef STDLIB_H
|
|
#define STDLIB_H
|
|
|
|
/* Chain to SDCC's own stdlib.h (malloc/free/atoi/strtol/rand/qsort/…) —
|
|
* this header only ADDS Sprinter extensions and must not shadow the
|
|
* standard declarations. */
|
|
#include_next <stdlib.h>
|
|
|
|
#include <stddef.h> /* size_t */
|
|
#include <stdint.h>
|
|
|
|
|
|
int16_t min(int16_t a, int16_t b);
|
|
int16_t max(int16_t a, int16_t b);
|
|
|
|
|
|
#endif
|