Commit 5bacf865 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added init_* functions.

parent 4be6c139
/*
* $Id: kom-memory.h,v 1.1 1993/10/10 16:35:31 ceder Exp $
* $Id: kom-memory.h,v 1.2 1994/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 1993/10/10 16:35:31 ceder Exp $
* $Id: kom-memory.h,v 1.2 1994/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_stat *
alloc_text_stat(void);
/* Mark_list */
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_stat *t);
/* Membership_list */
extern void init_membership_list (Membership_list *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_stat *t);
/* Text_list */
extern void init_text_list (Text_list *tl);
/* 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);
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