OSDN Git Service

patch src/
[jnethack/source.git] / src / hacklib.c
index a590968..83e48c3 100644 (file)
@@ -107,6 +107,9 @@ char *s;
     register char *p;
 
     for (p = s; *p; p++)
+#if 1 /*JP*//*\8a¿\8e\9a\82Í\8f¬\95\8e\9a\89»\82µ\82È\82¢*/
+        if (is_kanji(*(unsigned char *)p)) p++; else
+#endif
         if ('A' <= *p && *p <= 'Z')
             *p |= 040;
     return s;
@@ -120,6 +123,9 @@ char *s;
     register char *p;
 
     for (p = s; *p; p++)
+#if 1 /*JP*//*\8a¿\8e\9a\82Í\91å\95\8e\9a\89»\82µ\82È\82¢*/
+        if (is_kanji(*(unsigned char *)p)) p++; else
+#endif
         if ('a' <= *p && *p <= 'z')
             *p &= ~040;
     return s;
@@ -265,6 +271,7 @@ const char *s;
     Static char buf[BUFSZ];
 
     Strcpy(buf, s);
+#if 0 /*JP*//*\93ú\96{\8cê\82Å\82Í\8f\8a\97L\8ai\82Ìs\82ð\95t\82¯\82È\82¢*/
     if (!strcmpi(buf, "it")) /* it -> its */
         Strcat(buf, "s");
     else if (!strcmpi(buf, "you")) /* you -> your */
@@ -273,6 +280,7 @@ const char *s;
         Strcat(buf, "'");
     else /* X -> X's */
         Strcat(buf, "'s");
+#endif
     return buf;
 }