{
static unsigned char buf[1024];
const unsigned char *up;
- unsigned char *p, *pp;
+ unsigned char *p;
+#ifndef POSIX_ICONV
+ unsigned char *pp;
+#endif
if(!s)
return s;
{
static unsigned char buf[1024];
const unsigned char *up;
- unsigned char *p, *pp;
+ unsigned char *p;
+#ifndef POSIX_ICONV
+ unsigned char *pp;
+#endif
if(!s)
return s;
{
static unsigned int ibuf[2];
unsigned int c1, c2;
+#ifndef POSIX_ICONV
unsigned char uc[2];
unsigned char *p;
+#endif
if(!buf) buf = ibuf;
if(!f1) f1 = tty_jputc;
int rx, ry, *resp;
{
char buf[BUFSZ];
- boolean more_corpses;
#if 0 /*JP*/
+ boolean more_corpses;
struct permonst *mptr;
#endif
struct obj *corpse = sobj_at(CORPSE, rx, ry),
else
statue = 0; /* corpse precedes statue; ignore statue */
}
+#if 0 /*JP*/
more_corpses = (corpse && nxtobj(corpse, CORPSE, TRUE));
+#endif
/* additional stethoscope messages from jyoung@apanix.apana.org.au */
if (!corpse && !statue) {
return TRUE;
} else if (corpse) {
+#if 0 /*JP*/
boolean here = (rx == u.ux && ry == u.uy),
one = (corpse->quan == 1L && !more_corpses), reviver = FALSE;
+#else
+ boolean here = (rx == u.ux && ry == u.uy), reviver = FALSE;
+#endif
int visglyph, corpseglyph;
visglyph = glyph_at(rx, ry);
char *outbuf;
{
const char *modif, *bonus;
+#if 0 /*JP*/
boolean invrt;
+#endif
int absamt;
absamt = abs(incamt);
/* "bonus <foo>" (to hit) vs "<bar> bonus" (damage, defense) */
#if 0 /*JP*/
invrt = strcmp(inctyp, "to hit") ? TRUE : FALSE;
-#else
- invrt = strcmp(inctyp, "\96½\92\86\97¦") ? TRUE : FALSE;
#endif
#if 0 /*JP*/
}
if (!u.usteed) {
+#if 0 /*JP*/
const char *legs = body_part(LEG);
-#if 0 /*JP*/
if ((EWounded_legs & BOTH_SIDES) == BOTH_SIDES)
legs = makeplural(legs);
/* this used to say "somewhat better" but that was
char *bufp, buf[BUFSZ] = DUMMY, bufcpy[BUFSZ], qbuf[QBUFSZ];
const char *aname;
short objtyp;
-#if 1 /*JP*/
- boolean is_japanese = FALSE;
-#endif
/* Do this now because there's no point in even asking for a name */
if (obj->otyp == SPE_NOVEL) {
/* relax restrictions over proper capitalization for artifacts */
if ((aname = artifact_name(buf, &objtyp)) != 0 && objtyp == obj->otyp)
-#if 0 /*JP*/
Strcpy(buf, aname);
-#else
- {
- is_japanese = is_kanji(*buf);
- Strcpy(buf, aname);
- }
-#endif
if (obj->oartifact) {
/*JP
int glyph;
char buf[BUFSZ];
struct obj *obj = 0;
+#if 0 /*JP*/
boolean fakeobj = FALSE, use_plural;
+#else
+ boolean fakeobj = FALSE;
+#endif
cc.x = u.ux, cc.y = u.uy;
/* "dot for under/over you" only makes sense when the cursor hasn't
Strcpy(buf, (obj->otyp != STRANGE_OBJECT)
? simpleonames(obj)
: obj_descr[STRANGE_OBJECT].oc_name);
+#if 0 /*JP*/
use_plural = (obj->quan > 1L);
+#endif
if (Hallucination) {
const char *unames[6];
char tmpbuf[BUFSZ];
}
if (ilet == HANDS_SYM) { /* '-' */
if (!allownone) {
+#if 0 /*JP*/
char *suf = (char *) 0;
strcpy(buf, word);
bp = (rn2(2) ? buf : (bp + 4));
} else
bp = buf;
-#if 0 /*JP*/
You("mime %s something%s%s.", ing_suffix(bp), suf ? " " : "",
suf ? suf : "");
#else
if (cc.x == u.ux && cc.y == u.uy) { /* pick lock on a container */
const char *verb;
char qsfx[QBUFSZ];
+#if 0 /*JP*/
boolean it;
+#endif
int count;
if (u.dz < 0) {
You("\82±\82±\82©\82ç%s\82É\93Í\82©\82È\82¢\81D", the(xname(otmp)));
return PICKLOCK_LEARNED_SOMETHING;
}
+#if 0 /*JP*/
it = 0;
+#endif
if (otmp->obroken)
/*JP
verb = "fix";
/*JP
verb = "lock", it = 1;
*/
- verb = "\8c®\82ð\82©\82¯\82é", it = 1;
+ verb = "\8c®\82ð\82©\82¯\82é";
else if (picktyp != LOCK_PICK)
/*JP
verb = "unlock", it = 1;
*/
- verb = "\8c®\82ð\82Í\82¸\82·", it = 1;
+ verb = "\8c®\82ð\82Í\82¸\82·";
else
/*JP
verb = "pick";
impossible("bad wizard cloning?");
break;
case MGC_SUMMON_MONS: {
+#if 0 /*JP*/
int count;
count = nasty(mtmp); /* summon something nasty */
+#endif
if (mtmp->iswiz)
/*JP
verbalize("Destroy the thief, my pet%s!", plur(count));
register struct monst *mtmp;
{
register struct obj *gold;
+#if 0 /*JP*/
int mat_idx;
+#endif
if ((gold = g_at(mtmp->mx, mtmp->my)) != 0) {
+#if 0 /*JP*/
mat_idx = objects[gold->otyp].oc_material;
+#endif
obj_extract_self(gold);
add_to_minv(mtmp, gold);
if (cansee(mtmp->mx, mtmp->my)) {
char buf[BUFSZ];
boolean in_door = (amorphous(mtmp->data)
&& closed_door(mtmp->mx, mtmp->my)),
+#if 0 /*JP*/
/* alternate message phrasing for some monster types */
spec_mon = (nonliving(mtmp->data)
|| noncorporeal(mtmp->data)
|| amorphous(mtmp->data)),
+#endif
spec_death = (disintegested /* disintegrated or digested */
|| noncorporeal(mtmp->data)
|| amorphous(mtmp->data));
u.uconduct.killer++;
if (!nomsg) {
+#if 0 /*JP*/
boolean namedpet = has_mname(mtmp) && !Hallucination;
-#if 0 /*JP*/
You("%s %s!",
nonliving(mtmp->data) ? "destroy" : "kill",
!(wasinside || canspotmon(mtmp)) ? "it"
STATIC_DCL char *FDECL(minimal_xname, (struct obj *));
STATIC_DCL void FDECL(add_erosion_words, (struct obj *, char *));
STATIC_DCL char *FDECL(doname_base, (struct obj *obj, unsigned));
+#if 0 /*JP*/
STATIC_DCL boolean FDECL(singplur_lookup, (char *, char *, BOOLEAN_P,
const char *const *));
STATIC_DCL char *FDECL(singplur_compound, (char *));
+#endif
STATIC_DCL char *FDECL(xname_flags, (struct obj *, unsigned));
+#if 0 /*JP*/
STATIC_DCL boolean FDECL(badman, (const char *, BOOLEAN_P));
-#if 1 /*JP*/
-static char *FDECL(substitute, (char *, char *, char *));
-static char *FDECL(transpose, (char *buf,char *));
-static char *FDECL(delete, (char *, char *str));
-static int FDECL(digit_8, (int));
-static int FDECL(atoi_8, (const char *));
#endif
struct Jitem {
{
char *nambuf = nextobuf();
int omndx = otmp->corpsenm;
+#if 0 /*JP*/
boolean ignore_quan = (cxn_flags & CXN_SINGULAR) != 0,
/* suppress "the" from "the unique monster corpse" */
+#else
+ boolean
+#endif
no_prefix = (cxn_flags & CXN_NO_PFX) != 0,
/* include "the" for "the woodchuck corpse */
the_prefix = (cxn_flags & CXN_PFX_THE) != 0,
return outbuf;
}
+#if 0 /*JP*/
static const char *wrp[] = {
"wand", "ring", "potion", "scroll", "gem",
"amulet", "spellbook", "spell book",
/* for non-specific wishes */
"weapon", "armor", "tool", "food", "comestible",
};
+#endif
static const char wrpsym[] = { WAND_CLASS, RING_CLASS, POTION_CLASS,
SCROLL_CLASS, GEM_CLASS, AMULET_CLASS,
SPBOOK_CLASS, SPBOOK_CLASS, WEAPON_CLASS,
return buf;
}
+#if 0 /*JP*/
struct sing_plur {
const char *sing, *plur;
};
/* wasn't recognized as a compound phrase */
return 0;
}
+#endif
/* Plural routine; once upon a time it may have been chiefly used for
* user-defined fruits, but it is now used extensively throughout the
#endif
}
+#if 0 /*JP*/
boolean
badman(basestr, to_plural)
const char *basestr;
}
return FALSE;
}
+#endif
/* compare user string against object name string using fuzzy matching */
STATIC_OVL boolean
char allowall[2];
short mixture;
char qbuf[QBUFSZ], obuf[QBUFSZ];
+#if 0 /*JP*/
const char *shortestname; /* last resort obj name for prompt */
+#endif
allowall[0] = ALL_CLASSES;
allowall[1] = '\0';
if (inaccessible_equipment(obj, "\82ð\90Z\82·", FALSE))
return 0;
-#if 0 /*JP:T*/
+#if 0 /*JP*/
shortestname = (is_plural(obj) || pair_of(obj)) ? "them" : "it";
-#else
- shortestname = "\82»\82ê";
#endif
/*
* Bypass safe_qbuf() since it doesn't handle varying suffix without
return 1;
} else if (scroll->otyp == T_SHIRT || scroll->otyp == ALCHEMY_SMOCK) {
char buf[BUFSZ], *mesg;
+#if 0 /*JP*/
const char *endpunct;
+#endif
if (Blind) {
/*JP
/* populate 'buf[]' */
mesg = (scroll->otyp == T_SHIRT) ? tshirt_text(scroll, buf)
: apron_text(scroll, buf);
+#if 0 /*JP*/
endpunct = "";
+#endif
if (flags.verbose) {
+#if 0 /*JP*/
int ln = (int) strlen(mesg);
/* we will be displaying a sentence; need ending punctuation */
if (ln > 0 && !index(".!?", mesg[ln - 1]))
endpunct = ".";
+#endif
/*JP
pline("It reads:");
*/
static char err_ret[] = " character's";
*/
static char err_ret[] = "\83L\83\83\83\89\83N\83^\81[\82Ì";
+#if 0 /*JP*/
boolean donefirst = FALSE;
+#endif
if (!suppliedbuf || buflen < 1)
return err_ret;
Strcat(buf, " ");
#endif
Strcat(buf, aligns[alignnum].adj);
+#if 0 /*JP*/
donefirst = TRUE;
+#endif
} else {
#if 0 /*JP*/
if (donefirst)
Strcat(buf, " ");
#endif
Strcat(buf, aligns[alignnum].adj);
+#if 0 /*JP*/
donefirst = TRUE;
+#endif
}
} else {
/* in case we got here by failing the ok_align() test */
Strcat(buf, " ");
#endif
Strcat(buf, genders[gendnum].adj);
+#if 0 /*JP*/
donefirst = TRUE;
+#endif
}
} else {
#if 0 /*JP*/
Strcat(buf, " ");
#endif
Strcat(buf, genders[gendnum].adj);
+#if 0 /*JP*/
donefirst = TRUE;
+#endif
}
} else {
/* if gender not specified, but role is specified
#endif
Strcat(buf, (rolenum == ROLE_NONE) ? races[racenum].noun
: races[racenum].adj);
+#if 0 /*JP*/
donefirst = TRUE;
+#endif
} else if (!validrole(rolenum)) {
#if 0 /*JP*/
if (donefirst)
Strcat(buf, " ");
#endif
Strcat(buf, races[racenum].noun);
+#if 0 /*JP*/
donefirst = TRUE;
+#endif
} else {
pa[BP_RACE] = 1;
post_attribs++;
} else
Strcat(buf, roles[rolenum].name.m);
}
+#if 0 /*JP*/
donefirst = TRUE;
+#endif
} else if (rolenum == ROLE_NONE) {
pa[BP_ROLE] = 1;
post_attribs++;
Strcat(buf, "character");
*/
Strcat(buf, "\83L\83\83\83\89\83N\83^\81[");
+#if 0 /*JP*/
donefirst = TRUE;
+#endif
}
/* <your lawful female gnomish cavewoman> || <your lawful female gnome>
* || <your lawful female character>
continue;
if ((is_undead(mtmp->data) || is_vampshifter(mtmp))
&& mon_in_room(mtmp, MORGUE)) {
+#if 0 /*JP*/
const char *hair = body_part(HAIR); /* hair/fur/scales */
+#endif
switch (rn2(2) + hallu) {
case 0:
long timeout;
{
struct obj *obj = arg->a_obj;
+#if 0 /*JP*/
boolean canseeit, many, menorah, need_newsym, need_invupdate;
+#else
+ boolean canseeit, menorah, need_newsym, need_invupdate;
+#endif
xchar x, y;
char whose[BUFSZ];
menorah = obj->otyp == CANDELABRUM_OF_INVOCATION;
+#if 0 /*JP*/
many = menorah ? obj->spe > 1 : obj->quan > 1L;
+#endif
/* timeout while away */
if (timeout != monstermoves) {
} else if (obj->oclass == POTION_CLASS) {
if (obj->otyp == POT_ACID) {
char *bufp;
+#if 0 /*JP*/
boolean one = (obj->quan == 1L), update = carried(obj),
exploded = FALSE;
+#else
+ boolean update = carried(obj);
+#endif
if (Blind && !carried(obj))
obj->dknown = 0;
+#if 0 /*JP*/
if (acid_ctx.ctx_valid)
exploded = ((obj->dknown ? acid_ctx.dkn_boom
: acid_ctx.unk_boom) > 0);
+#endif
/* First message is
* "a [potion|<color> potion|potion of acid] explodes"
* depending on obj->dknown (potion has been seen) and
struct trap *ttmp;
struct monst *mtmp;
const char *trapdescr;
+#if 0 /*JP*/
boolean here, useplural, deal_with_floor_trap,
confused = (Confusion || Hallucination),
trap_skipped = FALSE;
+#else
+ boolean here, deal_with_floor_trap,
+ confused = (Confusion || Hallucination),
+ trap_skipped = FALSE;
+#endif
int boxcnt = 0;
char the_trap[BUFSZ], qbuf[QBUFSZ];
Strcat(the_trap, (boxcnt == 1) ? "a container" : "containers");
*/
Strcat(the_trap, "\97e\8aí");
+#if 0 /*JP*/
useplural = ((ttmp && boxcnt > 0) || boxcnt > 1);
+#endif
/* note: boxcnt and useplural will always be 0 for !here case */
if (ttmp || boxcnt)
#if 0 /*JP*/
int jousting = 0;
int wtype;
struct obj *monwep;
+#if 0 /*JP*/
char unconventional[BUFSZ]; /* substituted for word "attack" in msg */
+#endif
char saved_oname[BUFSZ];
+#if 0 /*JP*/
unconventional[0] = '\0';
+#endif
saved_oname[0] = '\0';
wakeup(mon, TRUE);
*/
Strcpy(qbuf, "\91ã\82í\82è\82É\82±\82ê\82ç\91S\95\94\82ð\8f\80\94õ\82·\82é\81H");
} else {
+#if 0 /*JP*/
boolean use_plural = (is_plural(uwep) || pair_of(uwep));
-#if 0 /*JP*/
Sprintf(qbuf, "You are wielding %s. Ready %s instead?",
!use_plural ? "that" : "those",
!use_plural ? "it" : "them");
*/
Strcpy(qbuf, "\91ã\82í\82è\82É\82±\82ê\82ç\91S\95\94\82ð\8f\80\94õ\82·\82é\81H");
} else {
+#if 0 /*JP*/
boolean use_plural = (is_plural(uswapwep) || pair_of(uswapwep));
-#if 0 /*JP*/
Sprintf(qbuf, "%s your %s weapon. Ready %s instead?",
!use_plural ? "That is" : "Those are",
u.twoweap ? "second" : "alternate",
struct obj *obj;
const char *verb; /* "rub",&c */
{
- const char *what;
#if 0 /*JP*/
+ const char *what;
boolean more_than_1;
#endif
#if 0 /*JP*/
if (!verb)
verb = "wield";
-#endif
what = xname(obj);
-#if 0 /*JP*/
more_than_1 = (obj->quan > 1L || strstri(what, "pair of ") != 0
|| strstri(what, "s of ") != 0);
#endif
pline("\82¨\82í\81C\8cõ\82ª\92É\82¢%s", (dmg > 2 || u.mh <= 5) ? "\81I" : "\81D");
/* [composing killer/reason is superfluous here; if fatal, cause
of death will always be "killed while stuck in creature form"] */
+#if 0 /*JP*/
if (obj->oclass == SCROLL_CLASS || obj->oclass == SPBOOK_CLASS)
ordinary = FALSE; /* say blasted rather than zapped */
+#endif
how = (obj->oclass != SPBOOK_CLASS)
? (const char *) ansimpleoname(obj)
/*JP
char ch;
{
register struct WinDesc *cw = 0;
-#if 1 /*JP*/
- static int prev_win;
-#endif
if (window == WIN_ERR || (cw = wins[window]) == (struct WinDesc *) 0)
panic(winpanicstr, window);
impossible("Can't putsym to window type %d", cw->type);
break;
}
-#if 1 /*JP*/
- prev_win = cw->type;
-#endif
}
STATIC_OVL const char *