OSDN Git Service

add "while helpless" support
authorSHIRAKATA Kentaro <argrath@ub32.org>
Sat, 16 May 2020 11:47:52 +0000 (20:47 +0900)
committerSHIRAKATA Kentaro <argrath@ub32.org>
Sun, 13 Dec 2020 16:24:07 +0000 (01:24 +0900)
src/topten.c

index 9a5d741..43d12a0 100644 (file)
@@ -124,6 +124,14 @@ boolean incl_helpless;
 #endif
 
     buf[0] = '\0'; /* lint suppression */
+#if 1 /*JP*//*\91O\82É\8e\9d\82Á\82Ä\82­\82é*/
+    if (incl_helpless && multi) {
+        if (multi_reason)
+            Sprintf(buf, "%s\81C", multi_reason);
+        else
+            Strcpy(buf, "\8f\95\82¯\82ð\8eó\82¯\82ç\82ê\82È\82¢\8aÔ\82É\81C");
+    }
+#endif
 #if 1 /*JP*//*\90æ\82É\91Î\8fÛ\82ð\83R\83s\81[*/
     strncat(buf, kname, siz - 1);
     siz -= strlen(buf);
@@ -180,7 +188,7 @@ boolean incl_helpless;
     *buf = '\0';
 #endif
 
-#if 0 /*JP*//*JP:TODO:\8e\80\88ö\82Ì\91O\82É\8e\9d\82Á\82Ä\8ds\82©\82È\82¯\82ê\82Î\82È\82ç\82È\82¢*/
+#if 0 /*JP*//*\91O\82É\8e\9d\82Á\82Ä\8ds\82­*/
     if (incl_helpless && multi) {
         /* X <= siz: 'sizeof "string"' includes 1 for '\0' terminator */
         if (multi_reason && strlen(multi_reason) + sizeof ", while " <= siz)