Skip to content

Commit

Permalink
[RESOURCES] Remove redundant #pragma code_page(), includes, etc.
Browse files Browse the repository at this point in the history
They are redundant when these are already present in the given module's
root resource file, from which the language-specific resource files are
being included.
  • Loading branch information
HBelusca committed Dec 22, 2024
1 parent 40f3604 commit cc3672c
Show file tree
Hide file tree
Showing 362 changed files with 110 additions and 867 deletions.
1 change: 1 addition & 0 deletions base/applications/cmdutils/at/at.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
Expand Down
4 changes: 3 additions & 1 deletion base/applications/cmdutils/fc/fc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
#define REACTOS_STR_ORIGINAL_FILENAME "fc.exe"
#include <reactos/version.rc>

#pragma code_page(65001) /* UTF-8 */
/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_BG_BG
#include "lang/bg-BG.rc"
#endif
Expand Down
1 change: 1 addition & 0 deletions base/applications/cmdutils/find/find.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_BG_BG
#include "lang/bg-BG.rc"
#endif
Expand Down
1 change: 1 addition & 0 deletions base/applications/cmdutils/help/help.rc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
Expand Down
1 change: 1 addition & 0 deletions base/applications/cmdutils/tasklist/tasklist.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_BG_BG
#include "lang/bg-BG.rc"
#endif
Expand Down
1 change: 1 addition & 0 deletions base/applications/cmdutils/tree/tree.rc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
Expand Down
3 changes: 2 additions & 1 deletion base/applications/cmdutils/where/where.rc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#define REACTOS_STR_ORIGINAL_FILENAME "where.exe"
#include <reactos/version.rc>

#pragma code_page(65001) /* UTF-8 */
/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
Expand Down
1 change: 1 addition & 0 deletions base/applications/network/dwnl/dwnl.rc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
Expand Down
1 change: 0 additions & 1 deletion base/applications/network/tracert/tracert.rc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define REACTOS_STR_ORIGINAL_COPYRIGHT "Ged Murphy ([email protected])"
#include <reactos/version.rc>


/* UTF-8 */
#pragma code_page(65001)

Expand Down
6 changes: 4 additions & 2 deletions base/applications/osk/osk.rc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

/* INCLUDES ******************************************************************/

#include "precomp.h"

#define REACTOS_STR_FILE_DESCRIPTION "ReactOS On Screen Keyboard"
Expand All @@ -17,7 +18,6 @@
IDI_OSK ICON "res/osk.ico"
IDI_SOUNDCLICK WAVE "res/click.wav"


IDI_BACK ICON "res/back.ico"
IDI_TAB ICON "res/tab.ico"
IDI_CAPS_LOCK ICON "res/caps_lock.ico"
Expand All @@ -35,8 +35,9 @@ IDI_BOTTOM ICON "res/bottom.ico"

#include <reactos/manifest_exe.rc>

// UTF-8
/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_AR_DZ
#include "lang/ar-DZ.rc"
#endif
Expand Down Expand Up @@ -100,4 +101,5 @@ IDI_BOTTOM ICON "res/bottom.ico"
#ifdef LANGUAGE_ZH_TW
#include "lang/zh-TW.rc"
#endif

/* EOF */
1 change: 0 additions & 1 deletion base/applications/regedit/clb/clb.rc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#include <reactos/manifest_dll.rc>


/* UTF-8 */
#pragma code_page(65001)

Expand Down
1 change: 0 additions & 1 deletion base/system/services/services.rc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define REACTOS_STR_ORIGINAL_FILENAME "services.exe"
#include <reactos/version.rc>


/* UTF-8 */
#pragma code_page(65001)

Expand Down
4 changes: 2 additions & 2 deletions dll/cpl/console/console.rc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

#include "resource.h"

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Control Panel Console Applet"
#define REACTOS_STR_INTERNAL_NAME "console"
Expand All @@ -22,8 +24,6 @@ IDC_CPLICON ICON "res/terminal.ico"

#include <reactos/manifest_hosted.rc>

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

/* UTF-8 */
#pragma code_page(65001)

Expand Down
1 change: 0 additions & 1 deletion dll/cpl/inetcpl/inetcpl.rc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include "inetcpl.h"


#include <reactos/manifest_hosted.rc>

/* UTF-8 */
Expand Down
2 changes: 0 additions & 2 deletions dll/cpl/inetcpl/lang/He.rc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*
*/

#pragma code_page(65001)

LANGUAGE LANG_HEBREW, SUBLANG_DEFAULT

STRINGTABLE
Expand Down
2 changes: 0 additions & 2 deletions dll/cpl/inetcpl/lang/Sr.rc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
*
*/

#pragma code_page(65001)

LANGUAGE LANG_SERBIAN, SUBLANG_SERBIAN_CYRILLIC

