- Move from using include guards to pragma once.

- Whilst this is non-standard and potentially makes the code less portable, it's supported by both gcc and msvc and should bringg increased compilation speed due to its optimized behaviour (doesn't need to invoke the preprocessor)
- Patch by Amine Khaldi [amine.khaldi@reactos.org]

svn path=/trunk/; revision=45685
This commit is contained in:
Ged Murphy 2010-02-26 11:43:19 +00:00
parent e9e9e2bd0e
commit c5b25b8e9b
656 changed files with 725 additions and 2796 deletions

View file

@ -1,5 +1,4 @@
#ifndef _CACLS_RESOURCE_H
#define _CACLS_RESOURCE_H
#pragma once
#define IDS_HELP 101
#define IDS_ABBR_CI 102
@ -40,5 +39,3 @@
#define IDS_READ_CONTROL 137
#define IDS_DELETE 138
#define IDS_STANDARD_RIGHTS_ALL 139
#endif /* _CACLS_RESOURCE_H */

View file

@ -1,5 +1,4 @@
#ifndef __CALC_H__
#define __CALC_H__
#pragma once
#include <windows.h>
#include <tchar.h>
@ -236,5 +235,3 @@ INT_PTR CALLBACK AboutDlgProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp);
void ConvExecute(HWND hWnd);
void ConvAdjust(HWND hWnd, int n_cat);
void ConvInit(HWND hWnd);
#endif

View file

@ -1,5 +1,4 @@
#ifndef __CHARMAP_PRECOMP_H
#define __CHARMAP_PRECOMP_H
#pragma once
#include <stdio.h>
#include <stdlib.h>
@ -53,5 +52,3 @@ VOID ShowAboutDlg(HWND hWndParent);
BOOL RegisterMapClasses(HINSTANCE hInstance);
VOID UnregisterMapClasses(HINSTANCE hInstance);
#endif /* __CHARMAP_PRECOMP_H */

View file

@ -1,20 +1,5 @@
#ifndef RESOURCE_H__ /* resource.h */
#define RESOURCE_H__
#pragma once
#define IDS_USAGE 100
#define IDS_CONTINUE 101
#define IDS_FILE_ACCESS 102
#endif /* EOF of resource.h */

View file

@ -1,5 +1,4 @@
#ifndef RESOURCE_H__
#define RESOURCE_H__
#pragma once
/* dialog constants */
#define IDD_MAIN_DIALOG 100
@ -142,6 +141,3 @@
/* icon resource constants */
#define IDI_APPICON 20000
#endif

View file

@ -1,5 +1,4 @@
#ifndef _DISPLAY_H
#define _DISPLAY_H
#pragma once
/* Messages for the display class */
#define FVM_SETTYPEFACE WM_USER
@ -14,5 +13,3 @@ extern const WCHAR g_szFontDisplayClassName[];
/* Public function */
BOOL Display_InitClass(HINSTANCE hInstance);
#endif // _DISPLAY_H

View file

@ -1,5 +1,4 @@
#ifndef SOLITAIRE_INCLUDED
#define SOLITAIRE_INCLUDED
#pragma once
extern CardWindow SolWnd;
extern TCHAR szAppName[];
@ -54,5 +53,3 @@ void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int iNumClicked);
void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked);
void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved);
#endif

View file

@ -1,5 +1,4 @@
#ifndef SOLITAIRE_INCLUDED
#define SOLITAIRE_INCLUDED
#pragma once
#define DIFFICULTY_ONE_COLOR 1
#define DIFFICULTY_TWO_COLORS 2
@ -38,5 +37,3 @@ void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int iNumClicked);
void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked);
void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved);
#endif

View file

