Commit 204666d2 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(Conference): Reordered the fields, eliminating some unnecessary padding.

parent 4011eeff
/*
* $Id: kom-types.h,v 0.10 1993/10/18 12:03:58 ceder Exp $
* $Id: kom-types.h,v 0.11 1994/01/12 01:25:57 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -422,12 +422,15 @@ typedef struct {
/* and maybe more... */
} Info;
/* For performance reasons, sort the fields in increasing size.
The comments about number of bits are true on a Sun Sparc-2, not
necessarily anything else. The code should work anyhow. */
typedef struct {
/* 8-bit quantities */
Conf_type type; /* secret, rd_prot etc */
/* 16-bit quantities */
Pers_no creator;
Time creation_time;
Text_no presentation;
Conf_no supervisor; /* Organisat|r f|r m|tet */
Conf_no permitted_submitters; /* People who are allowed
to submit texts to this conf.
......@@ -435,7 +438,10 @@ typedef struct {
Conf_no super_conf; /* Send unallowed submissions to
the super_conf.
0 -> unallowed submissions bounce */
Conf_type type; /* secret, rd_prot etc */
/* 32-bit quantities */
Time creation_time;
Text_no presentation;
Time last_written; /* Time of latest text in this conf. */
Text_no msg_of_day; /* Message to be displayed when this
conf is referenced by the user. */
......@@ -455,12 +461,12 @@ typedef struct {
#ifdef CLIENT
# define EMPTY_CONFERENCE_i \
{ 0, NULL_TIME_i, 0, 0, 0, 0, NULL_CONF_TYPE_i, \
{ NULL_CONF_TYPE_i, 0, 0, 0, 0, NULL_TIME_i, 0, \
NULL_TIME_i, 0, 0, EMPTY_STRING_i, 0, 0, 0 \
}
#else /* SERVER */
# define EMPTY_CONFERENCE_i \
{ 0, NULL_TIME_i, 0, 0, 0, 0, NULL_CONF_TYPE_i, \
{ NULL_CONF_TYPE_i, 0, 0, 0, 0, NULL_TIME_i, 0, \
NULL_TIME_i, 0, 0, EMPTY_STRING_i, \
EMPTY_MEMBER_LIST_i, EMPTY_TEXT_LIST_i \
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment