Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
849647a8
Commit
849647a8
authored
Sep 05, 1991
by
Per Cederqvist
Browse files
Deleted cached_set_conf_type (use mark_conference_as_changed instead).
parent
44249618
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/server/ChangeLog
View file @
849647a8
Thu Sep 5 10:14:40 1991 Per Cederqvist (ceder at lysator)
* cache.h, simple-cache.c, dbck-cache.c (cached_set_conf_type):
borttagen.
* conference.c, person.c: alla anrop till cached_set_conf_type
borttagna. (Funktionen anropades bara precis efter
mark_conference_as_changed.
* simple-cache.c: Fixade lite stavfel. La till lite nya defensiva
kontroller.
...
...
src/server/cache.h
View file @
849647a8
/*
* $Id: cache.h,v 0.
5
1991/0
8/28 02:21
:5
8
ceder Exp $
* $Id: cache.h,v 0.
6
1991/0
9/05 08:32
:5
1
ceder Exp $
*
* This file contains the cached data that the server stores.
* .h file created by ceder 1990-04-18
...
...
@@ -86,8 +86,8 @@ cached_conf_exists( Conf_no conf_no );
/*
* Calls for the cacheing of conf_type:
* cached_get_conf_type() returns the type
, and
*
cached_set_conf_type() sets the type
.
* cached_get_conf_type() returns the type
.
*
The type is set when mark_conference_as_changed is called
.
*/
/* Get conference type */
...
...
@@ -97,24 +97,12 @@ extern Conf_type
cached_get_conf_type
(
Conf_no
conf_no
);
/*
* Set the type. This call is used whenever a conference is created or the
* conf_type is changed.
*/
extern
void
cached_set_conf_type
(
Conf_no
conf_no
,
Conf_type
type
);
/*
* Get/set garb_nice for a certain conference.
* Get garb_nice for a certain conference.
* It is set when mark_conference_as_changed is called.
*/
extern
Garb_nice
cached_get_garb_nice
(
Conf_no
conf_no
);
extern
void
cached_set_garb_nice
(
Conf_no
conf_no
,
Garb_nice
nice
);
extern
Local_text_no
cached_get_highest_local_no
(
Conf_no
conf_no
);
...
...
src/server/conference.c
View file @
849647a8
...
...
@@ -4,7 +4,7 @@
* All atomic calls that deals with conferences.
*/
static
char
*
rcsid
=
"$Id: conference.c,v 0.
9
1991/0
8/28 02:21
:5
4
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: conference.c,v 0.
10
1991/0
9/05 08:32
:5
0
ceder Exp $"
;
#include
<time.h>
...
...
@@ -236,10 +236,8 @@ do_create_conf(String name,
conf_c
->
members
=
EMPTY_MEMBER_LIST
;
conf_c
->
texts
=
EMPTY_TEXT_LIST
;
mark_conference_as_changed
(
conf_no
);
mark_conference_as_changed
(
conf_no
);
cached_set_conf_type
(
conf_no
,
type
);
return
conf_no
;
}
...
...
@@ -765,9 +763,7 @@ set_conf_type (Conf_no conf_no,
}
conf_c
->
type
=
type
;
mark_conference_as_changed
(
conf_no
);
cached_set_conf_type
(
conf_no
,
type
);
mark_conference_as_changed
(
conf_no
);
return
OK
;
}
...
...
src/server/dbck-cache.c
View file @
849647a8
...
...
@@ -8,7 +8,7 @@
* Also save time as a time_t instead of a struct tm.
*/
static
char
*
rcsid
=
"$Id: dbck-cache.c,v 0.
5
1991/0
8/30
0
3
:3
5:57
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: dbck-cache.c,v 0.
6
1991/0
9/05
0
8
:3
2:48
ceder Exp $"
;
/*
...
...
@@ -92,14 +92,6 @@ BUGDECL;
}
extern
void
cached_set_conf_type
(
Conf_no
conf_no
,
Conf_type
type
)
{
return
;
/* No need to do anything in this simulation. */
}
extern
Conf_type
cached_get_conf_type
(
Conf_no
conf_no
)
{
...
...
src/server/person.c
View file @
849647a8
...
...
@@ -4,7 +4,7 @@
* All atomic calls that deals with persons.
*/
static
char
*
rcsid
=
"$Id: person.c,v 0.
6
1991/0
8/28 02:21:09
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: person.c,v 0.
7
1991/0
9/05 08:32:46
ceder Exp $"
;
#include
<time.h>
#include
<string.h>
...
...
@@ -419,9 +419,7 @@ create_person (String name,
mailbox
->
members
=
EMPTY_MEMBER_LIST
;
mailbox
->
texts
=
EMPTY_TEXT_LIST
;
mark_conference_as_changed
(
new_user
);
cached_set_conf_type
(
new_user
,
mailbox
->
type
);
mark_conference_as_changed
(
new_user
);
/* allocate Person */
...
...
src/server/simple-cache.c
View file @
849647a8
...
...
@@ -9,7 +9,7 @@
* New save algorithm by ceder.
*/
static
char
*
rcsid
=
"$Id: simple-cache.c,v 0.1
4
1991/09/05 08:
25:58
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: simple-cache.c,v 0.1
5
1991/09/05 08:
32:44
ceder Exp $"
;
...
...
@@ -249,18 +249,6 @@ cached_change_name( Conf_no name_num,
}
extern
void
cached_set_conf_type
(
Conf_no
conf_no
,
Conf_type
type
)
{
if
(
conf_no
<
1
||
conf_no
>=
next_free_num
)
restart_kom
(
"cached_set_conf_type(%d, ----): next_free_num==%d"
,
conf_no
,
next_free_num
);
small_conf_arr
[
conf_no
]
->
type
=
type
;
}
extern
Conf_type
cached_get_conf_type
(
Conf_no
conf_no
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment