(no subject)
Dec. 14th, 2000 12:43 amsignal(SIGALRM,alarm_handler);
while(tired){
sleep(60*60);
}
void alarm_handler() {
if(wakeup_event == WAKEUP_ALARM && !snoozed){
hit(clock->snooze_button);
snoozed=1;
return;
} else if(wakeup_event == WAKEUP_PARENT && !snoozed){
say("I'm up, coming.\n");
snoozed=1;
return;
} else {
get_up();
}
yes, it's late.
while(tired){
sleep(60*60);
}
void alarm_handler() {
if(wakeup_event == WAKEUP_ALARM && !snoozed){
hit(clock->snooze_button);
snoozed=1;
return;
} else if(wakeup_event == WAKEUP_PARENT && !snoozed){
say("I'm up, coming.\n");
snoozed=1;
return;
} else {
get_up();
}
yes, it's late.
no subject
no subject
Date: 2000-12-14 08:03 am (UTC)pos = FindPosInListing(listing, "I'm up, coming.");
gi.WriteByte(svc_emotion_hope);
gi.WriteByte(HOPE_NMIAOW);
gi.WritePosition(pos);
gi.multicast(teferi->livejournal, MULTICAST_PVS);
no subject
Date: 2000-12-14 04:17 pm (UTC)(:P)
no subject
Date: 2000-12-14 06:07 pm (UTC)typedef float[3] vec3_t;
typedef struct game_import_t {
/* ... */
void (*multicast) (vec3_t origin, multicast_t to);
void (*unicast) (edict_t ent, qboolean reliable);
void (*WriteChar) (int c);
void (*WriteByte) (int c);
void (*WriteShort) (int c);
void (*WriteLong) (int c);
void (*WriteFloat) (float f);
void (*WriteString) (char *s);
void (*WritePosition) (vec3_t v);
void (*WriteDir) (vec3_t v);
void (*WriteAngle) (float f);
/* ... */
} game_import_t;
/* ... */
game_export_t *GetGameAPI(game_import_t *import) {
gi = *import;
/* ... */
}