@ -1,5 +1,4 @@
#ifndef __PRECOMP_H
#define __PRECOMP_H
#pragma once
#include <windows.h>
#include <commctrl.h>
@ -34,5 +33,3 @@ LoadAndFormatString(IN HINSTANCE hInstance,
extern HINSTANCE hAppInstance;
extern HANDLE hAppHeap;
#endif /* __PRECOMP_H */

View file

@ -1,5 +1,4 @@
#ifndef __RESOURCE_H
#define __RESOURCE_H
#pragma once
#define IDS_APPTITLE 101
#define IDS_CONSOLETITLE 102
@ -10,5 +9,3 @@
#define ID_FILE_EXIT 1001
#define ID_HELP_ABOUT 9001
#endif /* __RESOURCE_H */

View file

@ -1,5 +1,4 @@
#ifndef __RESOURCE_H_
#define __RESOURCE_H_
#pragma once
/* Icons */
#define IDI_MAIN 10
@ -51,5 +50,3 @@
#define IDC_SEEKBACK 1504
#define IDC_SEEKFORW 1505
#define IDC_FORWARD 1506
#endif /* __RESOURCE_H_ */

View file

@ -1,5 +1,4 @@
#ifndef __DEVMGMT_PRECOMP_H
#define __DEVMGMT_PRECOMP_H
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -93,5 +92,3 @@ HIMAGELIST InitImageList(UINT NumButtons,
VOID GetError(VOID);
VOID DisplayString(LPTSTR);
#endif /* __DEVMGMT_PRECOMP_H */

View file

@ -1,5 +1,4 @@
#ifndef __SERVMAN_PRECOMP_H
#define __SERVMAN_PRECOMP_H
#pragma once
//#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -185,5 +184,3 @@ HIMAGELIST InitImageList(UINT StartResource,
UINT Width,
UINT Height,
ULONG type);
#endif /* __SERVMAN_PRECOMP_H */

View file

@ -18,8 +18,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __BSOPS_MSTSC_H
#define __BSOPS_MSTSC_H
#pragma once
int bs_get_pixel(int x, int y);
void bs_set_pixel(int x, int y, int pixel, int rop, int use_clip);
@ -50,5 +49,3 @@ void bs_patblt(int opcode, int x, int y, int cx, int cy,
int brush_style, char * brush_pattern,
int brush_x_org, int brush_y_org,
int bgcolour, int fgcolour);
#endif /* __BSOPS_MSTSC_H */

View file

@ -18,8 +18,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __ORDERS_MSTSC_H
#define __ORDERS_MSTSC_H
#pragma once
#define RDP_ORDER_STANDARD 0x01
#define RDP_ORDER_SECONDARY 0x02
@ -369,5 +368,3 @@ typedef struct _RDP_COLCACHE_ORDER
}
RDP_COLCACHE_ORDER;
#endif /* __ORDERS_MSTSC_H */

View file

@ -17,8 +17,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef RDESKTOP_PROTO_H
#define RDESKTOP_PROTO_H
#pragma once
/* *INDENT-OFF* */
#ifdef __cplusplus
@ -306,5 +305,3 @@ unsigned int seamless_send_focus(unsigned long id, unsigned long flags);
}
#endif
/* *INDENT-ON* */
#endif

View file

@ -18,8 +18,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __RDESKTOP_MSTSC_H
#define __RDESKTOP_MSTSC_H
#pragma once
#include <stdlib.h>
#include <stdio.h>
@ -127,5 +126,3 @@
#ifndef MAKE_PROTO
#include "proto.h"
#endif
#endif /* __RDESKTOP_MSTSC_H */

View file

@ -18,8 +18,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __UIMAIN_MSTSC_H
#define __UIMAIN_MSTSC_H
#pragma once
/* in uimain.c */
int
@ -77,5 +76,3 @@ ui_set_modifier_state(int code);
#define UI_MAX(a, b) (((a) > (b)) ? (a) : (b))
#undef UI_MIN
#define UI_MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif /* __UIMAIN_MSTSC_H */

View file

@ -33,8 +33,7 @@
* @(#)err.h 8.1 (Berkeley) 6/2/93
*/
#ifndef _ERR_H_
#define _ERR_H_
#pragma once
/*
* Don't use va_list in the err/warn prototypes. Va_list is typedef'd in two
@ -56,5 +55,3 @@ void warn __P((const char *, ...));
void vwarn __P((const char *, va_list));
void warnx __P((const char *, ...));
void vwarnx __P((const char *, va_list));
#endif /* !_ERR_H_ */

View file

@ -1,9 +1,7 @@
// Various things you need when porting BSD and GNU utilities to
// Win32.
#ifndef VARIOUS_H
#define VARIOUS_H
#pragma once
typedef float f4byte_t;
typedef double f8byte_t;
@ -32,5 +30,3 @@ typedef long uid_t; // SunOS 5.5
#define rindex(s, c) strrchr(s, c)
void netfinger(char *);
#endif

View file

@ -1,5 +1,4 @@
#ifndef __ANSIPRSR_H
#define __ANSIPRSR_H
#pragma once
#include <stdio.h>
#include <stdlib.h>
@ -81,5 +80,3 @@ public:
char* ParseBuffer(char* pszBuffer, char* pszBufferEnd);
static int StripBuffer(char* pszBuffer, char* pszBufferEnd, int width);
};
#endif

View file

@ -18,8 +18,7 @@
// DeleteKeyDef : Deletes a key def from the list //
///////////////////////////////////////////////////////////////////
#ifndef __KEYTRANS_H
#define __KEYTRANS_H
#pragma once
#include "tkeydef.h"
#include "tkeymap.h"
@ -93,5 +92,3 @@ private:
int currentKeyMap, mainKeyMap; // AVS
};
#endif // __KEYTRANS_H

View file

