Listing 5

#include "obj.h"

/* file-static getcolor member function */
static int circle_getcolor(CIRCLE *pc)
   { return pc->color; }

/* file-static setcolor member function */
static int circle_setcolor(CIRCLE *pc,
                         int val);
   { return (pc->color = val); }

/* global CIRCLE_ACTIONS package */
CIRCLE_ACTIONS cact =
   {
   circle_getcolor, circle_setcolor
   };    /* initialize the action package */

/* End of File */