STRINGTABLE
Expand Down
3 changes: 0 additions & 3 deletions dll/cpl/inetcpl/lang/cs-CZ.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
* UPDATED: 2014-04-21
*/

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_CZECH, SUBLANG_DEFAULT

STRINGTABLE
Expand Down
2 changes: 0 additions & 2 deletions dll/cpl/inetcpl/lang/de-DE.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
*
*/

#pragma code_page(65001)

LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL

STRINGTABLE
Expand Down
3 changes: 0 additions & 3 deletions dll/cpl/inetcpl/lang/fr-FR.rc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
*
*/

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL

STRINGTABLE
Expand Down
3 changes: 0 additions & 3 deletions dll/cpl/inetcpl/lang/it-IT.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
*
*/

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL

STRINGTABLE
Expand Down
3 changes: 0 additions & 3 deletions dll/cpl/inetcpl/lang/ja-JP.rc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
*
*/

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT

STRINGTABLE
Expand Down
2 changes: 0 additions & 2 deletions dll/cpl/inetcpl/lang/ko-KR.rc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
*
*/

#pragma code_page(65001)

LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT

STRINGTABLE
Expand Down
3 changes: 0 additions & 3 deletions dll/cpl/inetcpl/lang/lt-LT.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
*
*/

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_LITHUANIAN, SUBLANG_NEUTRAL

STRINGTABLE
Expand Down
3 changes: 0 additions & 3 deletions dll/cpl/inetcpl/lang/pl-PL.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
*
*/

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_POLISH, SUBLANG_DEFAULT

STRINGTABLE
Expand Down
2 changes: 0 additions & 2 deletions dll/cpl/inetcpl/lang/pt-BR.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
*
*/

#pragma code_page(65001)

LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN

STRINGTABLE
Expand Down
3 changes: 0 additions & 3 deletions dll/cpl/inetcpl/lang/pt-PT.rc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
*
*/

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL

STRINGTABLE
Expand Down
3 changes: 0 additions & 3 deletions dll/cpl/inetcpl/lang/ru-RU.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
*
*/

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT

STRINGTABLE
Expand Down
2 changes: 0 additions & 2 deletions dll/cpl/inetcpl/lang/sv-SE.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
*
*/

#pragma code_page(65001)

LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL

STRINGTABLE
Expand Down
3 changes: 0 additions & 3 deletions dll/cpl/inetcpl/lang/tr-TR.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
*
*/

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_TURKISH, SUBLANG_NEUTRAL

STRINGTABLE
Expand Down
3 changes: 0 additions & 3 deletions dll/cpl/inetcpl/lang/uk-UA.rc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
*
*/

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT

STRINGTABLE
Expand Down
10 changes: 5 additions & 5 deletions dll/shellext/mydocs/mydocs.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
#include <winuser.h>
#include "resource.h"

#include "mydocs_version.rc"

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

#include "mydocs_version.rc"

100 ICON "../../win32/shell32/res/icons/235.ico" // IDI_SHELL_MY_DOCUMENTS
101 ICON "../../win32/shell32/res/icons/236.ico" // IDI_SHELL_MY_PICTURES

IDR_MYDOCS REGISTRY "res/mydocs.rgs"

/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
Expand Down
8 changes: 4 additions & 4 deletions dll/shellext/sendmail/sendmail.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
#include <winuser.h>
#include "resource.h"

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

#include "sendmail_version.rc"

IDR_DESKLINK REGISTRY "res/desklink.rgs"

/* UTF-8 */
#pragma code_page(65001)

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

IDR_DESKLINK REGISTRY "res/desklink.rgs"

#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
Expand Down
1 change: 0 additions & 1 deletion dll/shellext/zipfldr/zipfldr.rc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ IDR_ZIPFLDR REGISTRY "res/zipfldr.rgs"
/* UTF-8 */
#pragma code_page(65001)


#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
Expand Down
3 changes: 2 additions & 1 deletion dll/win32/comdlg32/rsrc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
* get localized bitmaps for example.
*/

#pragma code_page(65001) // UTF-8
/* UTF-8 */
#pragma code_page(65001)

#ifdef LANGUAGE_BG_BG
#include "lang/cdlg_Bg.rc"
Expand Down
2 changes: 0 additions & 2 deletions dll/win32/credui/lang/credui_Da.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

#pragma code_page(65001)

LANGUAGE LANG_DANISH, SUBLANG_DEFAULT

STRINGTABLE
Expand Down
2 changes: 0 additions & 2 deletions dll/win32/credui/lang/credui_De.rc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

#pragma code_page(65001)

LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL

STRINGTABLE
Expand Down
2 changes: 0 additions & 2 deletions dll/win32/credui/lang/credui_Es.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

#pragma code_page(65001)

LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL

STRINGTABLE
Expand Down
Loading

0 comments on commit cc3672c

Please sign in to comment.