@ -1,8 +1,7 @@
// This is the STL wrapper for classlib/arrays.h from Borland's web site
// It has been modified to be compatible with vc++ (Paul Branann 5/7/98)
#ifndef STL_ARRAY_AS_VECTOR
#define STL_ARRAY_AS_VECTOR
#pragma once
#ifdef _MSC_VER
#pragma warning(disable: 4786)
@ -156,5 +155,3 @@ public:
}
};
#endif

View file

@ -1,8 +1,7 @@
// This is a simple class to handle character maps
// (Paul Brannan 6/25/98)
#ifndef __TCHARMAP_H
#define __TCHARMAP_H
#pragma once
class TCharmap {
private:
@ -37,5 +36,3 @@ public:
int enabled;
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TNPARSER_H
#define __TNPARSER_H
#pragma once
#include "tnconfig.h"
@ -168,5 +167,3 @@ void saveScreen(CHAR_INFO* chiBuffer);
void restoreScreen(CHAR_INFO* chiBuffer);
CHAR_INFO* newBuffer();
void deleteBuffer(CHAR_INFO* chiBuffer);
#endif

View file

@ -1,5 +1,4 @@
#ifndef ___TELNET_H
#define ___TELNET_H
#pragma once
/*
* Copyright (c) 1983 Regents of the University of California.
@ -298,8 +297,3 @@ extern char *enctype_names[];
#define ENCTYPE_NAME(x) enctype_names[x]
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
#endif

View file

@ -3,8 +3,7 @@
// - keeped in an array container //
/////////////////////////////////////////////////////////
#ifndef __TKEYDEF_H
#define __TKEYDEF_H
#pragma once
#include <windows.h>
@ -67,5 +66,3 @@ public:
DWORD GetCodeKey() { return vk_code; }
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TKEYMAP_H
#define __TKEYMAP_H
#pragma once
#include "tkeydef.h"
@ -35,5 +34,3 @@ struct KeyMap {
~KeyMap();
};
#endif

View file

@ -68,8 +68,7 @@
// //
///////////////////////////////////////////////////////////////////
#ifndef __TLOADMAP_H
#define __TLOADMAP_H
#pragma once
#include "keytrans.h"
#include "tcharmap.h"
@ -101,5 +100,3 @@ private:
int LoadCharMap(string buf);
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TMOUSE_H
#define __TMOUSE_H
#pragma once
#include "tnclip.h"
#include <windows.h>
@ -25,5 +24,3 @@ public:
TMouse(Tnclip &RefClipboard);
~TMouse();
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TNCLASS_H_
#define __TNCLASS_H_
#pragma once
#include <windows.h>
#include "tnconfig.h"
@ -69,6 +68,3 @@ private:
void NewProcess(); // Paul Brannan 9/13/98
void SetLocalAddress(SOCKET s);
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TNCLIP_H
#define __TNCLIP_H
#pragma once
#include <windows.h>
#include "tnetwork.h"
@ -16,5 +15,3 @@ public:
void Copy(HGLOBAL clipboard_data);
void Paste();
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TNCON_H
#define __TNCON_H
#pragma once
#include "tparams.h"
#include "tnclip.h"
@ -30,5 +29,3 @@ BOOL WINAPI ControlEventHandler(DWORD);
// Bryan Montgomery 10/14/98
void setTNetwork(TNetwork);
#endif

View file

@ -6,8 +6,7 @@
// It does not store any information about the current settings, only default
// or recommended settings.
#ifndef __TNCONFIG_H
#define __TNCONFIG_H
#pragma once
// Ioannou 2 June 98: Borland needs them - quick hack
#ifdef __BORLANDC__
@ -207,5 +206,3 @@ private:
};
extern TConfig ini;
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TNERROR_H
#define __TNERROR_H
#pragma once
#ifndef __WINDOWS_H
#include <windows.h>
@ -12,5 +11,3 @@ extern int Telnet_Redir;
int printm(LPTSTR szModule, BOOL fSystem, DWORD dwMessageId, ...);
void LogErrorConsole(LPTSTR szError);
int printit(const char * it);
#endif

View file

@ -1,8 +1,7 @@
// This is a simple class to handle socket connections
// (Paul Brannan 6/15/98)
#ifndef __TNETWORK_H
#define __TNETWORK_H
#pragma once
#include <windows.h>
@ -46,5 +45,3 @@ public:
void do_naws(int width, int height);
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TNMAIN_H
#define __TNMAIN_H
#pragma once
#include <stdlib.h>
#include <process.h>
@ -15,5 +14,3 @@ struct cmdHistory {
struct cmdHistory *next;
struct cmdHistory *prev;
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TNMISC_H
#define __TNMISC_H
#pragma once
// Process-related functions
BOOL CreateHiddenConsoleProcess(LPCTSTR szChildName, PROCESS_INFORMATION* ppi,
@ -14,5 +13,3 @@ HWND TelnetGetConsoleWindow(void);
bool SetIcon(HWND hConsoleWindow, HANDLE hIcon, LPARAM *pOldBIcon, LPARAM *pOldSIcon,
const char *icondir);
void ResetIcon(HWND hConsoleWindow, LPARAM oldBIcon, LPARAM oldSIcon);
#endif

View file

@ -1,5 +1,4 @@
#ifndef __THREADPARAMS
#define __THREADPARAMS
#pragma once
#include "ttelhndl.h"
@ -20,5 +19,3 @@ public:
NetParams p;
TTelnetHandler &TelHandler;
};
#endif

View file

@ -10,8 +10,7 @@
// - An Init() function, which will re-initialize the parser when
// necessary.
#ifndef __TPARSER_H
#define __TPARSER_H
#pragma once
#include "tconsole.h"
#include "keytrans.h"
@ -45,5 +44,3 @@ protected:
TNetwork &Network;
TCharmap &Charmap;
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TSCRIPT_H
#define __TSCRIPT_H
#pragma once
#include <windows.h>
#include <stdio.h>
@ -16,5 +15,3 @@ private:
char *script;
TNetwork &Network;
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TSCROLL_H
#define __TSCROLL_H
#pragma once
#include "tconsole.h"
#include "tmouse.h"
@ -22,5 +21,3 @@ public:
TScroller(TMouse &M, int size=20000);
~TScroller();
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef __TTELHNDL_H
#define __TTELHNDL_H
#pragma once
#include "tparser.h"
#include "tnetwork.h"
@ -47,5 +46,3 @@ public:
int get_term() {return iTermSet;}
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef _RAPPS_H__
#define _RAPPS_H__
#pragma once
#include <windows.h>
#include <commctrl.h>
@ -185,5 +184,3 @@ VOID ToolBarOnGetDispInfo(LPTOOLTIPTEXT lpttt);
extern HWND hTreeView;
BOOL CreateTreeView(HWND hwnd);
HTREEITEM TreeViewAddItem(HTREEITEM hParent, LPWSTR lpText, INT Image, INT SelectedImage, LPARAM lParam);
#endif /* _RAPPS_H__ */

View file

@ -1,5 +1,4 @@
#ifndef _RESOURCE_H__
#define _RESOURCE_H__
#pragma once
/* Icons */
#define IDI_MAIN 10
@ -152,5 +151,3 @@
#ifndef IDC_STATIC
#define IDC_STATIC -1
#endif
#endif /* _RESOURCE_H__ */

View file

@ -1,5 +1,4 @@
#ifndef __CLBDLL_H
#define __CLBDLL_H
#pragma once
#define CLBS_NOTIFY 0x1
#define CLBS_SORT 0x2
@ -39,5 +38,3 @@ typedef struct _CUSTOM_CONTROL_INFO
LRESULT CALLBACK ClbWndProc(HWND,UINT,WPARAM,LPARAM);
INT_PTR WINAPI ClbStyleW(HWND,LPARAM);
BOOL WINAPI CustomControlInfoW(LPCUSTOM_CONTROL_INFO);
#endif /* __CLBDLL_H */

View file

@ -1,6 +1,3 @@
#ifndef __CLB_RESOURCE_H
#define __CLB_RESOURCE_H
#pragma once
#define IDD_COLUMNLISTBOXSTYLES 1700
#endif /* __CLB_RESOURCE_H */

View file

@ -1,5 +1,4 @@
#ifndef __HEXEDIT_H
#define __HEXEDIT_H
#pragma once
#define HEX_EDIT_CLASS_NAME _T("HexEdit32")
@ -36,5 +35,3 @@ UnregisterHexEditorClass(HINSTANCE hInstance);
#define HexEdit_SetMaxBufferSize(hWnd, Size) \
SendMessage((hWnd), HEM_SETMAXBUFFERSIZE, 0, (LPARAM)(Size))
#endif /* __HEXEDIT_H */

View file

@ -18,8 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __MAIN_H__
#define __MAIN_H__
#pragma once
#include "resource.h"
@ -124,5 +123,3 @@ extern void DestroyMainMenu( void );
/* edit.c */
extern BOOL ModifyValue(HWND hwnd, HKEY hKey, LPCTSTR valueName, BOOL EditBin);
extern BOOL DeleteKey(HWND hwnd, HKEY hKeyRoot, LPCTSTR keyPath);
#endif /* __MAIN_H__ */

View file

@ -1,5 +1,4 @@
#ifndef _REGEXP_SECURITY_H
#define _REGEXP_SECURITY_H
#pragma once
BOOL
InitializeAclUiDll(VOID);
@ -154,6 +153,4 @@ typedef struct _CRegKeySecurity
TCHAR szRegKey[1];
} CRegKeySecurity, *PCRegKeySecurity;
#endif /* _REGEXP_SECURITY_H */
/* EOF */

