VirtualBox

Ignore:
Timestamp:
Mar 29, 2007 6:59:35 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19999
Message:

moved magics to a common header to avoid duplicating the same defines all over the place.

Location:
trunk/src/VBox/Runtime/include/internal
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/dir.h

    r1 r1816  
    2626#include <iprt/cdefs.h>
    2727#include <iprt/types.h>
     28#include "internal/magics.h"
    2829
    2930
     
    9899} RTDIR;
    99100
    100 /** The value of RTDIR::u32Magic. (Michael Ende) */
    101 #define RTDIR_MAGIC                 0x19291112
    102  /** The value of RTDIR::u32Magic after RTDirClose().  */
    103 #define RTDIR_MAGIC_DEAD            0x19950829
    104 
    105101
    106102/**
  • trunk/src/VBox/Runtime/include/internal/ldr.h

    r1 r1816  
    2424
    2525#include <iprt/types.h>
     26#include "internal/magics.h"
    2627
    2728__BEGIN_DECLS
     
    320321} RTLDRMODINTERNAL;
    321322
    322 /** The magic value for RTLDRMODINTERNAL::u32Magic. (Alan Moore) */
    323 #define RTLDRMOD_MAGIC  0x19531118
    324 
    325323
    326324/**
  • trunk/src/VBox/Runtime/include/internal/magics.h

    • Property svn:keywords set to Id
    r1815 r1816  
    1 /* $Id: $ */
     1/* $Id$ */
    22/** @file
    33 * InnoTek Portable Runtime - Internal Header Defining The Magic Numbers.
     
    2222 */
    2323
    24 #ifndef INCLUDED_internal_magics_h
    25 #define INCLUDED_internal_magics_h
     24#ifndef ___internal_magics_h___
     25#define ___internal_magics_h___
    2626
    2727/** @name Magic Numbers.
    2828 * @{ */
    2929
     30/** The value of RTDIR::u32Magic. (Michael Ende) */
     31#define RTDIR_MAGIC                 0x19291112
     32/** The value of RTDIR::u32Magic after RTDirClose().  */
     33#define RTDIR_MAGIC_DEAD            0x19950829
     34/** Magic number for RTHEAPSIMPLEINTERNAL::u32Magic. (Kyoichi Katayama) */
     35#define RTHEAPSIMPLE_MAGIC          0x19590105
     36/** The magic value for RTLDRMODINTERNAL::u32Magic. (Alan Moore) */
     37#define RTLDRMOD_MAGIC              0x19531118
     38/** Magic number for heap blocks. (Edgar Allan Poe) */
     39#define RTMEMHDR_MAGIC              0x18090119
     40/** RTR0MEMOBJ::u32Magic. (Masakazu Katsura) */
     41#define RTR0MEMOBJ_MAGIC            0x19611210
     42/** Magic for the event semaphore structure. (Neil Gaiman) */
     43#define RTSEMEVENT_MAGIC            0x19601110
     44/** Magic for the multiple release event semaphore structure. (Isaac Asimov) */
     45#define RTSEMEVENTMULTI_MAGIC       0x19200102
     46/** Magic value for RTSEMFASTMUTEXINTERNAL::u32Magic. (John Ronald Reuel Tolkien) */
     47#define RTSEMFASTMUTEX_MAGIC        0x18920102
     48/** Dead magic value for RTSEMFASTMUTEXINTERNAL::u32Magic. */
     49#define RTSEMFASTMUTEX_MAGIC_DEAD   0x19730902
     50/** Magic for the mutex semaphore structure. (Douglas Adams) */
     51#define RTSEMMUTEX_MAGIC            0x19520311
     52/** Dead magic for the mutex semaphore structure. */
     53#define RTSEMMUTEX_MAGIC_DEAD       0x20010511
     54/** RTSEMRWINTERNAL::u32Magic value. (Kosuke Fujishima) */
     55#define RTSEMRW_MAGIC               0x19640707
     56/** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */
     57#define RTSPINLOCK_MAGIC            0x19480428
     58/** The value of RTSTREAM::u32Magic for a valid stream. */
     59#define RTSTREAM_MAGIC              0xe44e44ee
     60/** RTTHREADINT::u32Magic value. (Gilbert Keith Chesterton) */
     61#define RTTHREADINT_MAGIC           0x18740529
     62/** RTTHREADINT::u32Magic value for a dead thread. */
     63#define RTTHREADINT_MAGIC_DEAD      0x19360614
    3064/** Magic number for timer handles. (Jared Mason Diamond) */
    31 #define RTTIMER_MAGIC   0x19370910
     65#define RTTIMER_MAGIC               0x19370910
    3266
    3367/** @} */
  • trunk/src/VBox/Runtime/include/internal/memobj.h

    r1300 r1816  
    2525#include <iprt/memobj.h>
    2626#include <iprt/assert.h>
     27#include "internal/magics.h"
    2728
    2829
     
    188189} RTR0MEMOBJINTERNAL;
    189190
    190 /** RTR0MEMOBJ::u32Magic. (Masakazu Katsura) */
    191 #define RTR0MEMOBJ_MAGIC   0x19611210
    192 
    193191
    194192/**
  • trunk/src/VBox/Runtime/include/internal/thread.h

    r1766 r1816  
    3030# include <iprt/critsect.h>
    3131#endif
     32#include "internal/magics.h"
    3233
    3334__BEGIN_DECLS
     
    131132} RTTHREADINT, *PRTTHREADINT;
    132133
    133 /** RTTHREADINT::u32Magic value. (Gilbert Keith Chesterton) */
    134 #define RTTHREADINT_MAGIC       0x18740529
    135 /** RTTHREADINT::u32Magic value for a dead thread. */
    136 #define RTTHREADINT_MAGIC_DEAD  0x19360614
    137134
    138135/** @name RTTHREADINT::fIntFlags Masks and Bits.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette