• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

JNetHackのソースをいじくったものを置いておくための場所


Commit MetaInfo

Révision9cb23ea26fe57ac2161c5fbc52707dda1120d471 (tree)
l'heure2018-01-22 03:42:21
AuteurSHIRAKATA Kentaro <argrath@ub32...>
CommiterSHIRAKATA Kentaro

Message de Log

eliminate warnings

Change Summary

Modification

--- a/src/apply.c
+++ b/src/apply.c
@@ -240,7 +240,9 @@ int rx, ry, *resp;
240240 {
241241 char buf[BUFSZ];
242242 boolean more_corpses;
243+#if 0 /*JP*/
243244 struct permonst *mptr;
245+#endif
244246 struct obj *corpse = sobj_at(CORPSE, rx, ry),
245247 *statue = sobj_at(STATUE, rx, ry);
246248
--- a/src/artifact.c
+++ b/src/artifact.c
@@ -986,7 +986,11 @@ boolean vis; /* whether the action can be seen */
986986 char *hittee; /* target's name: "you" or mon_nam(mdef) */
987987 {
988988 struct permonst *old_uasmon;
989+#if 0 /*JP*/
989990 const char *verb, *fakename;
991+#else
992+ const char *verb;
993+#endif
990994 boolean youattack = (magr == &youmonst), youdefend = (mdef == &youmonst),
991995 resisted = FALSE, do_stun, do_confuse, result;
992996 int attack_indx, scare_dieroll = MB_MAX_DIEROLL / 2;
--- a/src/attrib.c
+++ b/src/attrib.c
@@ -926,7 +926,9 @@ int propidx; /* special cases can have negative values */
926926 static NEARDATA const char because_of[] = "%sによって";
927927
928928 if (propidx >= 0) {
929+#if 0 /*JP*/
929930 char *p;
931+#endif
930932 struct obj *obj = (struct obj *) 0;
931933 int innate = is_innate(propidx);
932934
--- a/src/do.c
+++ b/src/do.c
@@ -1819,7 +1819,9 @@ boolean at_stairs, falling, portal;
18191819 #endif
18201820 };
18211821 const char *mesg;
1822+#if 0 /*JP*/
18221823 char buf[BUFSZ];
1824+#endif
18231825 int which = rn2(4);
18241826
18251827 if (Hallucination)
--- a/src/eat.c
+++ b/src/eat.c
@@ -1393,7 +1393,9 @@ struct obj *obj;
13931393 int mnum;
13941394 char *buf;
13951395 {
1396+#if 0 /*JP*/
13961397 char buf2[BUFSZ];
1398+#endif
13971399 int r = tin_variety(obj, TRUE);
13981400
13991401 if (obj && buf) {
--- a/src/mhitu.c
+++ b/src/mhitu.c
@@ -718,7 +718,11 @@ register struct monst *mtmp;
718718
719719 if (!rn2(10) && !mtmp->mcan) {
720720 int numseen, numhelp;
721+#if 0 /*JP*/
721722 char buf[BUFSZ], genericwere[BUFSZ];
723+#else
724+ char genericwere[BUFSZ];
725+#endif
722726
723727 /*JP
724728 Strcpy(genericwere, "creature");
--- a/src/objnam.c
+++ b/src/objnam.c
@@ -1080,9 +1080,11 @@ boolean with_price;
10801080 boolean known, cknown, bknown, lknown;
10811081 int omndx = obj->corpsenm;
10821082 char prefix[PREFIX];
1083+#if 0 /*JP*/
10831084 char tmpbuf[PREFIX + 1]; /* for when we have to add something at
10841085 the start of prefix instead of the
10851086 end (Strcat is used on the end) */
1087+#endif
10861088 register char *bp = xname(obj);
10871089 #if 1 /*JP*//*順序入れ替えに使う*/
10881090 char preprefix[PREFIX];
@@ -3034,15 +3036,15 @@ struct obj *no_wish;
30343036 int eroded, eroded2, erodeproof;
30353037 int halfeaten, mntmp, contents;
30363038 int islit, unlabeled, ishistoric, isdiluted, trapped;
3039+#if 0 /*JP*/
30373040 int tmp, tinv, tvariety;
3041+#else
3042+ int tvariety;
3043+#endif
30383044 int wetness;
30393045 struct fruit *f;
30403046 int ftype = context.current_fruit;
30413047 char fruitbuf[BUFSZ];
3042-#if 1 /*JP*/
3043- char buf[BUFSZ];
3044- char pfx[BUFSZ];
3045-#endif
30463048 /* Fruits may not mess up the ability to wish for real objects (since
30473049 * you can leave a fruit in a bones file and it will be added to
30483050 * another person's game), so they must be checked for last, after
--- a/src/polyself.c
+++ b/src/polyself.c
@@ -541,7 +541,11 @@ int psflags;
541541 You("鱗の鎧と一体化した.");
542542 } else { /* dragon scale mail */
543543 /* d.scale mail first reverts to scales */
544+#if 0 /*JP*/
544545 char *p, *dsmail;
546+#else
547+ char *dsmail;
548+#endif
545549
546550 /* similar to noarmor(invent.c),
547551 shorten to "<color> scale mail" */
@@ -1183,7 +1187,11 @@ drop_weapon(alone)
11831187 int alone;
11841188 {
11851189 struct obj *otmp;
1190+#if 0 /*JP*/
11861191 const char *what, *which, *whichtoo;
1192+#else
1193+ const char *which, *whichtoo;
1194+#endif
11871195 boolean candropwep, candropswapwep;
11881196
11891197 if (uwep) {
--- a/src/potion.c
+++ b/src/potion.c
@@ -268,7 +268,9 @@ boolean talk;
268268 {
269269 long old = Blinded;
270270 boolean u_could_see, can_see_now;
271+#if 0 /*JP*/
271272 const char *eyes;
273+#endif
272274
273275 /* we need to probe ahead in case the Eyes of the Overworld
274276 are or will be overriding blindness */
--- a/src/role.c
+++ b/src/role.c
@@ -1947,7 +1947,11 @@ int buflen, rolenum, racenum, gendnum, alignnum;
19471947 */
19481948 const char *defprompt = "適当にキャラクターを選んでよいですか?[ynaq] ";
19491949 int num_post_attribs = 0;
1950+#if 0 /*JP*/
19501951 char tmpbuf[BUFSZ], *p;
1952+#else
1953+ char tmpbuf[BUFSZ];
1954+#endif
19511955
19521956 if (buflen < QBUFSZ)
19531957 return (char *) defprompt;
--- a/src/shk.c
+++ b/src/shk.c
@@ -2690,7 +2690,11 @@ const char *fmt; /* "%s %ld %s %s", doname(obj), amt, plur(amt), arg */
26902690 long amt;
26912691 const char *arg;
26922692 {
2693+#if 0 /*JP*/
26932694 char *obj_name, fmtbuf[BUFSZ];
2695+#else
2696+ char *obj_name;
2697+#endif
26942698 boolean was_unknown = !obj->dknown;
26952699
26962700 obj->dknown = TRUE;
@@ -3451,7 +3455,11 @@ xchar x, y;
34513455 }
34523456 } else {
34533457 char qbuf[BUFSZ], qsfx[BUFSZ];
3458+#if 0 /*JP*/
34543459 boolean short_funds = (offer > shkmoney), one;
3460+#else
3461+ boolean short_funds = (offer > shkmoney);
3462+#endif
34553463
34563464 if (short_funds)
34573465 offer = shkmoney;
--- a/src/steal.c
+++ b/src/steal.c
@@ -100,8 +100,10 @@ register struct monst *mtmp;
100100 register struct obj *fgold = g_at(u.ux, u.uy);
101101 register struct obj *ygold;
102102 register long tmp;
103+#if 0 /*JP*/
103104 struct monst *who;
104105 const char *whose, *what;
106+#endif
105107
106108 /* skip lesser coins on the floor */
107109 while (fgold && fgold->otyp != GOLD_PIECE)
--- a/src/topten.c
+++ b/src/topten.c
@@ -110,7 +110,9 @@ int how;
110110 /* PANICKED, TRICKED, QUIT, ESCAPED, ASCENDED */
111111 "", "", "", "", ""
112112 };
113+#if 0 /*JP*/
113114 unsigned l;
115+#endif
114116 char *kname = killer.name;
115117
116118 buf[0] = '\0'; /* so strncat() can find the end */
@@ -826,7 +828,11 @@ boolean so;
826828 {
827829 boolean second_line = TRUE;
828830 char linebuf[BUFSZ];
831+#if 0 /*JP*/
829832 char *bp, hpbuf[24], linebuf3[BUFSZ];
833+#else
834+ char *bp, hpbuf[24];
835+#endif
830836 int hppos, lngr;
831837 #if 1 /*JP*/
832838 char who[BUFSZ];
--- a/src/weapon.c
+++ b/src/weapon.c
@@ -719,7 +719,9 @@ register struct monst *mon;
719719 */
720720 if (mw_tmp && mwelded(mw_tmp)) {
721721 if (canseemon(mon)) {
722+#if 0 /*JP*/
722723 char welded_buf[BUFSZ];
724+#endif
723725 const char *mon_hand = mbodypart(mon, HAND);
724726
725727 if (bimanual(mw_tmp))
--- a/src/wield.c
+++ b/src/wield.c
@@ -483,7 +483,9 @@ struct obj *obj;
483483 const char *verb; /* "rub",&c */
484484 {
485485 const char *what;
486+#if 0 /*JP*/
486487 boolean more_than_1;
488+#endif
487489
488490 if (obj == uwep)
489491 return TRUE; /* nothing to do if already wielding it */
--- a/src/write.c
+++ b/src/write.c
@@ -100,7 +100,11 @@ dowrite(pen)
100100 register struct obj *pen;
101101 {
102102 register struct obj *paper;
103+#if 0 /*JP*/
103104 char namebuf[BUFSZ], *nm, *bp;
105+#else
106+ char namebuf[BUFSZ], *nm;
107+#endif
104108 register struct obj *new_obj;
105109 int basecost, actualcost;
106110 int curseval;
--- a/sys/winnt/nttty.c
+++ b/sys/winnt/nttty.c
@@ -500,7 +500,7 @@ int ch2;
500500
501501 attrs[0] = attrs[1] = attr;
502502
503- WriteConsoleOutputAttribute(hConOut,&attrs,2,
503+ WriteConsoleOutputAttribute(hConOut,(WORD *)(&attrs),2,
504504 cursor,&acount);
505505 WriteConsoleOutputCharacter(hConOut,buf,2,
506506 cursor,&ccount);