View file

@ -1,5 +1,4 @@
#ifndef __SNDVOL_RESOURCES_H
#define __SNDVOL_RESOURCES_H
#pragma once
#define IDM_MAINMENU 101
@ -22,5 +21,3 @@
#define IDS_SNDVOL32 100
#define IDS_NOMIXERDEVICES 101
#endif /* __SNDVOL_RESOURCES_H */

View file

@ -20,9 +20,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __ABOUT_H
#define __ABOUT_H
#pragma once
void OnAbout(void);
#endif /* __ABOUT_H */

View file

@ -20,9 +20,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __AFFINITY_H
#define __AFFINITY_H
#pragma once
void ProcessPage_OnSetAffinity(void);
#endif /* __AFFINITY_H */

View file

@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __APPLICATIONPAGE_H
#define __APPLICATIONPAGE_H
#pragma once
extern HWND hApplicationPage; /* Application List Property Page */
@ -43,5 +42,3 @@ void ApplicationPage_OnWindowsBringToFront(void);
void ApplicationPage_OnSwitchTo(void);
void ApplicationPage_OnEndTask(void);
void ApplicationPage_OnGotoProcess(void);
#endif /* __APPLICATIONPAGE_H */

View file

@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __COLUMN_H
#define __COLUMN_H
#pragma once
#define COLUMN_IMAGENAME 0
#define COLUMN_PID 1
@ -110,5 +109,3 @@ void ProcessPage_OnViewSelectColumns(void);
void AddColumns(void);
void SaveColumnSettings(void);
void UpdateColumnDataHints(void);
#endif /* __COLUMN_H */

