#include <family.h> /* needed for make_sex() */#include <friends.h>#include <god.h>voidlife(){longmoney=0;shortfriends=0,partner=0;intdays_of_life=rand()%DAYS_MAX;/* defined in god.h */while(days_of_life){wake_up();eat(&money);/* XXX money might be 0 */if(money<LONG_MAX)money+=work();/* too much time wasted here */#ifdef MALEdrink_beer(friends,&money);friends++;if(meet_women(&money))partner=1;/* effect on money not defined */#endif#ifdef FEMALEshopping(&money);gossip(friends);/* same here */if(find_rich_male()){money=LONG_MAX;partner=1;}#endifeat(&money);relax();watch_tv();if(!sleep()&&partner){make_sex(&partner)?life():0;}days_of_life--;}return;/* XXX this should return flag for heaven or hell */}