From ea23cd10c20defb7d0bb2cde9c4f7219a1474a2e Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Mon, 24 Aug 2009 17:12:25 +0000 Subject: [PATCH 1/1] - Start deprecating TAG() - Fix inverted tags in prntfont.h, stdunk.h and win32k/objects/font.c svn path=/trunk/; revision=42915 --- reactos/drivers/bus/isapnp/isapnp.h | 3 +- reactos/drivers/bus/pci/pci.h | 3 +- reactos/drivers/directx/dxg/tags.h | 4 +- reactos/drivers/filesystems/cdfs/cdfs.h | 8 +- .../drivers/filesystems/ext2/inc/ext2fsd.h | 3 +- reactos/drivers/filesystems/fastfat/fcb.c | 2 +- reactos/drivers/filesystems/fastfat/vfat.h | 12 +- .../drivers/filesystems/fastfat_new/fastfat.h | 16 +- reactos/drivers/filesystems/fs_rec/fs_rec.h | 3 +- reactos/drivers/filesystems/mup/mup.h | 4 - reactos/drivers/filesystems/ntfs/dirctl.c | 2 +- reactos/drivers/filesystems/ntfs/dispatch.c | 2 +- reactos/drivers/filesystems/ntfs/fcb.c | 2 +- reactos/drivers/filesystems/ntfs/misc.c | 2 +- reactos/drivers/filesystems/ntfs/ntfs.c | 4 +- reactos/drivers/filesystems/ntfs/ntfs.h | 18 +- reactos/drivers/input/i8042prt/i8042prt.h | 3 +- reactos/drivers/input/i8042prt/keyboard.c | 5 +- reactos/drivers/input/kbdclass/kbdclass.h | 3 +- reactos/drivers/input/mouclass/mouclass.h | 3 +- reactos/drivers/input/sermouse/sermouse.h | 3 +- reactos/drivers/ksfilter/ks/ksfunc.h | 5 +- reactos/drivers/ksfilter/ks/priv.h | 2 +- .../multimedia/audio/sb16_nt4.old/main.c | 5 +- reactos/drivers/network/dd/pcnet/pcnet.h | 6 +- .../drivers/network/ndis/include/ndissys.h | 1 - reactos/drivers/network/ndis/ndis/miniport.c | 4 +- .../drivers/network/tcpip/include/address.h | 2 +- reactos/drivers/network/tcpip/include/tcpip.h | 3 +- reactos/drivers/serial/serenum/serenum.h | 4 +- reactos/drivers/serial/serial/serial.h | 4 +- reactos/drivers/setup/blue/blue.h | 6 +- reactos/drivers/storage/class/class2/class2.c | 4 +- .../drivers/storage/class/ramdisk/ramdisk.c | 12 +- reactos/drivers/storage/ide/uniata/stdafx.h | 3 +- .../drivers/storage/scsiport/scsiport_int.h | 3 +- .../video/displays/framebuf/framebuf.h | 4 +- .../video/displays/framebufacc/framebufacc.h | 4 +- reactos/drivers/video/displays/vga/vgaddi.h | 4 +- reactos/drivers/video/font/ftfd/rosglue.c | 3 +- reactos/drivers/video/miniport/vbe/vbemp.h | 3 +- reactos/drivers/video/videoprt/videoprt.c | 2 +- reactos/drivers/video/videoprt/videoprt.h | 4 +- .../wdm/audio/backpln/portcls/private.h | 3 +- reactos/hal/halppc/generic/dma.c | 2 +- reactos/hal/halppc/generic/pci.c | 2 +- reactos/hal/halx86/generic/dma.c | 2 +- reactos/hal/halx86/generic/pci.c | 4 +- reactos/include/ddk/stdunk.h | 6 +- reactos/include/ddk/winddk.h | 2 +- reactos/include/psdk/wdbgexts.h | 2 +- reactos/include/reactos/probe.h | 2 +- reactos/lib/drivers/ip/network/ip.c | 10 +- reactos/lib/drivers/ip/network/memtrack.c | 2 +- reactos/lib/drivers/ip/network/neighbor.c | 2 +- reactos/lib/drivers/ip/network/router.c | 2 +- reactos/lib/drivers/ip/transport/tcp/event.c | 8 +- reactos/lib/drivers/ip/transport/tcp/tcp.c | 2 +- reactos/lib/fslib/vfatlib/check/vfat.h | 10 +- reactos/lib/rossym/initkm.c | 3 +- reactos/lib/rtl/bootdata.c | 24 +-- reactos/lib/rtl/registry.c | 2 +- reactos/lib/rtl/rtlp.h | 6 +- reactos/lib/rtl/sid.c | 2 +- .../subsystems/win32/win32k/eng/engevent.c | 2 +- .../subsystems/win32/win32k/include/tags.h | 168 +++++++++--------- .../subsystems/win32/win32k/include/text.h | 2 +- .../subsystems/win32/win32k/main/dllmain.c | 4 +- .../win32/win32k/ntuser/sysparams.c | 2 +- .../subsystems/win32/win32k/objects/font.c | 6 +- .../subsystems/win32/win32k/objects/gdidbg.c | 2 +- 71 files changed, 203 insertions(+), 274 deletions(-) diff --git a/reactos/drivers/bus/isapnp/isapnp.h b/reactos/drivers/bus/isapnp/isapnp.h index 6602fc5dddb..003dbe823a4 100644 --- a/reactos/drivers/bus/isapnp/isapnp.h +++ b/reactos/drivers/bus/isapnp/isapnp.h @@ -7,8 +7,7 @@ extern "C" { #endif -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define TAG_ISAPNP TAG('I', 'P', 'N', 'P') +#define TAG_ISAPNP 'PNPI' #define IO_RESOURCE_REQUIRED 0x00 //ROS Extension diff --git a/reactos/drivers/bus/pci/pci.h b/reactos/drivers/bus/pci/pci.h index c6b202984c6..5cd7e538704 100644 --- a/reactos/drivers/bus/pci/pci.h +++ b/reactos/drivers/bus/pci/pci.h @@ -6,8 +6,7 @@ #include #include -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define TAG_PCI TAG('P', 'C', 'I', '0') +#define TAG_PCI '0ICP' typedef struct _PCI_DEVICE { diff --git a/reactos/drivers/directx/dxg/tags.h b/reactos/drivers/directx/dxg/tags.h index 2dadac66208..80afec11432 100644 --- a/reactos/drivers/directx/dxg/tags.h +++ b/reactos/drivers/directx/dxg/tags.h @@ -1,8 +1,8 @@ -#define TAG_THDD TAG('t', 'h', 'd', 'd') -#define TAG_GINI TAG('G', 'i', 'n', 'i') +#define TAG_THDD 'ddht' +#define TAG_GINI 'iniG' diff --git a/reactos/drivers/filesystems/cdfs/cdfs.h b/reactos/drivers/filesystems/cdfs/cdfs.h index 63db19b3197..3f686d34228 100644 --- a/reactos/drivers/filesystems/cdfs/cdfs.h +++ b/reactos/drivers/filesystems/cdfs/cdfs.h @@ -227,12 +227,8 @@ typedef struct _CCB ULONG LastOffset; } CCB, *PCCB; -#ifndef TAG -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#endif - -#define TAG_CCB TAG('I', 'C', 'C', 'B') -#define TAG_FCB TAG('I', 'F', 'C', 'B') +#define TAG_CCB 'BCCI' +#define TAG_FCB 'BCFI' typedef struct { diff --git a/reactos/drivers/filesystems/ext2/inc/ext2fsd.h b/reactos/drivers/filesystems/ext2/inc/ext2fsd.h index 1ad79de9525..bf2b784fb86 100644 --- a/reactos/drivers/filesystems/ext2/inc/ext2fsd.h +++ b/reactos/drivers/filesystems/ext2/inc/ext2fsd.h @@ -115,9 +115,8 @@ extern Ext2Data Ext2GlobalData; } #ifdef EXT2_POOL_WITH_TAG - #define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) #define Ext2AllocatePool(PoolType,NumberOfBytes) \ - ExAllocatePoolWithTag( PoolType, NumberOfBytes, TAG ( 'E','x','t','2' ) ) + ExAllocatePoolWithTag( PoolType, NumberOfBytes, '2txE' ) #else #define Ext2AllocatePool(PoolType,NumberOfBytes) \ ExAllocatePool( PoolType, NumberOfBytes ) diff --git a/reactos/drivers/filesystems/fastfat/fcb.c b/reactos/drivers/filesystems/fastfat/fcb.c index 7ebee47f0b8..0522bf56420 100644 --- a/reactos/drivers/filesystems/fastfat/fcb.c +++ b/reactos/drivers/filesystems/fastfat/fcb.c @@ -19,7 +19,7 @@ /* -------------------------------------------------------- DEFINES */ -#define TAG_FCB TAG('V', 'F', 'C', 'B') +#define TAG_FCB 'BCFV' /* -------------------------------------------------------- PUBLICS */ diff --git a/reactos/drivers/filesystems/fastfat/vfat.h b/reactos/drivers/filesystems/fastfat/vfat.h index ac02d2682d2..7842ca65344 100644 --- a/reactos/drivers/filesystems/fastfat/vfat.h +++ b/reactos/drivers/filesystems/fastfat/vfat.h @@ -402,14 +402,10 @@ typedef struct _VFATCCB UNICODE_STRING SearchPattern; } VFATCCB, *PVFATCCB; -#ifndef TAG -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#endif - -#define TAG_CCB TAG('V', 'C', 'C', 'B') -#define TAG_FCB TAG('V', 'F', 'C', 'B') -#define TAG_IRP TAG('V', 'I', 'R', 'P') -#define TAG_VFAT TAG('V', 'F', 'A', 'T') +#define TAG_CCB 'BCCV' +#define TAG_FCB 'BCFV' +#define TAG_IRP 'PRIV' +#define TAG_VFAT 'TAFV' #define ENTRIES_PER_SECTOR (BLOCKSIZE / sizeof(FATDirEntry)) diff --git a/reactos/drivers/filesystems/fastfat_new/fastfat.h b/reactos/drivers/filesystems/fastfat_new/fastfat.h index fa704d14ac1..becad682f39 100644 --- a/reactos/drivers/filesystems/fastfat_new/fastfat.h +++ b/reactos/drivers/filesystems/fastfat_new/fastfat.h @@ -3,24 +3,16 @@ #include #include -#ifndef TAG -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#endif - #include #include #define Add2Ptr(P,I,T) ((T)((PUCHAR)(P) + (I))) #define PtrOffset(B,O) ((ULONG)((ULONG_PTR)(O) - (ULONG_PTR)(B))) -#ifndef TAG -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#endif - -#define TAG_CCB TAG('V', 'C', 'C', 'B') -#define TAG_FCB TAG('V', 'F', 'C', 'B') -#define TAG_IRP TAG('V', 'I', 'R', 'P') -#define TAG_VFAT TAG('V', 'F', 'A', 'T') +#define TAG_CCB 'BCCV' +#define TAG_FCB 'BCFV' +#define TAG_IRP 'PRIV' +#define TAG_VFAT 'TAFV' /* ------------------------------------------------------ shutdown.c */ DRIVER_DISPATCH FatShutdown; diff --git a/reactos/drivers/filesystems/fs_rec/fs_rec.h b/reactos/drivers/filesystems/fs_rec/fs_rec.h index 643aca538be..628bf228c75 100644 --- a/reactos/drivers/filesystems/fs_rec/fs_rec.h +++ b/reactos/drivers/filesystems/fs_rec/fs_rec.h @@ -17,8 +17,7 @@ // // Tag for memory allocations // -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define FSREC_TAG TAG('F', 's', 'R', 'c') +#define FSREC_TAG 'cRsF' // // UDFS Offsets diff --git a/reactos/drivers/filesystems/mup/mup.h b/reactos/drivers/filesystems/mup/mup.h index e1162fb5b81..39a42ad29b1 100644 --- a/reactos/drivers/filesystems/mup/mup.h +++ b/reactos/drivers/filesystems/mup/mup.h @@ -1,10 +1,6 @@ #ifndef MUP_H #define MUP_H -#ifndef TAG -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#endif - #define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S)) diff --git a/reactos/drivers/filesystems/ntfs/dirctl.c b/reactos/drivers/filesystems/ntfs/dirctl.c index 16f2ccdf42f..abe9df39a6b 100644 --- a/reactos/drivers/filesystems/ntfs/dirctl.c +++ b/reactos/drivers/filesystems/ntfs/dirctl.c @@ -715,7 +715,7 @@ NtfsFsdDirectoryControl(PDEVICE_OBJECT DeviceObject, IoCompleteRequest(Irp, IO_NO_INCREMENT); if (IrpContext) - ExFreePoolWithTag(IrpContext, TAG('N', 'I', 'R', 'P')); + ExFreePoolWithTag(IrpContext, 'PRIN'); IoSetTopLevelIrp(NULL); FsRtlExitFileSystem(); diff --git a/reactos/drivers/filesystems/ntfs/dispatch.c b/reactos/drivers/filesystems/ntfs/dispatch.c index d62a5f64064..1c00ea07d3e 100644 --- a/reactos/drivers/filesystems/ntfs/dispatch.c +++ b/reactos/drivers/filesystems/ntfs/dispatch.c @@ -82,7 +82,7 @@ NtfsFsdDispatch(PDEVICE_OBJECT DeviceObject, IoCompleteRequest(Irp, IO_NO_INCREMENT); if (IrpContext) - ExFreePoolWithTag(IrpContext, TAG('N', 'I', 'R', 'P')); + ExFreePoolWithTag(IrpContext, 'PRIN'); IoSetTopLevelIrp(NULL); FsRtlExitFileSystem(); diff --git a/reactos/drivers/filesystems/ntfs/fcb.c b/reactos/drivers/filesystems/ntfs/fcb.c index 11ce1ad6b5b..d0f3eeefbee 100644 --- a/reactos/drivers/filesystems/ntfs/fcb.c +++ b/reactos/drivers/filesystems/ntfs/fcb.c @@ -36,7 +36,7 @@ /* MACROS *******************************************************************/ -#define TAG_FCB TAG('I', 'F', 'C', 'B') +#define TAG_FCB 'BCFI' diff --git a/reactos/drivers/filesystems/ntfs/misc.c b/reactos/drivers/filesystems/ntfs/misc.c index f35bb1b7ea7..d676b224ce3 100644 --- a/reactos/drivers/filesystems/ntfs/misc.c +++ b/reactos/drivers/filesystems/ntfs/misc.c @@ -74,7 +74,7 @@ NtfsAllocateIrpContext(PDEVICE_OBJECT DeviceObject, TRACE_(NTFS, "NtfsAllocateIrpContext()\n"); - IrpContext = (PNTFS_IRP_CONTEXT)ExAllocatePoolWithTag(NonPagedPool, sizeof(NTFS_IRP_CONTEXT), TAG('N', 'I', 'R', 'P')); + IrpContext = (PNTFS_IRP_CONTEXT)ExAllocatePoolWithTag(NonPagedPool, sizeof(NTFS_IRP_CONTEXT), 'PRIN'); if (IrpContext == NULL) return NULL; RtlZeroMemory(IrpContext, sizeof(NTFS_IRP_CONTEXT)); diff --git a/reactos/drivers/filesystems/ntfs/ntfs.c b/reactos/drivers/filesystems/ntfs/ntfs.c index 0b43ce7360a..d7ccbd84180 100644 --- a/reactos/drivers/filesystems/ntfs/ntfs.c +++ b/reactos/drivers/filesystems/ntfs/ntfs.c @@ -55,7 +55,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject, TRACE_(NTFS, "DriverEntry(%p, '%wZ')\n", DriverObject, RegistryPath); /* Initialize global data */ - NtfsGlobalData = ExAllocatePoolWithTag(NonPagedPool, sizeof(NTFS_GLOBAL_DATA), TAG('N', 'D', 'R', 'G')); + NtfsGlobalData = ExAllocatePoolWithTag(NonPagedPool, sizeof(NTFS_GLOBAL_DATA), 'GRDN'); if (!NtfsGlobalData) { Status = STATUS_INSUFFICIENT_RESOURCES; @@ -107,7 +107,7 @@ ErrorEnd: if (NtfsGlobalData) { ExDeleteResourceLite(&NtfsGlobalData->Resource); - ExFreePoolWithTag(NtfsGlobalData, TAG('N', 'D', 'R', 'G')); + ExFreePoolWithTag(NtfsGlobalData, 'GRDN'); } } diff --git a/reactos/drivers/filesystems/ntfs/ntfs.h b/reactos/drivers/filesystems/ntfs/ntfs.h index 7080e801c14..ad020427744 100644 --- a/reactos/drivers/filesystems/ntfs/ntfs.h +++ b/reactos/drivers/filesystems/ntfs/ntfs.h @@ -9,11 +9,7 @@ ((pDeviceExt)->NtfsInfo.UCHARsPerCluster > PAGE_SIZE ? \ (pDeviceExt)->NtfsInfo.UCHARsPerCluster : PAGE_SIZE) -#ifndef TAG -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#endif - -#define TAG_NTFS TAG('N', 'T', 'F', 'S') +#define TAG_NTFS 'SFTN' #define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S)) @@ -83,11 +79,11 @@ typedef struct _NTFS_INFO } NTFS_INFO, *PNTFS_INFO; -#define NTFS_TYPE_CCB TAG('F','S',0,2) -#define NTFS_TYPE_FCB TAG('F','S',0,3) -#define NTFS_TYPE_VCB TAG('F','S',0,5) -#define NTFS_TYPE_IRP_CONTEST TAG('F','S',0,6) -#define NTFS_TYPE_GLOBAL_DATA TAG('F','S',0,7) +#define NTFS_TYPE_CCB '20SF' +#define NTFS_TYPE_FCB '30SF' +#define NTFS_TYPE_VCB '50SF' +#define NTFS_TYPE_IRP_CONTEST '60SF' +#define NTFS_TYPE_GLOBAL_DATA '70SF' typedef struct { @@ -165,7 +161,7 @@ typedef struct ULONG LastOffset; } NTFS_CCB, *PNTFS_CCB; -#define TAG_CCB TAG('I', 'C', 'C', 'B') +#define TAG_CCB 'BCCI' typedef struct { diff --git a/reactos/drivers/input/i8042prt/i8042prt.h b/reactos/drivers/input/i8042prt/i8042prt.h index 7ea45abadb0..e3f6478797f 100644 --- a/reactos/drivers/input/i8042prt/i8042prt.h +++ b/reactos/drivers/input/i8042prt/i8042prt.h @@ -14,8 +14,7 @@ * Structures * --------------------------------------------------*/ -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define I8042PRT_TAG TAG('8', '0', '4', '2') +#define I8042PRT_TAG '2408' typedef enum { diff --git a/reactos/drivers/input/i8042prt/keyboard.c b/reactos/drivers/input/i8042prt/keyboard.c index a6d68832a7b..3168508c803 100644 --- a/reactos/drivers/input/i8042prt/keyboard.c +++ b/reactos/drivers/input/i8042prt/keyboard.c @@ -31,9 +31,6 @@ static LOCAL_KEYBOARD_INDICATOR_TRANSLATION IndicatorTranslation = { 3, { /* FUNCTIONS *****************************************************************/ -/* Debug stuff */ -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) - static VOID NTAPI i8042DebugWorkItem( IN PDEVICE_OBJECT DeviceObject, @@ -48,7 +45,7 @@ i8042DebugWorkItem( /* We hope kernel would understand this. If * that's not the case, nothing would happen. */ - KdSystemDebugControl(TAG('R', 'o', 's', ' '), Key, 0, NULL, 0, NULL, KernelMode); + KdSystemDebugControl(' soR', Key, 0, NULL, 0, NULL, KernelMode); } /* diff --git a/reactos/drivers/input/kbdclass/kbdclass.h b/reactos/drivers/input/kbdclass/kbdclass.h index a98920a06c5..f68386e2b6d 100644 --- a/reactos/drivers/input/kbdclass/kbdclass.h +++ b/reactos/drivers/input/kbdclass/kbdclass.h @@ -10,8 +10,7 @@ #define MIN(a, b) ((a) < (b) ? (a) : (b)) -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define CLASS_TAG TAG('K', 'b', 'd', 'C') +#define CLASS_TAG 'CdbK' #define DPFLTR_CLASS_NAME_ID DPFLTR_KBDCLASS_ID typedef enum diff --git a/reactos/drivers/input/mouclass/mouclass.h b/reactos/drivers/input/mouclass/mouclass.h index 62dba0198c4..cd70beefead 100644 --- a/reactos/drivers/input/mouclass/mouclass.h +++ b/reactos/drivers/input/mouclass/mouclass.h @@ -10,8 +10,7 @@ #define MIN(a, b) ((a) < (b) ? (a) : (b)) -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define CLASS_TAG TAG('M', 'o', 'u', 'C') +#define CLASS_TAG 'CuoM' #define DPFLTR_CLASS_NAME_ID DPFLTR_MOUCLASS_ID typedef enum diff --git a/reactos/drivers/input/sermouse/sermouse.h b/reactos/drivers/input/sermouse/sermouse.h index c3efc691766..b884008b7b6 100644 --- a/reactos/drivers/input/sermouse/sermouse.h +++ b/reactos/drivers/input/sermouse/sermouse.h @@ -4,8 +4,7 @@ #include #include -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define SERMOUSE_TAG TAG('S', 'M', 'o', 'u') +#define SERMOUSE_TAG 'uoMS' typedef enum { diff --git a/reactos/drivers/ksfilter/ks/ksfunc.h b/reactos/drivers/ksfilter/ks/ksfunc.h index 76f38b5ed28..99f0b202285 100644 --- a/reactos/drivers/ksfilter/ks/ksfunc.h +++ b/reactos/drivers/ksfilter/ks/ksfunc.h @@ -4,9 +4,8 @@ #include "ksiface.h" #include "kstypes.h" -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define TAG_KSDEVICE TAG('K', 'S', 'E', 'D') -#define TAG_KSOBJECT_TAG TAG('K', 'S', 'O', 'H') +#define TAG_KSDEVICE 'DESK' +#define TAG_KSOBJECT_TAG 'HOSK' NTSTATUS NTAPI diff --git a/reactos/drivers/ksfilter/ks/priv.h b/reactos/drivers/ksfilter/ks/priv.h index a068ffd3895..6b9aced499f 100644 --- a/reactos/drivers/ksfilter/ks/priv.h +++ b/reactos/drivers/ksfilter/ks/priv.h @@ -18,7 +18,7 @@ #include "ksiface.h" -#define TAG_DEVICE_HEADER TAG('H','D','S','K') +#define TAG_DEVICE_HEADER 'KSDH' #define DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT(PinSet,\ PropGeneral, PropInstances, PropIntersection)\ diff --git a/reactos/drivers/multimedia/audio/sb16_nt4.old/main.c b/reactos/drivers/multimedia/audio/sb16_nt4.old/main.c index 69625c2cce0..afea62fec5e 100644 --- a/reactos/drivers/multimedia/audio/sb16_nt4.old/main.c +++ b/reactos/drivers/multimedia/audio/sb16_nt4.old/main.c @@ -12,7 +12,6 @@ #define NDEBUG #include -#define TAG(A, B, C, D) (IN ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) /* IRP DISPATCH ROUTINES @@ -207,8 +206,8 @@ AllocateRegistryPathInfo( ExFreePool(ptr) -#define TAG_REG_INFO TAG('I','g','e','R') -#define TAG_REG_NAME TAG('N','g','e','R') +#define TAG_REG_INFO 'RegI' +#define TAG_REG_NAME 'RegN' NTSTATUS NTAPI EnumerateSubkey( diff --git a/reactos/drivers/network/dd/pcnet/pcnet.h b/reactos/drivers/network/dd/pcnet/pcnet.h index 818b055cb04..62312ee3fa2 100644 --- a/reactos/drivers/network/dd/pcnet/pcnet.h +++ b/reactos/drivers/network/dd/pcnet/pcnet.h @@ -155,12 +155,8 @@ MiGetMediaDuplex(PADAPTER Adapter); #define BREAKPOINT #endif -#ifndef TAG -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#endif - /* memory pool tag */ -#define PCNET_TAG TAG('P', 'c', 'N', 't') +#define PCNET_TAG 'tNcP' #endif // _PCNET_H_ diff --git a/reactos/drivers/network/ndis/include/ndissys.h b/reactos/drivers/network/ndis/include/ndissys.h index b1d7c8df634..d97f1f0ab41 100644 --- a/reactos/drivers/network/ndis/include/ndissys.h +++ b/reactos/drivers/network/ndis/include/ndissys.h @@ -31,7 +31,6 @@ /* the version of NDIS we claim to be */ #define NDIS_VERSION 0x00050000 -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) #define NDIS_TAG 0x4e4d4953 #define MIN(value1, value2) \ diff --git a/reactos/drivers/network/ndis/ndis/miniport.c b/reactos/drivers/network/ndis/ndis/miniport.c index 5fa40f0129b..158ad30fb98 100644 --- a/reactos/drivers/network/ndis/ndis/miniport.c +++ b/reactos/drivers/network/ndis/ndis/miniport.c @@ -2236,7 +2236,7 @@ NdisIAddDevice( * Gain the access to the miniport data structure first. */ - MiniportPtr = IoGetDriverObjectExtension(DriverObject, (PVOID)TAG('D','I','M','N')); + MiniportPtr = IoGetDriverObjectExtension(DriverObject, (PVOID)'NMID'); if (MiniportPtr == NULL) { NDIS_DbgPrint(MIN_TRACE, ("Can't get driver object extension.\n")); @@ -2487,7 +2487,7 @@ NdisMRegisterMiniport( * structure in the driver extension or what? */ - Status = IoAllocateDriverObjectExtension(Miniport->DriverObject, (PVOID)TAG('D','I','M','N'), + Status = IoAllocateDriverObjectExtension(Miniport->DriverObject, (PVOID)'NMID', sizeof(PNDIS_M_DRIVER_BLOCK), (PVOID*)&MiniportPtr); if (!NT_SUCCESS(Status)) { diff --git a/reactos/drivers/network/tcpip/include/address.h b/reactos/drivers/network/tcpip/include/address.h index 49ecf8e3c00..71a0f876499 100644 --- a/reactos/drivers/network/tcpip/include/address.h +++ b/reactos/drivers/network/tcpip/include/address.h @@ -15,7 +15,7 @@ */ #define AddrInitIPv4(IPAddress, RawAddress) \ { \ - INIT_TAG((IPAddress), TAG('I','P','V','4')); \ + INIT_TAG((IPAddress), '4VPI'); \ (IPAddress)->Type = IP_ADDRESS_V4; \ (IPAddress)->Address.IPv4Address = (RawAddress); \ } diff --git a/reactos/drivers/network/tcpip/include/tcpip.h b/reactos/drivers/network/tcpip/include/tcpip.h index 5a4c19b88a0..da3cb24d4c3 100644 --- a/reactos/drivers/network/tcpip/include/tcpip.h +++ b/reactos/drivers/network/tcpip/include/tcpip.h @@ -30,8 +30,7 @@ #include -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define TAG_STRING TAG('S', 'T', 'R', ' ') /* string */ +#define TAG_STRING ' RTS' /* string */ /* Define _NTTEST_ to make test version. Device names are prefixed with 'NT' to allow the driver to run side by side with MS TCP/IP driver */ diff --git a/reactos/drivers/serial/serenum/serenum.h b/reactos/drivers/serial/serenum/serenum.h index af72f4b84f1..481442361a8 100644 --- a/reactos/drivers/serial/serenum/serenum.h +++ b/reactos/drivers/serial/serenum/serenum.h @@ -13,8 +13,6 @@ #include #include -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) - typedef enum { dsStopped, @@ -57,7 +55,7 @@ typedef struct _PDO_DEVICE_EXTENSION UNICODE_STRING CompatibleIds; // REG_MULTI_SZ } PDO_DEVICE_EXTENSION, *PPDO_DEVICE_EXTENSION; -#define SERENUM_TAG TAG('S', 'e', 'r', 'e') +#define SERENUM_TAG 'ereS' /* Flags */ #define FLAG_ENUMERATION_DONE 0x01 diff --git a/reactos/drivers/serial/serial/serial.h b/reactos/drivers/serial/serial/serial.h index a795053562a..e9c6360fcaa 100644 --- a/reactos/drivers/serial/serial/serial.h +++ b/reactos/drivers/serial/serial/serial.h @@ -13,8 +13,6 @@ #include #include -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) - /* See winbase.h */ #define PST_RS232 1 #define COMMPROP_INITIALIZED 0xE73CF52E @@ -108,7 +106,7 @@ typedef struct _WORKITEM_DATA BOOLEAN ReadAtLeastOneByte; } WORKITEM_DATA, *PWORKITEM_DATA; -#define SERIAL_TAG TAG('S', 'e', 'r', 'l') +#define SERIAL_TAG 'lreS' #define INFINITE ((ULONG)-1) diff --git a/reactos/drivers/setup/blue/blue.h b/reactos/drivers/setup/blue/blue.h index a5bdf7b224e..49be79abab7 100644 --- a/reactos/drivers/setup/blue/blue.h +++ b/reactos/drivers/setup/blue/blue.h @@ -12,11 +12,7 @@ #include #include -#ifndef TAG -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#endif - -#define TAG_BLUE TAG('B', 'L', 'U', 'E') +#define TAG_BLUE 'EULB' typedef struct _CFHEADER { diff --git a/reactos/drivers/storage/class/class2/class2.c b/reactos/drivers/storage/class/class2/class2.c index 455aff448bc..517ddd4061e 100644 --- a/reactos/drivers/storage/class/class2/class2.c +++ b/reactos/drivers/storage/class/class2/class2.c @@ -15,8 +15,6 @@ //#define NDEBUG #include -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) - #ifdef ALLOC_PRAGMA #pragma alloc_text(PAGE, ScsiClassGetInquiryData) #pragma alloc_text(PAGE, ScsiClassInitialize) @@ -4635,7 +4633,7 @@ Return Value: NULL, NonPagedPoolMustSucceed, SCSI_REQUEST_BLOCK_SIZE, - TAG('H','s','c','S'), + 'ScsH', (USHORT)NumberElements); } diff --git a/reactos/drivers/storage/class/ramdisk/ramdisk.c b/reactos/drivers/storage/class/ramdisk/ramdisk.c index 2081db3d348..e6363e4c6f7 100644 --- a/reactos/drivers/storage/class/ramdisk/ramdisk.c +++ b/reactos/drivers/storage/class/ramdisk/ramdisk.c @@ -493,7 +493,7 @@ RamdiskCreateDiskDevice(IN PRAMDISK_BUS_EXTENSION DeviceExtension, Length = GuidString.Length + 32; Buffer = ExAllocatePoolWithTag(NonPagedPool, Length, - TAG('R', 'a', 'm', 'd')); + 'dmaR'); if (!Buffer) { // @@ -542,7 +542,7 @@ RamdiskCreateDiskDevice(IN PRAMDISK_BUS_EXTENSION DeviceExtension, SymbolicLinkName.Length = GuidString.Length + 34; Buffer = ExAllocatePoolWithTag(NonPagedPool, SymbolicLinkName.MaximumLength, - TAG('R', 'a', 'm', 'd')); + 'dmaR'); SymbolicLinkName.Buffer = Buffer; if (Buffer) { @@ -618,7 +618,7 @@ RamdiskCreateDiskDevice(IN PRAMDISK_BUS_EXTENSION DeviceExtension, DiskLength = Input->DiskLength; ExInitializeFastMutex(&DriveExtension->DiskListLock); IoInitializeRemoveLock(&DriveExtension->RemoveLock, - TAG('R', 'a', 'm', 'd'), + 'dmaR', 0, 1); DriveExtension->DriveDeviceName = DeviceName; @@ -1811,7 +1811,7 @@ RamdiskQueryDeviceRelations(IN DEVICE_RELATION_TYPE Type, Objects) + FinalCount * sizeof(PDEVICE_OBJECT), - TAG('R', 'a', 'm', 'd')); + 'dmaR'); if (!OurDeviceRelations) { // @@ -2231,7 +2231,7 @@ RamdiskAddDevice(IN PDRIVER_OBJECT DriverObject, DeviceExtension->Type = RamdiskBus; ExInitializeFastMutex(&DeviceExtension->DiskListLock); IoInitializeRemoveLock(&DeviceExtension->RemoveLock, - TAG('R', 'a', 'm', 'd'), + 'dmaR', 0, 1); InitializeListHead(&DeviceExtension->DiskList); @@ -2322,7 +2322,7 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject, DriverRegistryPath.Buffer = ExAllocatePoolWithTag(PagedPool, RegistryPath->Length + sizeof(WCHAR), - TAG('R', 'a', 'm', 'd')); + 'dmaR'); if (!DriverRegistryPath.Buffer) return STATUS_INSUFFICIENT_RESOURCES; RtlCopyUnicodeString(&DriverRegistryPath, RegistryPath); diff --git a/reactos/drivers/storage/ide/uniata/stdafx.h b/reactos/drivers/storage/ide/uniata/stdafx.h index 1953fd728e9..6ee3304681e 100644 --- a/reactos/drivers/storage/ide/uniata/stdafx.h +++ b/reactos/drivers/storage/ide/uniata/stdafx.h @@ -23,8 +23,7 @@ extern "C" { #undef ExAllocatePool #endif -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define TAG_UNIATA TAG('a', 't', 'a', 'U') +#define TAG_UNIATA 'Uata' #define ExAllocatePool(a,b) ExAllocatePoolWithTag(a,b,TAG_UNIATA) diff --git a/reactos/drivers/storage/scsiport/scsiport_int.h b/reactos/drivers/storage/scsiport/scsiport_int.h index bd85cdc5758..e6651e61f1d 100644 --- a/reactos/drivers/storage/scsiport/scsiport_int.h +++ b/reactos/drivers/storage/scsiport/scsiport_int.h @@ -14,8 +14,7 @@ #define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S)) #endif -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define TAG_SCSIPORT TAG('S', 'C', 'S', 'I') +#define TAG_SCSIPORT 'ISCS' /* Defines how many logical unit arrays will be in a device extension */ #define LUS_NUMBER 8 diff --git a/reactos/drivers/video/displays/framebuf/framebuf.h b/reactos/drivers/video/displays/framebuf/framebuf.h index e66c756a6c2..4b64cf05c37 100644 --- a/reactos/drivers/video/displays/framebuf/framebuf.h +++ b/reactos/drivers/video/displays/framebuf/framebuf.h @@ -68,10 +68,8 @@ typedef struct _PDEV DDPIXELFORMAT ddpfDisplay; } PDEV, *PPDEV; -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) - #define DEVICE_NAME L"framebuf" -#define ALLOC_TAG TAG('F','B','U','F') +#define ALLOC_TAG 'FUBF' DHPDEV APIENTRY diff --git a/reactos/drivers/video/displays/framebufacc/framebufacc.h b/reactos/drivers/video/displays/framebufacc/framebufacc.h index a3171a3fd09..417182b1559 100644 --- a/reactos/drivers/video/displays/framebufacc/framebufacc.h +++ b/reactos/drivers/video/displays/framebufacc/framebufacc.h @@ -95,10 +95,8 @@ typedef struct _PDEV -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) - #define DEVICE_NAME L"framebuf" -#define ALLOC_TAG TAG('F','B','U','F') +#define ALLOC_TAG 'FUBF' DHPDEV APIENTRY diff --git a/reactos/drivers/video/displays/vga/vgaddi.h b/reactos/drivers/video/displays/vga/vgaddi.h index fb2f2da1575..7b4a3c606a7 100644 --- a/reactos/drivers/video/displays/vga/vgaddi.h +++ b/reactos/drivers/video/displays/vga/vgaddi.h @@ -67,8 +67,6 @@ InitializeListHead( /***********************************************************/ -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) - #define DS_SOLIDBRUSH 0x00000001 #define DS_GREYBRUSH 0x00000002 #define DS_BRUSH 0x00000004 @@ -249,7 +247,7 @@ BOOL InitVGA(PPDEV ppdev, BOOL bFirst); // screen.c: initialize VGA mode BOOL DeinitVGA(PPDEV ppdev); // screen.c: Free resources allocated in InitVGA #define DRIVER_EXTRA_SIZE 0 -#define ALLOC_TAG TAG('D', 'v', 'g', 'a') // Dvga tag +#define ALLOC_TAG 'agvD' // Dvga tag #define DLL_NAME L"vga" // DLL name in Unicode #define MAX_SCAN_WIDTH 2048 // pixels diff --git a/reactos/drivers/video/font/ftfd/rosglue.c b/reactos/drivers/video/font/ftfd/rosglue.c index a72f8fa9940..484fa6f3963 100644 --- a/reactos/drivers/video/font/ftfd/rosglue.c +++ b/reactos/drivers/video/font/ftfd/rosglue.c @@ -17,8 +17,7 @@ #define NDEBUG #include -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define TAG_FREETYPE TAG('F', 'T', 'Y', 'P') +#define TAG_FREETYPE 'PYTF' /* * First some generic routines diff --git a/reactos/drivers/video/miniport/vbe/vbemp.h b/reactos/drivers/video/miniport/vbe/vbemp.h index 187ba5ef63d..4b9992b9677 100644 --- a/reactos/drivers/video/miniport/vbe/vbemp.h +++ b/reactos/drivers/video/miniport/vbe/vbemp.h @@ -38,8 +38,7 @@ #include "ntddvdeo.h" #include "video.h" -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define TAG_VBE TAG('V', 'B', 'E', ' ') +#define TAG_VBE ' EBV' /* * Compile-time define to get VBE 1.2 support. The implementation diff --git a/reactos/drivers/video/videoprt/videoprt.c b/reactos/drivers/video/videoprt/videoprt.c index 3d14c85c618..093469adff8 100644 --- a/reactos/drivers/video/videoprt/videoprt.c +++ b/reactos/drivers/video/videoprt/videoprt.c @@ -666,7 +666,7 @@ VideoPortInitialize( ExAllocatePoolWithTag( PagedPool, DriverExtension->RegistryPath.MaximumLength, - TAG('U', 'S', 'T', 'R')); + 'RTSU'); if (DriverExtension->RegistryPath.Buffer == NULL) { RtlInitUnicodeString(&DriverExtension->RegistryPath, NULL); diff --git a/reactos/drivers/video/videoprt/videoprt.h b/reactos/drivers/video/videoprt/videoprt.h index ca4854d642b..6d3331ad4c6 100644 --- a/reactos/drivers/video/videoprt/videoprt.h +++ b/reactos/drivers/video/videoprt/videoprt.h @@ -36,8 +36,8 @@ #include -#define TAG_VIDEO_PORT TAG('V', 'I', 'D', 'P') -#define TAG_VIDEO_PORT_BUFFER TAG('V', 'p', 'm', '\0' ) +#define TAG_VIDEO_PORT 'PDIV' +#define TAG_VIDEO_PORT_BUFFER '\0mpV' typedef struct _VIDEO_PORT_ADDRESS_MAPPING { diff --git a/reactos/drivers/wdm/audio/backpln/portcls/private.h b/reactos/drivers/wdm/audio/backpln/portcls/private.h index 64aa0f8eb4c..0fb8f49c3a0 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/private.h +++ b/reactos/drivers/wdm/audio/backpln/portcls/private.h @@ -23,8 +23,7 @@ #include #include -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define TAG_PORTCLASS TAG('P', 'C', 'L', 'S') +#define TAG_PORTCLASS 'SLCP' #define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x)) diff --git a/reactos/hal/halppc/generic/dma.c b/reactos/hal/halppc/generic/dma.c index e2a40560b0f..a886e13ab27 100644 --- a/reactos/hal/halppc/generic/dma.c +++ b/reactos/hal/halppc/generic/dma.c @@ -114,7 +114,7 @@ static DMA_OPERATIONS HalpDmaOperations = { #define MAX_MAP_REGISTERS 64 -#define TAG_DMA TAG('D','M','A',' ') +#define TAG_DMA ' AMD' /* FUNCTIONS *****************************************************************/ diff --git a/reactos/hal/halppc/generic/pci.c b/reactos/hal/halppc/generic/pci.c index 51d5910f50f..867f54961d2 100644 --- a/reactos/hal/halppc/generic/pci.c +++ b/reactos/hal/halppc/generic/pci.c @@ -656,7 +656,7 @@ HalpQueryPciRegistryInfo(VOID) /* Allocate the return structure */ PciRegistryInfo = ExAllocatePoolWithTag(NonPagedPool, sizeof(PCI_REGISTRY_INFO_INTERNAL), - TAG('H', 'a', 'l', ' ')); + ' laH'); if (!PciRegistryInfo) return NULL; /* Fill it out */ diff --git a/reactos/hal/halx86/generic/dma.c b/reactos/hal/halx86/generic/dma.c index c40d339d7bd..63621e6497c 100644 --- a/reactos/hal/halx86/generic/dma.c +++ b/reactos/hal/halx86/generic/dma.c @@ -114,7 +114,7 @@ static DMA_OPERATIONS HalpDmaOperations = { #define MAX_MAP_REGISTERS 64 -#define TAG_DMA TAG('D','M','A',' ') +#define TAG_DMA ' AMD' /* FUNCTIONS *****************************************************************/ diff --git a/reactos/hal/halx86/generic/pci.c b/reactos/hal/halx86/generic/pci.c index c7f6e222c5c..eab127568d4 100644 --- a/reactos/hal/halx86/generic/pci.c +++ b/reactos/hal/halx86/generic/pci.c @@ -595,7 +595,7 @@ HalpAssignPCISlotResources(IN PBUS_HANDLER BusHandler, PagedPool, sizeof(CM_RESOURCE_LIST) + (ResourceCount - 1) * sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR), - TAG('H','a','l',' ')); + ' laH'); if (NULL == *AllocatedResources) return STATUS_NO_MEMORY; @@ -815,7 +815,7 @@ HalpQueryPciRegistryInfo(VOID) /* Allocate the return structure */ PciRegistryInfo = ExAllocatePoolWithTag(NonPagedPool, sizeof(PCI_REGISTRY_INFO_INTERNAL), - TAG('H', 'a', 'l', ' ')); + ' laH'); if (!PciRegistryInfo) return NULL; /* Fill it out */ diff --git a/reactos/include/ddk/stdunk.h b/reactos/include/ddk/stdunk.h index f011b045946..0de6b009239 100644 --- a/reactos/include/ddk/stdunk.h +++ b/reactos/include/ddk/stdunk.h @@ -11,8 +11,6 @@ #ifndef STDUNK_H #define STDUNK_H -#define STDUNK_TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) - #include /* =============================================================== @@ -153,7 +151,7 @@ typedef struct CUnknown STD_CREATE_BODY_WITH_TAG_(classname, unknown, outer_unknown, pool_type, tag, PUNKNOWN) #define STD_CREATE_BODY_(classname, unknown, outer_unknown, pool_type, base) \ - STD_CREATE_BODY_WITH_TAG_(classname, unknown, outer_unknown, pool_type, STDUNK_TAG('r','C','c','P'), base) + STD_CREATE_BODY_WITH_TAG_(classname, unknown, outer_unknown, pool_type, 'rCcP', base) #define STD_CREATE_BODY(classname, unknown, outer_unknown, pool_type) \ STD_CREATE_BODY_(classname, unknown, outer_unknown, pool_type, PUNKNOWN) @@ -187,7 +185,7 @@ operator new ( size_t size, POOL_TYPE pool_type) { - return KCOM_New(size, pool_type, STDUNK_TAG ('w','N','c','P')); + return KCOM_New(size, pool_type, 'wNcP'); } inline PVOID diff --git a/reactos/include/ddk/winddk.h b/reactos/include/ddk/winddk.h index 76a88971845..41a4dcc49c1 100644 --- a/reactos/include/ddk/winddk.h +++ b/reactos/include/ddk/winddk.h @@ -5585,7 +5585,7 @@ typedef VOID IN ULONG Length ); -#define PCI_DATA_TAG TAG('P', 'C', 'I', ' ') +#define PCI_DATA_TAG ' ICP' #define PCI_DATA_VERSION 1 typedef struct _PCIBUSDATA diff --git a/reactos/include/psdk/wdbgexts.h b/reactos/include/psdk/wdbgexts.h index 2b98c2de5ca..6c023dd9fcf 100644 --- a/reactos/include/psdk/wdbgexts.h +++ b/reactos/include/psdk/wdbgexts.h @@ -20,7 +20,7 @@ enum #define DBGKD_VERS_FLAG_HSS 0x0010 #define DBGKD_VERS_FLAG_PARTITIONS 0x0020 -#define KDBG_TAG TAG('K', 'D', 'B', 'G') +#define KDBG_TAG 'GBDK' typedef struct _DBGKD_GET_VERSION32 { diff --git a/reactos/include/reactos/probe.h b/reactos/include/reactos/probe.h index f4c1b6c1ad1..2f4e62ee3aa 100644 --- a/reactos/include/reactos/probe.h +++ b/reactos/include/reactos/probe.h @@ -164,7 +164,7 @@ ProbeAndCaptureUnicodeString(OUT PUNICODE_STRING Dest, /* Allocate space for the buffer */ Buffer = ExAllocatePoolWithTag(PagedPool, Dest->Length + sizeof(WCHAR), - TAG('U', 'S', 'T', 'R')); + 'RTSU'); if (Buffer == NULL) { Status = STATUS_INSUFFICIENT_RESOURCES; diff --git a/reactos/lib/drivers/ip/network/ip.c b/reactos/lib/drivers/ip/network/ip.c index b56cf9355ee..36953f16974 100644 --- a/reactos/lib/drivers/ip/network/ip.c +++ b/reactos/lib/drivers/ip/network/ip.c @@ -58,7 +58,7 @@ PIP_PACKET IPInitializePacket( /* FIXME: Is this needed? */ RtlZeroMemory(IPPacket, sizeof(IP_PACKET)); - INIT_TAG(IPPacket, TAG('I','P','K','T')); + INIT_TAG(IPPacket, 'TKPI'); IPPacket->Free = DontFreePacket; IPPacket->Type = Type; @@ -146,7 +146,7 @@ PIP_INTERFACE IPCreateInterface( return NULL; } - INIT_TAG(IF, TAG('F','A','C','E')); + INIT_TAG(IF, 'ECAF'); RtlZeroMemory(IF, sizeof(IP_INTERFACE)); @@ -371,7 +371,7 @@ NTSTATUS IPStartup(PUNICODE_STRING RegistryPath) NULL, /* Free routine */ 0, /* Flags */ sizeof(IPDATAGRAM_REASSEMBLY), /* Size of each entry */ - TAG('I','P','D','R'), /* Tag */ + 'RDPI', /* Tag */ 0); /* Depth */ ExInitializeNPagedLookasideList( @@ -380,7 +380,7 @@ NTSTATUS IPStartup(PUNICODE_STRING RegistryPath) NULL, /* Free routine */ 0, /* Flags */ sizeof(IP_FRAGMENT), /* Size of each entry */ - TAG('I','P','F','G'), /* Tag */ + 'GFPI', /* Tag */ 0); /* Depth */ ExInitializeNPagedLookasideList( @@ -389,7 +389,7 @@ NTSTATUS IPStartup(PUNICODE_STRING RegistryPath) NULL, /* Free routine */ 0, /* Flags */ sizeof(IPDATAGRAM_HOLE), /* Size of each entry */ - TAG('I','P','H','L'), /* Tag */ + 'LHPI', /* Tag */ 0); /* Depth */ /* Start routing subsystem */ diff --git a/reactos/lib/drivers/ip/network/memtrack.c b/reactos/lib/drivers/ip/network/memtrack.c index 95964cf2b17..5e8304f913b 100644 --- a/reactos/lib/drivers/ip/network/memtrack.c +++ b/reactos/lib/drivers/ip/network/memtrack.c @@ -3,7 +3,7 @@ #if DBG -#define TRACK_TAG TAG('T','r','C','K') +#define TRACK_TAG 'KCrT' static LIST_ENTRY AllocatedObjectsList; static KSPIN_LOCK AllocatedObjectsLock; diff --git a/reactos/lib/drivers/ip/network/neighbor.c b/reactos/lib/drivers/ip/network/neighbor.c index b8f07691cf5..a35c1a94eed 100644 --- a/reactos/lib/drivers/ip/network/neighbor.c +++ b/reactos/lib/drivers/ip/network/neighbor.c @@ -287,7 +287,7 @@ PNEIGHBOR_CACHE_ENTRY NBAddNeighbor( return NULL; } - INIT_TAG(NCE, TAG('N','C','E',' ')); + INIT_TAG(NCE, ' ECN'); NCE->Interface = Interface; NCE->Address = *Address; diff --git a/reactos/lib/drivers/ip/network/router.c b/reactos/lib/drivers/ip/network/router.c index 2911da9ba85..d0c217a4728 100644 --- a/reactos/lib/drivers/ip/network/router.c +++ b/reactos/lib/drivers/ip/network/router.c @@ -219,7 +219,7 @@ PFIB_ENTRY RouterAddRoute( return NULL; } - INIT_TAG(Router, TAG('R','O','U','T')); + INIT_TAG(Router, 'TUOR'); RtlCopyMemory( &FIBE->NetworkAddress, NetworkAddress, sizeof(FIBE->NetworkAddress) ); diff --git a/reactos/lib/drivers/ip/transport/tcp/event.c b/reactos/lib/drivers/ip/transport/tcp/event.c index bd67997dc14..50eb7453d30 100644 --- a/reactos/lib/drivers/ip/transport/tcp/event.c +++ b/reactos/lib/drivers/ip/transport/tcp/event.c @@ -197,10 +197,10 @@ void TCPWakeup( void *ClientData, void *token ) { #define SMALL_SIZE 128 #define LARGE_SIZE 2048 -#define SIGNATURE_LARGE TAG('L','L','L','L') -#define SIGNATURE_SMALL TAG('S','S','S','S') -#define SIGNATURE_OTHER TAG('O','O','O','O') -#define TCP_TAG TAG('T','C','P',' ') +#define SIGNATURE_LARGE 'LLLL' +#define SIGNATURE_SMALL 'SSSS' +#define SIGNATURE_OTHER 'OOOO' +#define TCP_TAG ' PCT' static NPAGED_LOOKASIDE_LIST LargeLookasideList; static NPAGED_LOOKASIDE_LIST SmallLookasideList; diff --git a/reactos/lib/drivers/ip/transport/tcp/tcp.c b/reactos/lib/drivers/ip/transport/tcp/tcp.c index 77b5da92226..17a80ab91db 100644 --- a/reactos/lib/drivers/ip/transport/tcp/tcp.c +++ b/reactos/lib/drivers/ip/transport/tcp/tcp.c @@ -509,7 +509,7 @@ NTSTATUS TCPStartup(VOID) NULL, /* Free routine */ 0, /* Flags */ sizeof(TCP_SEGMENT), /* Size of each entry */ - TAG('T','C','P','S'), /* Tag */ + 'SPCT', /* Tag */ 0); /* Depth */ StartTimer(); diff --git a/reactos/lib/fslib/vfatlib/check/vfat.h b/reactos/lib/fslib/vfatlib/check/vfat.h index 79e235737c3..1aecfba279a 100755 --- a/reactos/lib/fslib/vfatlib/check/vfat.h +++ b/reactos/lib/fslib/vfatlib/check/vfat.h @@ -361,13 +361,9 @@ typedef struct _VFATCCB UNICODE_STRING SearchPattern; } VFATCCB, *PVFATCCB; -#ifndef TAG -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#endif - -#define TAG_CCB TAG('V', 'C', 'C', 'B') -#define TAG_FCB TAG('V', 'F', 'C', 'B') -#define TAG_IRP TAG('V', 'I', 'R', 'P') +#define TAG_CCB 'BCCV' +#define TAG_FCB 'BCFV' +#define TAG_IRP 'PRIV' #define ENTRIES_PER_SECTOR (BLOCKSIZE / sizeof(FATDirEntry)) diff --git a/reactos/lib/rossym/initkm.c b/reactos/lib/rossym/initkm.c index e0904cc1c1b..a50680e11da 100644 --- a/reactos/lib/rossym/initkm.c +++ b/reactos/lib/rossym/initkm.c @@ -17,8 +17,7 @@ #define NDEBUG #include -#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24)) -#define TAG_ROSSYM TAG('R', 'S', 'Y', 'M') +#define TAG_ROSSYM 'MYSR' static PVOID RosSymAllocMemKM(ULONG_PTR Size) diff --git a/reactos/lib/rtl/bootdata.c b/reactos/lib/rtl/bootdata.c index f143b823a23..ddf53b3db9a 100644 --- a/reactos/lib/rtl/bootdata.c +++ b/reactos/lib/rtl/bootdata.c @@ -45,7 +45,7 @@ RtlpSysVolCreateSecurityDescriptor(OUT PISECURITY_DESCRIPTOR *SecurityDescriptor /* allocate and initialize the security descriptor */ AbsSD = RtlpAllocateMemory(sizeof(SECURITY_DESCRIPTOR), - TAG('S', 'e', 'S', 'd')); + 'dSeS'); if (AbsSD == NULL) { Status = STATUS_NO_MEMORY; @@ -63,7 +63,7 @@ RtlpSysVolCreateSecurityDescriptor(OUT PISECURITY_DESCRIPTOR *SecurityDescriptor DaclSize = sizeof(ACL) + sizeof(ACE) + RtlLengthSid(LocalSystemSid); Dacl = RtlpAllocateMemory(DaclSize, - TAG('S', 'e', 'A', 'c')); + 'cAeS'); if (Dacl == NULL) { Status = STATUS_NO_MEMORY; @@ -111,13 +111,13 @@ Cleanup: if (Dacl != NULL) { RtlpFreeMemory(Dacl, - TAG('S', 'e', 'A', 'c')); + 'cAeS'); } if (AbsSD != NULL) { RtlpFreeMemory(AbsSD, - TAG('S', 'e', 'S', 'd')); + 'dSeS'); } } @@ -162,7 +162,7 @@ RtlpSysVolCheckOwnerAndSecurity(IN HANDLE DirectoryHandle, /* allocate enough memory for the security descriptor */ RelSD = RtlpAllocateMemory(DescriptorSize, - TAG('S', 'e', 'S', 'd')); + 'dSeS'); if (RelSD == NULL) { Status = STATUS_NO_MEMORY; @@ -297,7 +297,7 @@ RtlpSysVolCheckOwnerAndSecurity(IN HANDLE DirectoryHandle, ASSERT(AbsSDSize > DescriptorSize); AbsSD = RtlpAllocateMemory(DescriptorSize, - TAG('S', 'e', 'S', 'd')); + 'dSeS'); if (AbsSD == NULL) { Status = STATUS_NO_MEMORY; @@ -357,7 +357,7 @@ RtlpSysVolCheckOwnerAndSecurity(IN HANDLE DirectoryHandle, /* allocate enough memory for the new self-relative descriptor */ NewRelSD = RtlpAllocateMemory(RelSDSize, - TAG('S', 'e', 'S', 'd')); + 'dSeS'); if (NewRelSD == NULL) { Status = STATUS_NO_MEMORY; @@ -392,20 +392,20 @@ Cleanup: if (RelSD != NULL) { RtlpFreeMemory(RelSD, - TAG('S', 'e', 'S', 'd')); + 'dSeS'); } if (NewRelSD != NULL) { RtlpFreeMemory(NewRelSD, - TAG('S', 'e', 'S', 'd')); + 'dSeS'); } #ifdef _WIN64 if (AbsSDAllocated) { RtlpFreeMemory(AbsSD, - TAG('S', 'e', 'S', 'd')); + 'dSeS'); } #endif @@ -660,9 +660,9 @@ RtlCreateSystemVolumeInformationFolder( ASSERT(SecurityDescriptor->Dacl != NULL); RtlpFreeMemory(SecurityDescriptor->Dacl, - TAG('S', 'e', 'A', 'c')); + 'cAeS'); RtlpFreeMemory(SecurityDescriptor, - TAG('S', 'e', 'S', 'd')); + 'dSeS'); RtlFreeSid(SystemSid); } diff --git a/reactos/lib/rtl/registry.c b/reactos/lib/rtl/registry.c index 006bfcd0281..a5e2276c2a0 100644 --- a/reactos/lib/rtl/registry.c +++ b/reactos/lib/rtl/registry.c @@ -13,7 +13,7 @@ #define NDEBUG #include -#define TAG_RTLREGISTRY TAG('R', 'q', 'r', 'v') +#define TAG_RTLREGISTRY 'vrqR' extern SIZE_T RtlpAllocDeallocQueryBufferSize; diff --git a/reactos/lib/rtl/rtlp.h b/reactos/lib/rtl/rtlp.h index 495e1d4b42d..ea0114d056a 100644 --- a/reactos/lib/rtl/rtlp.h +++ b/reactos/lib/rtl/rtlp.h @@ -165,9 +165,9 @@ DebugService2(IN PVOID Argument1, IN ULONG Service); /* Tags for the String Allocators */ -#define TAG_USTR TAG('U', 'S', 'T', 'R') -#define TAG_ASTR TAG('A', 'S', 'T', 'R') -#define TAG_OSTR TAG('O', 'S', 'T', 'R') +#define TAG_USTR 'RTSU' +#define TAG_ASTR 'RTSA' +#define TAG_OSTR 'RTSO' /* Timer Queue */ diff --git a/reactos/lib/rtl/sid.c b/reactos/lib/rtl/sid.c index 700a66b03b4..b9dbcce75ed 100644 --- a/reactos/lib/rtl/sid.c +++ b/reactos/lib/rtl/sid.c @@ -13,7 +13,7 @@ #define NDEBUG #include -#define TAG_SID TAG('p', 'S', 'i', 'd') +#define TAG_SID 'diSp' /* FUNCTIONS ***************************************************************/ diff --git a/reactos/subsystems/win32/win32k/eng/engevent.c b/reactos/subsystems/win32/win32k/eng/engevent.c index 890000e88b6..e978786bdb3 100644 --- a/reactos/subsystems/win32/win32k/eng/engevent.c +++ b/reactos/subsystems/win32/win32k/eng/engevent.c @@ -12,7 +12,7 @@ #define NDEBUG #include -#define TAG_ENG TAG('E', 'n', 'g', ' ') +#define TAG_ENG ' gnE' /* PUBLIC FUNCTIONS **********************************************************/ diff --git a/reactos/subsystems/win32/win32k/include/tags.h b/reactos/subsystems/win32/win32k/include/tags.h index eb1478b36a6..7f802e22d1a 100644 --- a/reactos/subsystems/win32/win32k/include/tags.h +++ b/reactos/subsystems/win32/win32k/include/tags.h @@ -1,102 +1,102 @@ #ifndef _WIN32K_TAGS_H #define _WIN32K_TAGS_H -#define TAG_STRING TAG('S', 'T', 'R', ' ') /* string */ -#define TAG_RTLREGISTRY TAG('R', 'q', 'r', 'v') /* RTL registry */ +#define TAG_STRING ' RTS' /* string */ +#define TAG_RTLREGISTRY 'vrqR' /* RTL registry */ /* ntuser */ -#define TAG_MOUSE TAG('M', 'O', 'U', 'S') /* mouse */ -#define TAG_KEYBOARD TAG('K', 'B', 'D', ' ') /* keyboard */ -#define TAG_ACCEL TAG('A', 'C', 'C', 'L') /* accelerator */ -#define TAG_HOOK TAG('W', 'N', 'H', 'K') /* hook */ -#define TAG_HOTKEY TAG('H', 'O', 'T', 'K') /* hotkey */ -#define TAG_MENUITEM TAG('M', 'E', 'N', 'I') /* menu item */ -#define TAG_MSG TAG('M', 'E', 'S', 'G') /* message */ -#define TAG_MSGQ TAG('M', 'S', 'G', 'Q') /* message queue */ -#define TAG_USRMSG TAG('U', 'M', 'S', 'G') /* user message */ -#define TAG_WNDPROP TAG('W', 'P', 'R', 'P') /* window property */ -#define TAG_WNAM TAG('W', 'N', 'A', 'M') /* window name */ -#define TAG_WINLIST TAG('W', 'N', 'L', 'S') /* window handle list */ -#define TAG_WININTLIST TAG('W', 'N', 'I', 'P') /* window internal pos */ -#define TAG_WINPROCLST TAG('W', 'N', 'P', 'L') /* window proc list */ -#define TAG_SBARINFO TAG('S', 'B', 'I', 'N') /* scrollbar info */ -#define TAG_TIMER TAG('T', 'I', 'M', 'R') /* timer entry */ -#define TAG_TIMERTD TAG('T', 'I', 'M', 'T') /* timer thread dereference list */ -#define TAG_TIMERBMP TAG('T', 'I', 'M', 'B') /* timers bitmap */ -#define TAG_CALLBACK TAG('C', 'B', 'C', 'K') /* callback memory */ -#define TAG_WINSTA TAG('W', 'S', 'T', 'A') /* window station */ -#define TAG_PDCE TAG('U', 's', 'd', 'c') /* dce */ -#define TAG_INPUT TAG('U', 's', 's', 'y') /* Input */ +#define TAG_MOUSE 'SUOM' /* mouse */ +#define TAG_KEYBOARD ' DBK' /* keyboard */ +#define TAG_ACCEL 'LCCA' /* accelerator */ +#define TAG_HOOK 'KHNW' /* hook */ +#define TAG_HOTKEY 'KTOH' /* hotkey */ +#define TAG_MENUITEM 'INEM' /* menu item */ +#define TAG_MSG 'GSEM' /* message */ +#define TAG_MSGQ 'QGSM' /* message queue */ +#define TAG_USRMSG 'GSMU' /* user message */ +#define TAG_WNDPROP 'PRPW' /* window property */ +#define TAG_WNAM 'MANW' /* window name */ +#define TAG_WINLIST 'SLNW' /* window handle list */ +#define TAG_WININTLIST 'PINW' /* window internal pos */ +#define TAG_WINPROCLST 'LPNW' /* window proc list */ +#define TAG_SBARINFO 'NIBS' /* scrollbar info */ +#define TAG_TIMER 'RMIT' /* timer entry */ +#define TAG_TIMERTD 'TMIT' /* timer thread dereference list */ +#define TAG_TIMERBMP 'BMIT' /* timers bitmap */ +#define TAG_CALLBACK 'KCBC' /* callback memory */ +#define TAG_WINSTA 'ATSW' /* window station */ +#define TAG_PDCE 'cdsU' /* dce */ +#define TAG_INPUT 'yssU' /* Input */ /* gdi objects from the handle table */ -#define TAG_DC TAG('G', 'l', 'a', '1') /* dc */ -#define TAG_REGION TAG('G', 'l', 'a', '4') /* region */ -#define TAG_SURFACE TAG('G', 'l', 'a', '5') /* bitmap */ -#define TAG_CLIENTOBJ TAG('G', 'h', '0', '6') -#define TAG_PATH TAG('G', 'h', '0', '7') -#define TAG_PALETTE TAG('G', 'l', 'a', '8') -#define TAG_ICMLCS TAG('G', 'h', '0', '9') -#define TAG_LFONT TAG('G', 'l', 'a', ':') -#define TAG_RFONT TAG('G', 'h', '0', ';') /* correct? */ -#define TAG_PFE TAG('G', 'h', '0', '<') -#define TAG_PFT TAG('G', 'h', '0', '=') /* correct? */ -#define TAG_ICMCXF TAG('G', 'h', '0', '>') /* correct? */ -#define TAG_SPRITE TAG('G', 'h', '0', '?') /* correct? */ -#define TAG_BRUSH TAG('G', 'l', 'a', '@') -#define TAG_UMPD TAG('G', 'h', '0', 'A') /* correct? */ -#define TAG_SPACE TAG('G', 'h', '0', 'C') /* correct? */ -#define TAG_META TAG('G', 'h', '0', 'E') /* correct? */ -#define TAG_EFSTATE TAG('G', 'h', '0', 'F') /* correct? */ -#define TAG_BMFD TAG('G', 'h', '0', 'G') /* correct? */ -#define TAG_VTFD TAG('G', 'h', '0', 'H') /* correct? */ -#define TAG_TTFD TAG('G', 'h', '0', 'I') /* correct? */ -#define TAG_RC TAG('G', 'h', '0', 'J') /* correct? */ -#define TAG_TEMP TAG('G', 'h', '0', 'K') /* correct? */ -#define TAG_DRVOBJ TAG('G', 'h', '0', 'L') /* correct? */ -#define TAG_DCIOBJ TAG('G', 'h', '0', 'M') /* correct? */ -#define TAG_SPOOL TAG('G', 'h', '0', 'N') /* correct? */ +#define TAG_DC '1alG' /* dc */ +#define TAG_REGION '4alG' /* region */ +#define TAG_SURFACE '5alG' /* bitmap */ +#define TAG_CLIENTOBJ '60hG' +#define TAG_PATH '70hG' +#define TAG_PALETTE '8alG' +#define TAG_ICMLCS '90hG' +#define TAG_LFONT ':alG' +#define TAG_RFONT ';0gG' /* correct? */ +#define TAG_PFE '<0hG' +#define TAG_PFT '=0hG' /* correct? */ +#define TAG_ICMCXF '>0hG' /* correct? */ +#define TAG_SPRITE '?0hG' /* correct? */ +#define TAG_BRUSH '@alG' +#define TAG_UMPD 'A0hG' /* correct? */ +#define TAG_SPACE 'c0hG' /* correct? */ +#define TAG_META 'E0hG' /* correct? */ +#define TAG_EFSTATE 'F0hG' /* correct? */ +#define TAG_BMFD 'G0hG' /* correct? */ +#define TAG_VTFD 'H0hG' /* correct? */ +#define TAG_TTFD 'I0hG' /* correct? */ +#define TAG_RC 'J0hG' /* correct? */ +#define TAG_TEMP 'K0hG' /* correct? */ +#define TAG_DRVOBJ 'L0hG' /* correct? */ +#define TAG_DCIOBJ 'M0hG' /* correct? */ +#define TAG_SPOOL 'N0hG' /* correct? */ /* other gdi objects */ -#define TAG_BEZIER TAG('B', 'E', 'Z', 'R') /* bezier */ -#define TAG_BITMAP TAG('B', 'T', 'M', 'P') /* bitmap */ -#define TAG_PATBLT TAG('P', 'B', 'L', 'T') /* patblt */ -#define TAG_CLIP TAG('C', 'L', 'I', 'P') /* clipping */ -#define TAG_COORD TAG('C', 'O', 'R', 'D') /* coords */ -#define TAG_GDIDEV TAG('G', 'd', 'e', 'v') /* gdi dev support*/ -#define TAG_GDIPDEV TAG('G', 'D', 'e', 'v') /* gdi PDev */ -#define TAG_GDIHNDTBLE TAG('G', 'D', 'I', 'H') /* gdi handle table */ -#define TAG_GDIICM TAG('G', 'i', 'c', 'm') /* gdi Icm */ -#define TAG_DIB TAG('D', 'I', 'B', ' ') /* dib */ -#define TAG_COLORMAP TAG('C', 'O', 'L', 'M') /* color map */ -#define TAG_SHAPE TAG('S', 'H', 'A', 'P') /* shape */ -#define TAG_PALETTEMAP TAG('P', 'A', 'L', 'M') /* palette mapping */ -#define TAG_PRINT TAG('P', 'R', 'N', 'T') /* print */ -#define TAG_GDITEXT TAG('T', 'X', 'T', 'O') /* text */ -#define TAG_PENSTYLES TAG('G', 's', 't', 'y') /* pen styles */ +#define TAG_BEZIER 'RZEB' /* bezier */ +#define TAG_BITMAP 'PMTB' /* bitmap */ +#define TAG_PATBLT 'TLBP' /* patblt */ +#define TAG_CLIP 'PILC' /* clipping */ +#define TAG_COORD 'DROC' /* coords */ +#define TAG_GDIDEV 'vedG' /* gdi dev support*/ +#define TAG_GDIPDEV 'veDG' /* gdi PDev */ +#define TAG_GDIHNDTBLE 'HIDG' /* gdi handle table */ +#define TAG_GDIICM 'mciG' /* gdi Icm */ +#define TAG_DIB ' BID' /* dib */ +#define TAG_COLORMAP 'MLOC' /* color map */ +#define TAG_SHAPE 'PAHS' /* shape */ +#define TAG_PALETTEMAP 'MLAP' /* palette mapping */ +#define TAG_PRINT 'TNRP' /* print */ +#define TAG_GDITEXT 'OTXT' /* text */ +#define TAG_PENSTYLES 'ytsG' /* pen styles */ /* Eng objects */ -#define TAG_CLIPOBJ TAG('C', 'L', 'P', 'O') /* clip object */ -#define TAG_DRIVEROBJ TAG('D', 'R', 'V', 'O') /* driver object */ -#define TAG_DFSM TAG('D', 'f', 's', 'm') /* Eng event allocation */ -#define TAG_EPATH TAG('G', 'p', 'a', 't') /* path object */ -#define TAG_FONT TAG('F', 'N', 'T', 'E') /* font entry */ -#define TAG_FONTOBJ TAG('G', 'f', 'n', 't') /* font object */ -#define TAG_WNDOBJ TAG('W', 'N', 'D', 'O') /* window object */ -#define TAG_XLATEOBJ TAG('X', 'L', 'A', 'O') /* xlate object */ -#define TAG_GSEM TAG('G', 's', 'e', 'm') /* Gdi Semaphore */ +#define TAG_CLIPOBJ 'OPLC' /* clip object */ +#define TAG_DRIVEROBJ 'OVRD' /* driver object */ +#define TAG_DFSM 'msfD' /* Eng event allocation */ +#define TAG_EPATH 'tapG' /* path object */ +#define TAG_FONT 'ETNF' /* font entry */ +#define TAG_FONTOBJ 'tnfG' /* font object */ +#define TAG_WNDOBJ 'ODNW' /* window object */ +#define TAG_XLATEOBJ 'OALX' /* xlate object */ +#define TAG_GSEM 'mesG' /* Gdi Semaphore */ /* misc */ -#define TAG_DRIVER TAG('G', 'D', 'R', 'V') /* video drivers */ -#define TAG_FNTFILE TAG('F', 'N', 'T', 'F') /* font file */ -#define TAG_SSECTPOOL TAG('S', 'S', 'C', 'P') /* shared section pool */ -#define TAG_PFF TAG('G', 'p', 'f', 'f') /* physical font file */ +#define TAG_DRIVER 'VRDG' /* video drivers */ +#define TAG_FNTFILE 'FTNF' /* font file */ +#define TAG_SSECTPOOL 'PCSS' /* shared section pool */ +#define TAG_PFF 'ffpG' /* physical font file */ /* Dx internal tags rember I do not known if it right namees */ -#define TAG_DXPVMLIST TAG('D', 'X', 'P', 'L') /* pmvlist for the driver */ -#define TAG_DXFOURCC TAG('D', 'X', 'F', 'O') /* pdwFourCC for the driver */ -#define TAG_DDRAW TAG('D', 'h', ' ', '1') -#define TAG_DDSURF TAG('D', 'h', ' ', '2') -#define TAG_EDDGBL TAG('E', 'D', 'D', 'G') /* ? edd_directdraw_global ??*/ +#define TAG_DXPVMLIST 'LPXD' /* pmvlist for the driver */ +#define TAG_DXFOURCC 'OFXD' /* pdwFourCC for the driver */ +#define TAG_DDRAW '1 hD' +#define TAG_DDSURF '2 hD' +#define TAG_EDDGBL 'GDDE' /* ? edd_directdraw_global ??*/ #endif /* _WIN32K_TAGS_H */ diff --git a/reactos/subsystems/win32/win32k/include/text.h b/reactos/subsystems/win32/win32k/include/text.h index 80a3887f8ce..6ee10f39e6a 100644 --- a/reactos/subsystems/win32/win32k/include/text.h +++ b/reactos/subsystems/win32/win32k/include/text.h @@ -3,7 +3,7 @@ #include -#define TAG_FINF TAG('F', 'I', 'N', 'F') +#define TAG_FINF 'FNIF' // // EXSTROBJ flags. // diff --git a/reactos/subsystems/win32/win32k/main/dllmain.c b/reactos/subsystems/win32/win32k/main/dllmain.c index 944b4f55677..5f243fe1b5a 100644 --- a/reactos/subsystems/win32/win32k/main/dllmain.c +++ b/reactos/subsystems/win32/win32k/main/dllmain.c @@ -70,7 +70,7 @@ Win32kProcessCallback(struct _EPROCESS *Process, /* FIXME - lock the process */ Win32Process = ExAllocatePoolWithTag(NonPagedPool, sizeof(PROCESSINFO), - TAG('W', '3', '2', 'p')); + 'p23W'); if (Win32Process == NULL) RETURN( STATUS_NO_MEMORY); @@ -188,7 +188,7 @@ Win32kThreadCallback(struct _ETHREAD *Thread, /* FIXME - lock the process */ Win32Thread = ExAllocatePoolWithTag(NonPagedPool, sizeof(THREADINFO), - TAG('W', '3', '2', 't')); + 't23W'); if (Win32Thread == NULL) RETURN( STATUS_NO_MEMORY); diff --git a/reactos/subsystems/win32/win32k/ntuser/sysparams.c b/reactos/subsystems/win32/win32k/ntuser/sysparams.c index e955aa6ae0c..d48fd602748 100644 --- a/reactos/subsystems/win32/win32k/ntuser/sysparams.c +++ b/reactos/subsystems/win32/win32k/ntuser/sysparams.c @@ -18,7 +18,7 @@ #include -#define KeRosDumpStackFrames(Frames, Count) KdSystemDebugControl(TAG('R', 'o', 's', 'D'), (PVOID)Frames, Count, NULL, 0, NULL, KernelMode) +#define KeRosDumpStackFrames(Frames, Count) KdSystemDebugControl('DsoR', (PVOID)Frames, Count, NULL, 0, NULL, KernelMode) HBITMAP NTAPI UserLoadImage(PCWSTR); BOOL NTAPI W32kDosPathNameToNtPathName(PCWSTR, PUNICODE_STRING); diff --git a/reactos/subsystems/win32/win32k/objects/font.c b/reactos/subsystems/win32/win32k/objects/font.c index 4ae1fa88a45..bac6d9f264a 100644 --- a/reactos/subsystems/win32/win32k/objects/font.c +++ b/reactos/subsystems/win32/win32k/objects/font.c @@ -656,7 +656,7 @@ NtGdiGetFontResourceInfoInternalW( SafeFileNames.MaximumLength = SafeFileNames.Length = cbStringSize - sizeof(WCHAR); SafeFileNames.Buffer = ExAllocatePoolWithTag(PagedPool, cbStringSize, - TAG('R','T','S','U')); + 'RTSU'); if (!SafeFileNames.Buffer) { SetLastWin32Error(ERROR_NOT_ENOUGH_MEMORY); @@ -682,7 +682,7 @@ NtGdiGetFontResourceInfoInternalW( { SetLastNtError(Status); /* Free the string buffer for the safe filename */ - ExFreePoolWithTag(SafeFileNames.Buffer,TAG('R','T','S','U')); + ExFreePoolWithTag(SafeFileNames.Buffer,'RTSU'); return FALSE; } @@ -713,7 +713,7 @@ NtGdiGetFontResourceInfoInternalW( } /* Free the string for the safe filenames */ - ExFreePoolWithTag(SafeFileNames.Buffer,TAG('R','T','S','U')); + ExFreePoolWithTag(SafeFileNames.Buffer,'RTSU'); return bRet; } diff --git a/reactos/subsystems/win32/win32k/objects/gdidbg.c b/reactos/subsystems/win32/win32k/objects/gdidbg.c index a67189d3e58..a9991ad3610 100644 --- a/reactos/subsystems/win32/win32k/objects/gdidbg.c +++ b/reactos/subsystems/win32/win32k/objects/gdidbg.c @@ -1,6 +1,6 @@ #ifdef GDI_DEBUG -#define KeRosDumpStackFrames(Frames, Count) KdSystemDebugControl(TAG('R', 'o', 's', 'D'), (PVOID)Frames, Count, NULL, 0, NULL, KernelMode) +#define KeRosDumpStackFrames(Frames, Count) KdSystemDebugControl('DsoR', (PVOID)Frames, Count, NULL, 0, NULL, KernelMode) NTSYSAPI ULONG APIENTRY RtlWalkFrameChain(OUT PVOID *Callers, IN ULONG Count, IN ULONG Flags); static int leak_reported = 0; -- 2.17.1