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
5bacf865
Commit
5bacf865
authored
Feb 19, 1994
by
Per Cederqvist
Browse files
Added init_* functions.
parent
4be6c139
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/kom-memory.h
View file @
5bacf865
/*
* $Id: kom-memory.h,v 1.
1
199
3/10/10 16:35:31
ceder Exp $
* $Id: kom-memory.h,v 1.
2
199
4/02/19 04:41:49
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: kom-memory.h,v 1.
1
199
3/10/10 16:35:31
ceder Exp $
* $Id: kom-memory.h,v 1.
2
199
4/02/19 04:41:49
ceder Exp $
*
* The time has come to get some order into this mess.
*
...
...
@@ -33,47 +33,81 @@
* free_ sfree() the object. Decrease _cnt.
* clear_ free_() any objects contained in the object,
* but not the object itself.
*
copy_ smalloc() a new object and also smalloc()
* copy_ smalloc() a new object and also smalloc()
* any objects contained in it.
* init_ initialize all fields in a allocated object.
*/
/*
* Memory handling functions, grouped by data type, sorted alphabetically.
*/
extern
Person
*
alloc_person
(
void
);
/* Conf_type
*
/
extern
void
init_conf_type
(
Conf_type
*
ct
);
extern
Conference
*
alloc_conference
(
void
);
/* Conference */
extern
Conference
*
alloc_conference
(
void
);
extern
void
free_conference
(
Conference
*
c
);
extern
void
clear_conference
(
Conference
*
c
);
extern
Conference
*
copy_conference
(
Conference
*
c
);
extern
void
init_conference
(
Conference
*
c
);
extern
Text_sta
t
*
alloc_text_stat
(
void
);
/* Mark_lis
t *
/
extern
void
init_mark_list
(
Mark_list
*
ml
);
extern
void
free_person
(
Person
*
person
);
/* Member_list */
extern
void
init_member_list
(
Member_list
*
ml
);
extern
void
free_conference
(
Conference
*
confp
);
/* Membership */
extern
void
init_membership
(
Membership
*
m
);
extern
void
free_text_stat
(
Text_sta
t
*
t
);
/* Membership_list */
extern
void
init_membership_list
(
Membership_lis
t
*
m
);
extern
Person
*
copy_person
(
Person
*
p
);
/* Person */
extern
Person
*
alloc_person
(
void
);
extern
void
free_person
(
Person
*
p
);
extern
void
clear_person
(
Person
*
p
);
extern
Person
*
copy_person
(
Person
*
p
);
extern
void
init_person
(
Person
*
p
);
extern
Conference
*
copy_conf
(
Conference
*
c
);
/* Personal_flags
*
/
extern
void
init_personal_flags
(
Personal_flags
*
p
);
extern
Text_stat
*
copy_text_stat
(
Text_stat
*
c
);
/* Priv_bits
*
/
extern
void
init_priv_bits
(
Priv_bits
*
pb
);
extern
void
clear_conference
(
Conference
*
c
);
/* Session_info */
extern
void
init_session_info
(
Session_info
*
s
);
extern
void
clear_person
(
Person
*
p
);
/* Session_info_ident */
extern
void
init_session_info_ident
(
Session_info_ident
*
s
);
extern
void
clear
_text_
stat
(
Text_
sta
t
*
t
);
/* Text_list */
extern
void
init
_text_
list
(
Text_
lis
t
*
t
l
);
/* Text_stat */
extern
Text_stat
*
alloc_text_stat
(
void
);
extern
void
free_text_stat
(
Text_stat
*
t
);
extern
void
clear_text_stat
(
Text_stat
*
t
);
extern
Text_stat
*
copy_text_stat
(
Text_stat
*
t
);
extern
void
init_text_stat
(
Text_stat
*
t
);
/* struct tm */
extern
void
init_struct_tm
(
struct
tm
*
t
);
/* Who_info */
extern
void
init_who_info
(
Who_info
*
w
);
/* Who_info_ident */
extern
void
init_who_info_ident
(
Who_info_ident
*
w
);
/* Who_info_old */
extern
void
init_who_info_old
(
Who_info_old
*
w
);
/*
* Other kind of functions
*/
extern
void
dump_alloc_counts
(
FILE
*
stat_file
);
Write
Preview
Markdown
is supported
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