Changeset 380 in svn for branches/1.2/xc_shm.h


Ignore:
Timestamp:
2007-05-10T03:20:46+02:00 (8 years ago)
Author:
Xuefer
Message:

make life easier for debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/xc_shm.h

    r163 r380  
    1 typedef struct _xc_shm_t xc_shm_t;
     1typedef struct _xc_shm_handlers_t xc_shm_handlers_t;
     2
     3#ifndef XC_SHM_IMPL
     4struct _xc_shm_t {
     5    const xc_shm_handlers_t *handlers;
     6};
     7#define XC_SHM_IMPL _xc_shm_t
     8#endif
     9
     10typedef struct XC_SHM_IMPL xc_shm_t;
    211typedef size_t xc_shmsize_t;
    312
     
    3241}
    3342
    34 typedef struct {
     43struct _xc_shm_handlers_t {
    3544    const xc_mem_handlers_t *memhandlers;
    3645    XC_SHM_CAN_READONLY((*can_readonly));
     
    4453    XC_SHM_MEMINIT((*meminit));
    4554    XC_SHM_MEMDESTROY((*memdestroy));
    46 } xc_shm_handlers_t;
     55};
    4756
    48 
    49 #ifndef XC_SHM_IMPL
    50 struct _xc_shm_t {
    51     const xc_shm_handlers_t *handlers;
    52 };
    53 #endif
    5457typedef struct _xc_shm_scheme_t xc_shm_scheme_t;
    5558
Note: See TracChangeset for help on using the changeset viewer.