gender.c
lpc4/lib/inherit/gender.c · 365 B
From the archive lpc4.05.14.tar.gz
Download the archive « Back to the archive contents
int gender;
void set_gender(int g) { gender=g; }
int query_gender() { return gender; }
string query_gender_string() { return ({"neuter","male","female"})[gender]; }
string query_objective() { return ({"it","him","her"})[gender]; }
string query_possessive() { return ({"its","his","her"})[gender]; }
string query_pronoun() { return ({"it","he","she"})[gender]; }