View file

@ -20,9 +20,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __DEBUG_H
#define __DEBUG_H
#pragma once
void ProcessPage_OnDebug(void);
#endif /* __DEBUG_H */

View file

@ -20,10 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __ENDPROC_H
#define __ENDPROC_H
#pragma once
void ProcessPage_OnEndProcess(void);
void ProcessPage_OnEndProcessTree(void);
#endif /* __ENDPROC_H */

View file

@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __GRAPH_H
#define __GRAPH_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -41,5 +40,3 @@ INT_PTR CALLBACK Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
#ifdef __cplusplus
};
#endif
#endif /* __GRAPH_H */

View file

@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __GRAPH_CTRL_H__
#define __GRAPH_CTRL_H__
#pragma once
#define MAX_PLOTS 4
#define MAX_CTRLS 4
@ -110,5 +109,3 @@ INT_PTR CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
#ifdef __cplusplus
}
#endif
#endif /* __GRAPH_CTRL_H__ */

View file

@ -24,8 +24,7 @@
* Menu item handlers for the options menu.
*/
#ifndef __OPTNMENU_H
#define __OPTNMENU_H
#pragma once
#define OPTIONS_MENU_INDEX 1
@ -33,5 +32,3 @@ void TaskManager_OnOptionsAlwaysOnTop(void);
void TaskManager_OnOptionsMinimizeOnUse(void);
void TaskManager_OnOptionsHideWhenMinimized(void);
void TaskManager_OnOptionsShow16BitTasks(void);
#endif /* __OPTNMENU_H */

View file

@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __PERFDATA_H
#define __PERFDATA_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -106,5 +105,3 @@ ULONG PerfDataGetTotalThreadCount(void);
#ifdef __cplusplus
};
#endif
#endif /* __PERFDATA_H */

View file

@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __PERFORMANCEPAGE_H
#define __PERFORMANCEPAGE_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -37,5 +36,3 @@ void PerformancePage_OnViewCPUHistoryOneGraphPerCPU(void);
#ifdef __cplusplus
};
#endif
#endif /* __PERFORMANCEPAGE_H */

View file

@ -1,5 +1,4 @@
#ifndef __PRECOMP_H
#define __PRECOMP_H
#pragma once
#ifndef UNICODE
#error Task-Manager uses NDK functions, so it can only be compiled with Unicode support enabled!
@ -36,5 +35,3 @@
#include "priority.h"
#include "run.h"
#include "trayicon.h"
#endif /* __PRECOMP_H */

View file

@ -20,9 +20,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __PRIORITY_H
#define __PRIORITY_H
#pragma once
void DoSetPriority(DWORD priority);
#endif /* __PRIORITY_H */

View file

@ -20,11 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __PROCLIST_H
#define __PROCLIST_H
#pragma once
INT_PTR CALLBACK ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
extern WNDPROC OldProcessListWndProc;
#endif /* __PROCLIST_H */

View file

