/* objectcode.h */ /********************************************* * Object code interface specification * * Author: Douglas W. Jones, Oct. 11, 2000 * * Author: Douglas W. Jones, July 12, 2004 * \*MP3*\ *********************************************/ /********************************************* * Prerequisites for use * * The user must include * * The user must include "boolean.h" * * In objectcode.c, but nowhere else * * EXTERN must be defined first * *********************************************/ #ifndef EXTERN #define EXTERN extern #endif /********************************************* * The Interface * *********************************************/ /* the type used for items in the object code */ #define OBJECT_TYPE unsigned int /* the type used for items that have uncertain definitions */ #define OBJECT_VALUE struct object_value struct object_value { OBJECT_TYPE value; BOOLEAN defined; }; void object_init( FILE * f ); /*MP3*/ /* initializer given: s, the object stream \*MP3*\ */ void object_put( FILE * s ); /* list the object code given: s, the listing stream */ void object_word( OBJECT_VALUE l, OBJECT_VALUE v ); /* store a word in memory given: l, the location v, the value */ void object_byte( OBJECT_VALUE l, OBJECT_VALUE v ); /* store a byte in memory given: l, the location v, the value */ #undef EXTERN