mirror of
https://github.com/reactos/reactos.git
synced 2025-04-06 05:34:22 +00:00
[WIN32SS]
Properly declare with FORCEINLINE Properly declare with static svn path=/trunk/; revision=63152
This commit is contained in:
parent
9c0ff4b952
commit
da4a5b626a
15 changed files with 38 additions and 38 deletions
|
@ -7,8 +7,8 @@
|
|||
|
||||
#include "bmfd.h"
|
||||
|
||||
ULONG
|
||||
FORCEINLINE
|
||||
ULONG
|
||||
_ReadPixel(
|
||||
CHAR* pjBits,
|
||||
ULONG x,
|
||||
|
@ -21,8 +21,8 @@ _ReadPixel(
|
|||
}
|
||||
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
_WritePixel(
|
||||
CHAR* pjBits,
|
||||
ULONG x,
|
||||
|
|
|
@ -360,8 +360,8 @@ EngpCreatePDEV(
|
|||
return ppdev;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
SwitchPointer(
|
||||
_Inout_ PVOID pvPointer1,
|
||||
_Inout_ PVOID pvPointer2)
|
||||
|
|
|
@ -126,8 +126,8 @@ SURFACE_AllocSurface(
|
|||
_In_opt_ ULONG cjWidth,
|
||||
_In_opt_ PVOID pvBits);
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
SURFACE_vSetPalette(
|
||||
_Inout_ PSURFACE psurf,
|
||||
_In_ PPALETTE ppal)
|
||||
|
|
|
@ -46,8 +46,8 @@ typedef struct _EXLATEOBJ
|
|||
extern EXLATEOBJ gexloTrivial;
|
||||
|
||||
_Notnull_
|
||||
PFN_XLATE
|
||||
FORCEINLINE
|
||||
PFN_XLATE
|
||||
XLATEOBJ_pfnXlate(
|
||||
_In_ XLATEOBJ *pxlo)
|
||||
{
|
||||
|
|
|
@ -142,8 +142,8 @@ EBRUSHOBJ_psoPattern(EBRUSHOBJ *pebo);
|
|||
#define BRUSHOBJ_psoPattern(pbo) \
|
||||
EBRUSHOBJ_psoPattern(CONTAINING_RECORD(pbo, EBRUSHOBJ, BrushObject))
|
||||
|
||||
ULONG
|
||||
FORCEINLINE
|
||||
ULONG
|
||||
EBRUSHOBJ_iSetSolidColor(EBRUSHOBJ *pebo, ULONG iSolidColor)
|
||||
{
|
||||
ULONG iOldColor = pebo->BrushObject.iSolidColor;
|
||||
|
|
|
@ -57,8 +57,8 @@ VOID
|
|||
FASTCALL
|
||||
DC_vUpdateDeviceToWorld(PDC pdc);
|
||||
|
||||
PSIZEL
|
||||
FORCEINLINE
|
||||
PSIZEL
|
||||
DC_pszlViewportExt(PDC pdc)
|
||||
{
|
||||
PDC_ATTR pdcattr = pdc->pdcattr;
|
||||
|
@ -74,15 +74,15 @@ DC_pszlViewportExt(PDC pdc)
|
|||
return &pdcattr->szlViewportExt;
|
||||
}
|
||||
|
||||
PMATRIX
|
||||
FORCEINLINE
|
||||
PMATRIX
|
||||
DC_pmxWorldToPage(PDC pdc)
|
||||
{
|
||||
return &pdc->pdcattr->mxWorldToPage;
|
||||
}
|
||||
|
||||
PMATRIX
|
||||
FORCEINLINE
|
||||
PMATRIX
|
||||
DC_pmxWorldToDevice(PDC pdc)
|
||||
{
|
||||
/* Check if world or page xform was changed */
|
||||
|
@ -95,8 +95,8 @@ DC_pmxWorldToDevice(PDC pdc)
|
|||
return &pdc->pdcattr->mxWorldToDevice;
|
||||
}
|
||||
|
||||
PMATRIX
|
||||
FORCEINLINE
|
||||
PMATRIX
|
||||
DC_pmxDeviceToWorld(PDC pdc)
|
||||
{
|
||||
/* Check if the device-to-world xform is invalid */
|
||||
|
@ -109,8 +109,8 @@ DC_pmxDeviceToWorld(PDC pdc)
|
|||
return &pdc->pdcattr->mxDeviceToWorld;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
DC_vXformDeviceToWorld(
|
||||
IN PDC pdc,
|
||||
IN ULONG cNumPoints,
|
||||
|
@ -125,8 +125,8 @@ DC_vXformDeviceToWorld(
|
|||
XFORMOBJ_bApplyXform(&xo, XF_LTOL, cNumPoints, pptlDest, pptlSource);
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
DC_vXformWorldToDevice(
|
||||
IN PDC pdc,
|
||||
IN ULONG cNumPoints,
|
||||
|
|
|
@ -247,8 +247,8 @@ DC_UnlockDc(PDC pdc)
|
|||
GDIOBJ_vUnlockObject(&pdc->BaseObject);
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
DC_vSelectSurface(PDC pdc, PSURFACE psurfNew)
|
||||
{
|
||||
PSURFACE psurfOld = pdc->dclevel.pSurface;
|
||||
|
@ -262,8 +262,8 @@ DC_vSelectSurface(PDC pdc, PSURFACE psurfNew)
|
|||
pdc->dclevel.pSurface = psurfNew;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
DC_vSelectFillBrush(PDC pdc, PBRUSH pbrFill)
|
||||
{
|
||||
PBRUSH pbrFillOld = pdc->dclevel.pbrFill;
|
||||
|
@ -274,8 +274,8 @@ DC_vSelectFillBrush(PDC pdc, PBRUSH pbrFill)
|
|||
pdc->dclevel.pbrFill = pbrFill;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
DC_vSelectLineBrush(PDC pdc, PBRUSH pbrLine)
|
||||
{
|
||||
PBRUSH pbrLineOld = pdc->dclevel.pbrLine;
|
||||
|
@ -286,8 +286,8 @@ DC_vSelectLineBrush(PDC pdc, PBRUSH pbrLine)
|
|||
pdc->dclevel.pbrLine = pbrLine;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
DC_vSelectPalette(PDC pdc, PPALETTE ppal)
|
||||
{
|
||||
PPALETTE ppalOld = pdc->dclevel.ppal;
|
||||
|
|
|
@ -3162,8 +3162,8 @@ NtGdiGetFontFamilyInfo(HDC Dc,
|
|||
return Count;
|
||||
}
|
||||
|
||||
LONG
|
||||
FORCEINLINE
|
||||
LONG
|
||||
ScaleLong(LONG lValue, PFLOATOBJ pef)
|
||||
{
|
||||
FLOATOBJ efTemp;
|
||||
|
|
|
@ -121,8 +121,8 @@ BOOL
|
|||
NTAPI
|
||||
PALETTE_Cleanup(PVOID ObjectBody);
|
||||
|
||||
ULONG
|
||||
FORCEINLINE
|
||||
ULONG
|
||||
CalculateShift(ULONG ulMask1, ULONG ulMask2)
|
||||
{
|
||||
ULONG ulShift1, ulShift2;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
RECTL_vSetRect(RECTL *prcl, LONG left, LONG top, LONG right, LONG bottom)
|
||||
{
|
||||
prcl->left = left;
|
||||
|
@ -10,8 +10,8 @@ RECTL_vSetRect(RECTL *prcl, LONG left, LONG top, LONG right, LONG bottom)
|
|||
prcl->bottom = bottom;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
RECTL_vSetEmptyRect(RECTL *prcl)
|
||||
{
|
||||
prcl->left = 0;
|
||||
|
@ -20,8 +20,8 @@ RECTL_vSetEmptyRect(RECTL *prcl)
|
|||
prcl->bottom = 0;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
RECTL_vOffsetRect(RECTL *prcl, INT cx, INT cy)
|
||||
{
|
||||
prcl->left += cx;
|
||||
|
@ -30,23 +30,23 @@ RECTL_vOffsetRect(RECTL *prcl, INT cx, INT cy)
|
|||
prcl->bottom += cy;
|
||||
}
|
||||
|
||||
BOOL
|
||||
FORCEINLINE
|
||||
BOOL
|
||||
RECTL_bIsEmptyRect(const RECTL *prcl)
|
||||
{
|
||||
return (prcl->left >= prcl->right || prcl->top >= prcl->bottom);
|
||||
}
|
||||
|
||||
BOOL
|
||||
FORCEINLINE
|
||||
BOOL
|
||||
RECTL_bPointInRect(const RECTL *prcl, INT x, INT y)
|
||||
{
|
||||
return (x >= prcl->left && x < prcl->right &&
|
||||
y >= prcl->top && y < prcl->bottom);
|
||||
}
|
||||
|
||||
BOOL
|
||||
FORCEINLINE
|
||||
BOOL
|
||||
RECTL_bIsWellOrdered(const RECTL *prcl)
|
||||
{
|
||||
return ((prcl->left <= prcl->right) &&
|
||||
|
|
|
@ -80,8 +80,8 @@ typedef struct _LFONT
|
|||
#define LFONT_ShareUnlockFont(plfnt) GDIOBJ_vDereferenceObject((POBJ)plfnt)
|
||||
#define LFONT_UnlockFont(plfnt) GDIOBJ_vUnlockObject((POBJ)plfnt)
|
||||
|
||||
PTEXTOBJ
|
||||
FORCEINLINE
|
||||
PTEXTOBJ
|
||||
TEXTOBJ_LockText(HFONT hfont)
|
||||
{
|
||||
PLFONT plfnt = LFONT_ShareLockFont(hfont);
|
||||
|
@ -93,8 +93,8 @@ TEXTOBJ_LockText(HFONT hfont)
|
|||
return plfnt;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
TEXTOBJ_UnlockText(PLFONT plfnt)
|
||||
{
|
||||
ExReleasePushLockExclusive(&plfnt->lock);
|
||||
|
|
|
@ -17,7 +17,7 @@ DBG_DEFAULT_CHANNEL(UserClipbrd);
|
|||
#define IS_DATA_DELAYED(ce) ((ce)->hData == DATA_DELAYED)
|
||||
#define IS_DATA_SYNTHESIZED(ce) ((ce)->hData == DATA_SYNTH_USER || (ce)->hData == DATA_SYNTH_KRNL)
|
||||
|
||||
PWINSTATION_OBJECT static FASTCALL
|
||||
static PWINSTATION_OBJECT FASTCALL
|
||||
IntGetWinStaForCbAccess(VOID)
|
||||
{
|
||||
HWINSTA hWinSta;
|
||||
|
@ -37,7 +37,7 @@ IntGetWinStaForCbAccess(VOID)
|
|||
}
|
||||
|
||||
/* If format exists, returns a non zero value (pointing to formated object) */
|
||||
PCLIP static FASTCALL
|
||||
static PCLIP FASTCALL
|
||||
IntIsFormatAvailable(PWINSTATION_OBJECT pWinStaObj, UINT fmt)
|
||||
{
|
||||
unsigned i = 0;
|
||||
|
@ -51,7 +51,7 @@ IntIsFormatAvailable(PWINSTATION_OBJECT pWinStaObj, UINT fmt)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
VOID static FASTCALL
|
||||
static VOID FASTCALL
|
||||
IntFreeElementData(PCLIP pElement)
|
||||
{
|
||||
if (!IS_DATA_DELAYED(pElement) &&
|
||||
|
@ -69,7 +69,7 @@ IntFreeElementData(PCLIP pElement)
|
|||
}
|
||||
|
||||
/* Adds a new format and data to the clipboard */
|
||||
PCLIP static NTAPI
|
||||
static PCLIP NTAPI
|
||||
IntAddFormatedData(PWINSTATION_OBJECT pWinStaObj, UINT fmt, HANDLE hData, BOOLEAN fGlobalHandle, BOOL bEnd)
|
||||
{
|
||||
PCLIP pElement = NULL;
|
||||
|
@ -121,7 +121,7 @@ IntAddFormatedData(PWINSTATION_OBJECT pWinStaObj, UINT fmt, HANDLE hData, BOOLEA
|
|||
return pElement;
|
||||
}
|
||||
|
||||
BOOL static FASTCALL
|
||||
static BOOL FASTCALL
|
||||
IntIsClipboardOpenByMe(PWINSTATION_OBJECT pWinSta)
|
||||
{
|
||||
/* Check if current thread has opened the clipboard */
|
||||
|
@ -134,7 +134,7 @@ IntIsClipboardOpenByMe(PWINSTATION_OBJECT pWinSta)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
VOID static NTAPI
|
||||
static VOID NTAPI
|
||||
IntSynthesizeDib(
|
||||
PWINSTATION_OBJECT pWinStaObj,
|
||||
HBITMAP hbm)
|
||||
|
@ -218,7 +218,7 @@ cleanup:
|
|||
UserReleaseDC(NULL, hdc, FALSE);
|
||||
}
|
||||
|
||||
VOID static WINAPI
|
||||
static VOID WINAPI
|
||||
IntSynthesizeBitmap(PWINSTATION_OBJECT pWinStaObj, PCLIP pBmEl)
|
||||
{
|
||||
HDC hdc = NULL;
|
||||
|
@ -279,7 +279,7 @@ cleanup:
|
|||
DIB_FreeConvertedBitmapInfo(pConvertedBmi, pBmi, -1);
|
||||
}
|
||||
|
||||
VOID static NTAPI
|
||||
static VOID NTAPI
|
||||
IntAddSynthesizedFormats(PWINSTATION_OBJECT pWinStaObj)
|
||||
{
|
||||
PCLIP pTextEl, pUniTextEl, pOemTextEl, pLocaleEl, pBmEl, pDibEl;
|
||||
|
|
|
@ -152,7 +152,7 @@ RegisterClipboardFormatW(LPCWSTR lpszFormat)
|
|||
return ret;
|
||||
}
|
||||
|
||||
PVOID static WINAPI
|
||||
static PVOID WINAPI
|
||||
IntSynthesizeMultiByte(PVOID pwStr, DWORD cbStr, BOOL bOem)
|
||||
{
|
||||
HANDLE hGlobal;
|
||||
|
@ -173,7 +173,7 @@ IntSynthesizeMultiByte(PVOID pwStr, DWORD cbStr, BOOL bOem)
|
|||
return pGlobal;
|
||||
}
|
||||
|
||||
PVOID static WINAPI
|
||||
static PVOID WINAPI
|
||||
IntSynthesizeWideChar(PVOID pwStr, DWORD cbStr, BOOL bOem)
|
||||
{
|
||||
HANDLE hGlobal;
|
||||
|
|
|
@ -130,7 +130,7 @@ static SIZE MenuCharSize;
|
|||
*
|
||||
* Validate the given menu handle and returns the menu structure pointer.
|
||||
*/
|
||||
PMENU FORCEINLINE MENU_GetMenu(HMENU hMenu)
|
||||
FORCEINLINE PMENU MENU_GetMenu(HMENU hMenu)
|
||||
{
|
||||
return ValidateHandle(hMenu, TYPE_MENU);
|
||||
}
|
||||
|
|
|
@ -120,8 +120,8 @@ CloseWindow(HWND hWnd)
|
|||
return HandleToUlong(hWnd);
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
RtlInitLargeString(
|
||||
OUT PLARGE_STRING plstr,
|
||||
LPCVOID psz,
|
||||
|
|
Loading…
Reference in a new issue