--- ray/src/common/otypes.h 2003/03/11 19:29:04 2.10 +++ ray/src/common/otypes.h 2003/09/15 17:01:52 2.13 @@ -1,14 +1,21 @@ -/* RCSid $Id: otypes.h,v 2.10 2003/03/11 19:29:04 greg Exp $ */ +/* RCSid $Id: otypes.h,v 2.13 2003/09/15 17:01:52 greg Exp $ */ /* * otypes.h - defines for object types. */ +#ifndef _RAD_OTYPES_H_ +#define _RAD_OTYPES_H_ +#ifdef __cplusplus +extern "C" { +#endif -#include "copyright.h" - typedef struct { char *funame; /* function name */ int flags; /* type flags */ +#ifdef FUN_ARGLIST + int (*funp)(FUN_ARGLIST); /* pointer to function */ +#else int (*funp)(); /* pointer to function */ +#endif } FUN; /* object types in decreasing frequency */ #define OBJ_FACE 0 /* polygon */ @@ -154,3 +161,9 @@ extern int o_default(); { "prism1", T_M|T_F|T_LV, o_default }, \ { "prism2", T_M|T_F|T_LV, o_default }, \ } + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_OTYPES_H_ */