int rordercmp(struct ctdlroomlisting *r1, struct ctdlroomlisting *r2);
-struct march *march = NULL;
+march *marchptr = NULL;
/* globals associated with the client program */
char temp[PATH_MAX]; /* Name of general-purpose temp file */
{
struct march *mptr, *mptr2;
- if (march == NULL)
+ if (marchptr == NULL)
return;
- if ((!strcasecmp(march->march_name, roomname))
- || ((!strcasecmp(roomname, "_FLOOR_")) && (march->march_floor == floornum))) {
- mptr = march->next;
- free(march);
- march = mptr;
+ if ((!strcasecmp(marchptr->march_name, roomname))
+ || ((!strcasecmp(roomname, "_FLOOR_")) && (marchptr->march_floor == floornum))) {
+ mptr = marchptr->next;
+ free(marchptr);
+ marchptr = mptr;
return;
}
- mptr2 = march;
- for (mptr = march; mptr != NULL; mptr = mptr->next) {
+ mptr2 = marchptr;
+ for (mptr = marchptr; mptr != NULL; mptr = mptr->next) {
if ((!strcasecmp(mptr->march_name, roomname))
|| ((!strcasecmp(roomname, "_FLOOR_"))
/* Check to see if the march-mode list is already allocated.
* If it is, pop the first room off the list and go there.
*/
- if (march == NULL) {
+ if (marchptr == NULL) {
r = CtdlIPCKnownRooms(ipc, SubscribedRoomsWithNewMessages,
- AllFloors, &march, buf);
+ AllFloors, &marchptr, buf);
/* add _BASEROOM_ to the end of the march list, so the user will end up
* in the system base room (usually the Lobby>) at the end of the loop
mptr->march_order = 0;
mptr->march_floor = 0;
strcpy(mptr->march_name, "_BASEROOM_");
- if (march == NULL) {
- march = mptr;
+ if (marchptr == NULL) {
+ marchptr = mptr;
} else {
- mptr2 = march;
+ mptr2 = marchptr;
while (mptr2->next != NULL)
mptr2 = mptr2->next;
mptr2->next = mptr;
*/
remove_march(room_name, 0);
}
- if (march != NULL) {
- strcpy(next_room, pop_march(curr_floor, march));
+ if (marchptr != NULL) {
+ strcpy(next_room, pop_march(curr_floor, marchptr));
} else {
strcpy(next_room, "_BASEROOM_");
}
scr_printf("No floor '%s'.\n", towhere);
return;
}
- for (mptr = march; mptr != NULL; mptr = mptr->next) {
+ for (mptr = marchptr; mptr != NULL; mptr = mptr->next) {
if ((mptr->march_floor) == tofloor) {
gf_toroom(ipc, mptr->march_name, mode);
return;
termn8 = 0;
color(ORIGINAL_PAIR);
scr_printf("\n");
- while (march != NULL) {
- remove_march(march->march_name, 0);
+ while (marchptr != NULL) {
+ remove_march(marchptr->march_name, 0);
}
if (mcmd == 30) {
sln_printf("\n\nType 'off' to disconnect, or next user...\n");
/*
* Message expiration policy stuff
*/
+typedef struct ExpirePolicy ExpirePolicy;
struct ExpirePolicy {
/*
#include "datadefinitions.h"
* fetches from the server. This allows the client to "march" through
* relevant rooms without having to ask the server each time where to go next.
*/
+typedef struct march march;
struct march {
/*
#include "datadefinitions.h"
/*
* User records.
*/
+typedef struct ctdluser ctdluser;
struct ctdluser { /* User record */
/*
#include "datadefinitions.h"
/*
* Room records.
*/
+typedef struct ctdlroom ctdlroom;
struct ctdlroom {
/*
#include "datadefinitions.h"
/*
* Floor record. The floor number is implicit in its location in the file.
*/
+typedef struct floor floor;
struct floor {
/*
#include "datadefinitions.h"