/** * hakmem_smallmid.h - Small-Mid Allocator Stub (archived implementation) * * 現在のコードベースでは SmallMid フロント/バックエンドは使用せず、 * Tiny/Tiny-Plus で 1KB までを処理します。 * * ただし、既存の境界(hak_alloc_api / hakmem_tiny からの呼び出し)は維持するため、 * API だけを残した「常に無効な Stub Box」として定義します。 * * 元の実装は archive/smallmid/ 以下に移動済みです。 */ #ifndef HAKMEM_SMALLMID_H #define HAKMEM_SMALLMID_H #include #include #ifdef __cplusplus extern "C" { #endif // 旧実装と互換の定数だけ残す(値は使われないがビルドを安定させる) #define SMALLMID_NUM_CLASSES 3 // 便宜上の範囲定義(小さくしておくが、smallmid_is_enabled()==false なので実行はされない) #define SMALLMID_MIN_SIZE (256) #define SMALLMID_MAX_SIZE (1024) // API スタブ // 旧実装と互換のヘルパー(インライン宣言のみ、実体は stub .c で定義) bool smallmid_is_in_range(size_t size); void smallmid_init(void); void* smallmid_alloc(size_t size); void smallmid_free(void* ptr); void smallmid_thread_exit(void); // SmallMid が有効かどうか(現在は常に false を返す stub 実装) bool smallmid_is_enabled(void); #ifdef __cplusplus } #endif #endif // HAKMEM_SMALLMID_H