home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftptest.leeds.ac.uk
/
2015.02.ftptest.leeds.ac.uk.tar
/
ftptest.leeds.ac.uk
/
bionet
/
CAE-GROUP
/
SCL-WIN3x
/
FED_PLUS.EXE
/
OBJECT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-23
|
1KB
|
63 lines
static char rcsid[] = "$Id: object.c,v 1.6 1993/10/15 18:49:55 libes Exp $";
/*
* This software was developed by U.S. Government employees as part of
* their official duties and is not subject to copyright.
*
* $Log: object.c,v $
* Revision 1.6 1993/10/15 18:49:55 libes
* CADDETC certified
*
* Revision 1.5 1993/02/22 21:48:18 libes
* added arg to ERRORabort
*
* Revision 1.4 1992/08/18 17:16:22 libes
* rm'd extraneous error messages
*
* Revision 1.3 1992/06/08 18:08:05 libes
* prettied up interface to print_objects_when_running
*/
#define OBJECT_C
#include "object.h"
/*ARGSUSED*/
Symbol *
UNK_get_symbol(Generic x)
{
fprintf(stderr,"OBJget_symbol called on object of unknown type\n");
ERRORabort(0);
//#if defined(lint) || defined(CENTERLINE)
return 0;
//#endif
}
/*
** Procedure: OBJinitialize
** Parameters: -- none --
** Returns: void
** Description: Initialize the Object module
*/
void
OBJinitialize()
{
int i;
OBJ = (struct Object *)malloc(MAX_OBJECT_TYPES*sizeof (struct Object));
for (i=0;i<MAX_OBJECT_TYPES;i++) {
OBJ[i].get_symbol = UNK_get_symbol;
OBJ[i].type = "of unknown_type";
OBJ[i].bits = 0;
}
}
void
OBJcreate(char type,struct Symbol *(*get_symbol)(Generic),char *printable_type,int bits)
{
OBJ[type].get_symbol = get_symbol;
OBJ[type].type = printable_type;
OBJ[type].bits = bits;
}