@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __PROCESSPAGE_H
#define __PROCESSPAGE_H
#pragma once
extern HWND hProcessPage; /* Process List Property Page */
extern HWND hProcessPageListCtrl; /* Process ListCtrl Window */
@ -32,5 +31,3 @@ extern HWND hProcessPageShowAllProcessesButton; /* Process Show All Processes c
INT_PTR CALLBACK ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
void RefreshProcessPage(void);
DWORD GetSelectedProcessId(void);
#endif /* __PROCESSPAGE_H */

View file

@ -28,8 +28,7 @@
* jholderness@geocities.com
*/
#ifndef __RUN_H
#define __RUN_H
#pragma once
void TaskManager_OnFileNew(void);
@ -50,5 +49,3 @@ UINT uFlags);
#define RFF_CALCDIRECTORY 0x04 /* Calculates the working directory from the file name. */
#define RFF_NOLABEL 0x08 /* Removes the edit box label. */
#define RFF_NOSEPARATEMEM 0x20 /* Removes the Separate Memory Space check box (Windows NT only). */
#endif /* __RUN_H */

View file

@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __TASKMGR_H__
#define __TASKMGR_H__
#pragma once
#ifdef __cplusplus
extern "C" {
@ -124,5 +123,3 @@ LPTSTR GetLastErrorText( LPTSTR lpszBuf, DWORD dwSize );
#ifdef __cplusplus
}
#endif
#endif /* __TASKMGR_H__ */

View file

@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __TRAYICON_H
#define __TRAYICON_H
#pragma once
#define WM_ONTRAYICON WM_USER + 5
@ -29,5 +28,3 @@ HICON TrayIcon_GetProcessorUsageIcon(void);
BOOL TrayIcon_ShellAddTrayIcon(void);
BOOL TrayIcon_ShellRemoveTrayIcon(void);
BOOL TrayIcon_ShellUpdateTrayIcon(void);
#endif /* __TRAYICON_H */

View file

@ -6,8 +6,8 @@
* DEFINES: DBG - Enable debug output
* NASSERT - Disable assertions
*/
#ifndef __DEBUG_H
#define __DEBUG_H
#pragma once
#define NORMAL_MASK 0x000000FF
#define SPECIAL_MASK 0xFFFFFF00
@ -48,6 +48,4 @@ extern unsigned long debug_trace_level;
#endif /* DBG */
#endif /* __DEBUG_H */
/* EOF */

View file

@ -39,8 +39,7 @@
* Enterprises, see ``http://www.vix.com''.
*/
#ifndef DHCPD_H
#define DHCPD_H
#pragma once
#include <winsock2.h>
#include <iphlpapi.h>
@ -484,5 +483,3 @@ int buf_add(struct buf *, void *, size_t);
int buf_close(int, struct buf *);
ssize_t buf_read(int, void *, size_t);
void dispatch_imsg(int);
#endif/*DHCPD_H*/

View file

@ -1,7 +1,4 @@
#ifndef REACTOS_PREDEC_H
#define REACTOS_PREDEC_H
#pragma once
struct iaddr;
struct interface_info;
#endif

View file

@ -1,5 +1,4 @@
#ifndef REACTOS_STDINT_H
#define REACTOS_STDINT_H
#pragma once
typedef signed char int8_t;
typedef unsigned char u_int8_t;
@ -9,5 +8,3 @@ typedef int int32_t;
typedef unsigned int u_int32_t;
typedef char *caddr_t;
#endif

View file

