Commit 651ad08e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Use ``enum object_type'' instead of ``Object_type''. (Bug 335).

parent 3f36c1f9
/*
* $Id: aux-items.c,v 1.31 2001/11/03 17:28:54 ceder Exp $
* $Id: aux-items.c,v 1.32 2001/12/28 19:18:43 ceder Exp $
* Copyright (C) 1994-2001 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -342,7 +342,7 @@ aux_item_fix_trigger_data(Aux_item_trigger_data *data)
static void
aux_item_call_add_triggers(const Aux_item_definition *def,
Object_type object_type,
enum object_type object_type,
unsigned long item_index,
unsigned long integer_argument,
void * pointer_argument,
......@@ -367,7 +367,7 @@ aux_item_call_add_triggers(const Aux_item_definition *def,
static void
aux_item_call_delete_triggers(const Aux_item_definition *def,
Object_type object_type,
enum object_type object_type,
unsigned long item_index,
unsigned long integer_argument,
void * pointer_argument,
......@@ -391,7 +391,7 @@ aux_item_call_delete_triggers(const Aux_item_definition *def,
static void
aux_item_call_undelete_triggers(const Aux_item_definition *def,
Object_type object_type,
enum object_type object_type,
unsigned long item_index,
unsigned long integer_argument,
void * pointer_argument,
......@@ -675,15 +675,15 @@ mark_linked_object_as_changed(Aux_item *item)
static void
aux_item_link_items(Object_type src_type, /* Source object type */
unsigned long src_no, /* Source object pointer */
void *src_ptr, /* Source pointer */
Aux_item *src_item, /* Source item */
Object_type dst_type, /* Destination obj type */
unsigned long dst_no, /* Destination obj pointer */
void *dst_ptr, /* Destination pointer */
Aux_item *dst_item_data)
aux_item_link_items(enum object_type src_type, /* Source object type */
unsigned long src_no, /* Source object pointer */
void *src_ptr, /* Source pointer */
Aux_item *src_item, /* Source item */
enum object_type dst_type, /* Destination obj type */
unsigned long dst_no, /* Destination obj pointer */
void *dst_ptr, /* Destination pointer */
Aux_item *dst_item_data)
{
Aux_item_list item_list;
......@@ -819,7 +819,7 @@ aux_item_link_items(Object_type src_type, /* Source object type */
static void
aux_item_list_add_items(Aux_item_list *add_to_list,
Aux_item_list *items_to_add,
Object_type object_type,
enum object_type object_type,
unsigned long object_no,
void *object_ptr,
unsigned long *highest_ptr,
......@@ -1074,7 +1074,7 @@ aux_item_add_perm(const Aux_item *item,
Aux_item_list *add_to_list,
unsigned long start_looking_at,
Bool creating,
Object_type object_type
enum object_type object_type
)
{
short can_add_when = 0;
......@@ -1230,7 +1230,7 @@ aux_inherit_items(Aux_item_list *target,
unsigned long *counter,
Pers_no target_creator,
Bool creating,
Object_type object_type,
enum object_type object_type,
unsigned long object_no,
void *object)
{
......@@ -1423,7 +1423,7 @@ check_delete_aux_item_list(const Number_list *items_to_delete,
void
delete_aux_item_list(const Number_list *items_to_delete,
Aux_item_list *list_to_delete_from,
Object_type object_type,
enum object_type object_type,
unsigned long object_no,
void *object)
{
......@@ -1512,7 +1512,7 @@ delete_aux_item_list(const Number_list *items_to_delete,
void
undelete_aux_item_list(const Number_list *items_to_undelete,
Aux_item_list *list_to_undelete_from,
Object_type object_type,
enum object_type object_type,
unsigned long object_no,
void *object)
{
......@@ -2060,7 +2060,7 @@ aux_item_trigger_link_item(Aux_item_trigger_data *data)
char object_no_string[100];
char *tmp_str;
char type_char;
Object_type target_object_type;
enum object_type target_object_type;
unsigned long target_item_tag, target_object_no;
int nread;
Aux_item item_data;
......
/*
* $Id: aux-items.h,v 1.18 2001/10/28 21:07:04 ceder Exp $
* $Id: aux-items.h,v 1.19 2001/12/28 19:18:43 ceder Exp $
* Copyright (C) 1994-2001 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -55,7 +55,7 @@ typedef struct Aux_item_definition_s Aux_item_definition;
typedef struct Aux_item_trigger_data_s
{
short action;
Object_type object_type;
enum object_type object_type;
unsigned long item_index;
unsigned long object_no;
void * object;
......@@ -80,7 +80,7 @@ typedef struct
Aux_item_list *add_to_list;
unsigned long start_looking_at;
Bool creating;
Object_type object_type;
enum object_type object_type;
} Aux_item_validation_data;
typedef Bool (*Aux_item_validation_function)(Aux_item_validation_data *);
......@@ -159,7 +159,7 @@ void aux_inherit_items(Aux_item_list *target,
unsigned long *counter,
Pers_no target_creator,
Bool creating,
Object_type object_type,
enum object_type object_type,
unsigned long object_no,
void *object);
......@@ -201,7 +201,7 @@ void filter_aux_item_list(const Aux_item_list *original,
void delete_aux_item_list(const Number_list *items_to_delete,
Aux_item_list *list_to_delete_from,
Object_type object_type,
enum object_type object_type,
unsigned long object_no,
void *object);
......@@ -212,7 +212,7 @@ void delete_aux_item_list(const Number_list *items_to_delete,
void undelete_aux_item_list(const Number_list *items_to_undelete,
Aux_item_list *list_to_undelete_from,
Object_type object_type,
enum object_type object_type,
unsigned long object_no,
void *object);
......
/*
* $Id: ram-parse.c,v 0.45 2001/12/28 19:04:22 ceder Exp $
* $Id: ram-parse.c,v 0.46 2001/12/28 19:18:42 ceder Exp $
* Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -1756,7 +1756,7 @@ extern Success
fparse_aux_item_link(FILE *fp,
Aux_item_link *link)
{
link->target_type = (Object_type)fparse_long(fp);
link->target_type = (enum object_type)fparse_long(fp);
link->target_item = fparse_long(fp);
switch (link->target_type)
{
......
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