home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume14 / sharedmem / part01 / src / cm_sd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-17  |  384 b   |  16 lines

  1. /* cm_sd.h - sized-data structures */
  2.  
  3. /* there is no reason why the items typed as shorts cannot be longer */
  4.  
  5. typedef struct cm_value {
  6.     char *data;
  7.     unsigned short msize;    /* max size of data */
  8.     unsigned short size;    /* size of data used */
  9.     char mallocable;    /* TRUE, if we can free and malloc data */
  10. } cm_value;
  11.  
  12. struct cm_flattened_data {
  13.     unsigned short size;
  14.     char data[1];
  15. };
  16.