mirb: use ISSPACE/ISALNUM from mruby.h, remove stale ctype.h

Remove redundant local ISSPACE/ISALNUM definitions from
mirb_completion.c and unused ctype.h includes from both
mirb_completion.c and mirb.c. The locale-independent macros
from mruby.h are already available via <mruby.h>.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2026-02-23 15:49:36 +09:00
parent 48c38c822f
commit 9a0e8e33ed
2 changed files with 0 additions and 11 deletions
-2
View File
@@ -24,8 +24,6 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#ifdef _WIN32
@@ -16,7 +16,6 @@
#include <mruby/value.h>
#include <mruby/variable.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
@@ -51,14 +50,6 @@ strndup(const char *s, size_t n)
#include <linenoise.h>
#endif
/* Helper macros */
#ifndef ISSPACE
#define ISSPACE(c) isspace((unsigned char)(c))
#endif
#ifndef ISALNUM
#define ISALNUM(c) isalnum((unsigned char)(c))
#endif
/* ============================================================
* Core Completion Engine
* ============================================================ */