@ -5,8 +5,8 @@
* PURPOSE: Provide dll service loader
* PROGRAMMERS: Gregor Brunmar (gregor.brunmar@home.se)
*/
#ifndef __SVCHOST_H__
#define __SVCHOST_H__
#pragma once
/* INCLUDES ******************************************************************/
@ -32,7 +32,4 @@ typedef struct _SERVICE {
/* FUNCTIONS *****************************************************************/
#endif /* __SVCHOST_H__ */
/* EOF */

View file

@ -29,8 +29,7 @@
* @(#)syslog.h 8.1 (Berkeley) 6/2/93
*/
#ifndef _SYS_SYSLOG_H
#define _SYS_SYSLOG_H 1
#pragma once
#include <stdarg.h>
@ -193,5 +192,3 @@ extern const char* set_syslog_conf_dir( const char* dir );
#ifdef __cplusplus
}
#endif
#endif /* syslog.h */

View file

@ -1,5 +1,4 @@
#ifndef __TELNETD_H
#define __TELNETD_H
#pragma once
#define _CRT_SECURE_NO_WARNINGS
@ -82,6 +81,3 @@ static DWORD WINAPI ReadFromPipeThread(LPVOID);
static void TerminateShell(client_t *client);
static VOID ErrorExit(LPTSTR);
int kickoff_telnetd(void);
#endif /* __TELNETD_H */

View file

@ -1,5 +1,4 @@
#ifndef RESOURCE_H
#define RESOURCE_H
#pragma once
#define IDB_WATERMARK 100
#define IDB_HEADER 101
@ -61,5 +60,3 @@
#define IDC_DEVICEDRIVER 2051
#define IDI_MAIN 3000
#endif

View file

@ -24,8 +24,7 @@
* PROGRAMMER: Eric Kohl
*/
#ifndef __BOOTSUP_H__
#define __BOOTSUP_H__
#pragma once
NTSTATUS
CreateFreeLoaderIniForDos(PWCHAR IniPath,
@ -83,6 +82,4 @@ NTSTATUS
InstallFatBootcodeToFloppy(PUNICODE_STRING SourceRootPath,
PUNICODE_STRING DestinationArcPath);
#endif /* __BOOTSUP_H__ */
/* EOF */

View file

@ -4,8 +4,7 @@
* FILE: apps/cabman/cabinet.h
* PURPOSE: Cabinet definitions
*/
#ifndef __CABINET_H
#define __CABINET_H
#pragma once
#include <string.h>
@ -204,5 +203,3 @@ VOID CabinetSetEventHandlers(PCABINET_OVERWRITE Overwrite,
PCABINET_DISK_CHANGE DiskChange);
/* Get pointer to cabinet reserved area. NULL if none */
PVOID CabinetGetCabinetReservedArea(PULONG Size);
#endif /* __CABINET_H */

View file

@ -23,14 +23,11 @@
* PROGRAMMER: Hervé Poussineau (hpoussin@reactos.org)
*/
#ifndef __CHKDSK_H__
#define __CHKDSK_H__
#pragma once
NTSTATUS
ChkdskPartition(
IN PUNICODE_STRING DriveRoot,
IN PFILE_SYSTEM_ITEM FileSystem);
#endif /* __CHKDSK_H__ */
/* EOF */

View file

@ -24,14 +24,11 @@
* PROGRAMMER: Eric Kohl
*/
#ifndef __DRIVESUP_H__
#define __DRIVESUP_H__
#pragma once
NTSTATUS
GetSourcePaths(PUNICODE_STRING SourcePath,
PUNICODE_STRING SourceRootPath,
PUNICODE_STRING SourceRootDir);
#endif /* __DRIVESUP_H__ */
/* EOF */

View file

@ -24,8 +24,7 @@
* PROGRAMMER:
*/
#ifndef __ERROR_CODE_H__
#define __ERROR_CODE_H__
#pragma once
typedef enum
{
@ -70,7 +69,4 @@ typedef enum
ERROR_LAST_ERROR_CODE
}ERROR_NUMBER;
#endif /* __ERROR_CODE_H__ */
/* EOF */

View file

@ -24,9 +24,7 @@
* PROGRAMMER: Eric Kohl
*/
#ifndef __FILEQUEUE_H__
#define __FILEQUEUE_H__
#pragma once
#define SPFILENOTIFY_STARTQUEUE 0x1
#define SPFILENOTIFY_ENDQUEUE 0x2
@ -104,6 +102,4 @@ SetupCommitFileQueueW(HWND Owner,
PSP_FILE_CALLBACK_W MsgHandler,
PVOID Context);
#endif /* __FILEQUEUE_H__ */
/* EOF */

View file

@ -24,8 +24,7 @@
* PROGRAMMER: Eric Kohl
*/
#ifndef __FILESUP_H__
#define __FILESUP_H__
#pragma once
NTSTATUS
SetupCreateDirectory(PWCHAR DirectoryName);
@ -43,7 +42,4 @@ BOOLEAN
DoesFileExist(PWSTR PathName,
PWSTR FileName);
#endif /* __FILESUP_H__ */
/* EOF */

View file

@ -24,14 +24,11 @@
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
*/
#ifndef __FORMAT_H__
#define __FORMAT_H__
#pragma once
NTSTATUS
FormatPartition(
IN PUNICODE_STRING DriveRoot,
IN PFILE_SYSTEM_ITEM FileSystem);
#endif /* __FILESUP_H__ */
/* EOF */

View file

@ -24,8 +24,7 @@
* Casper S. Hornstrup (chorns@users.sourceforge.net)
*/
#ifndef __FSLIST_H__
#define __FSLIST_H__
#pragma once
#include <fmifs/fmifs.h>
@ -76,6 +75,4 @@ VOID
ScrollUpFileSystemList(
IN PFILE_SYSTEM_LIST List);
#endif /* __FSLIST_H__ */
/* EOF */

View file

@ -24,8 +24,7 @@
* PROGRAMMER: Eric Kohl
*/
#ifndef __GENLIST_H__
#define __GENLIST_H__
#pragma once
struct _GENERIC_LIST_ENTRY;
typedef struct _GENERIC_LIST_ENTRY *PGENERIC_LIST_ENTRY;
@ -97,6 +96,4 @@ RestoreGenericListState(PGENERIC_LIST List);
VOID
GenericListKeyPress (PGENERIC_LIST List, CHAR AsciChar);
#endif /* __GENLIST_H__ */
/* EOF */

View file

@ -24,8 +24,7 @@
* PROGRAMMER: Hervé Poussineau
*/
#ifndef __INFFILE_H__
#define __INFFILE_H__
#pragma once
#ifndef __REACTOS__
@ -138,6 +137,4 @@ INF_OpenBufferedFileA(
VOID INF_SetHeap(
IN PVOID Heap);
#endif /* __INFFILE_H__*/
/* EOF */

View file

@ -25,9 +25,7 @@
* Eric Kohl
*/
#ifndef __INICACHE_H__
#define __INICACHE_H__
#pragma once
typedef struct _INICACHEKEY
{
@ -126,7 +124,4 @@ PINICACHESECTION
IniCacheAppendSection(PINICACHE Cache,
PWCHAR Name);
#endif /* __INICACHE_H__ */
/* EOF */

View file

@ -24,8 +24,7 @@
* PROGRAMMER: Eric Kohl
*/
#ifndef __CONSUP_H__
#define __CONSUP_H__
#pragma once
#define FOREGROUND_WHITE (FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE)
#define FOREGROUND_YELLOW (FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN)
@ -187,6 +186,4 @@ CONSOLE_SetStyledText(
IN INT Flags,
IN LPCSTR Text);
#endif /* __CONSOLE_H__*/
/* EOF */

View file

@ -1,5 +1,4 @@
#ifndef LANG_AF_ZA_H__
#define LANG_AF_ZA_H__
#pragma once
MUI_LAYOUTS afZALayouts[] =
{
@ -7,5 +6,3 @@ MUI_LAYOUTS afZALayouts[] =
{ L"0409", L"00000409" },
{ NULL, NULL }
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef LANG_AR_AE_H__
#define LANG_AR_AE_H__
#pragma once
MUI_LAYOUTS arAELayouts[] =
{
@ -7,5 +6,3 @@ MUI_LAYOUTS arAELayouts[] =
{ L"3801", L"00000401" },
{ NULL, NULL }
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef LANG_AR_BH_H__
#define LANG_AR_BH_H__
#pragma once
MUI_LAYOUTS arBHLayouts[] =
{
@ -7,5 +6,3 @@ MUI_LAYOUTS arBHLayouts[] =
{ L"3C01", L"00000401" },
{ NULL, NULL }
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef LANG_AR_DZ_H__
#define LANG_AR_DZ_H__
#pragma once
MUI_LAYOUTS arDZLayouts[] =
{
@ -7,5 +6,3 @@ MUI_LAYOUTS arDZLayouts[] =
{ L"1401", L"00020401" },
{ NULL, NULL }
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef LANG_AR_EG_H__
#define LANG_AR_EG_H__
#pragma once
MUI_LAYOUTS arEGLayouts[] =
{
@ -7,5 +6,3 @@ MUI_LAYOUTS arEGLayouts[] =
{ L"0409", L"00000409" },
{ NULL, NULL }
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef LANG_AR_IQ_H__
#define LANG_AR_IQ_H__
#pragma once
MUI_LAYOUTS arIQLayouts[] =
{
@ -7,5 +6,3 @@ MUI_LAYOUTS arIQLayouts[] =
{ L"0409", L"00000409" },
{ NULL, NULL }
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef LANG_AR_JO_H__
#define LANG_AR_JO_H__
#pragma once
MUI_LAYOUTS arJOLayouts[] =
{
@ -7,5 +6,3 @@ MUI_LAYOUTS arJOLayouts[] =
{ L"2C01", L"00000401" },
{ NULL, NULL }
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef LANG_AR_KW_H__
#define LANG_AR_KW_H__
#pragma once
MUI_LAYOUTS arKWLayouts[] =
{
@ -7,5 +6,3 @@ MUI_LAYOUTS arKWLayouts[] =
{ L"3401", L"00000401" },
{ NULL, NULL }
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef LANG_AR_LB_H__
#define LANG_AR_LB_H__
#pragma once
MUI_LAYOUTS arLBLayouts[] =
{
@ -7,5 +6,3 @@ MUI_LAYOUTS arLBLayouts[] =
{ L"3001", L"00000401" },
{ NULL, NULL }
};
#endif

View file

@ -1,5 +1,4 @@
#ifndef LANG_AR_LY_H__
#define LANG_AR_LY_H__
#pragma once
MUI_LAYOUTS arLYLayouts[] =
{
@ -7,5 +6,3 @@ MUI_LAYOUTS arLYLayouts[] =
{ L"1001", L"00020401" },
{ NULL, NULL }
};
#endif

Some files were not shown because too many files have changed in this diff Show more