This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
45 lines
1.4 KiB
C
45 lines
1.4 KiB
C
/****************************************************************************
|
|
* Name: src/msw/winestub.cpp
|
|
* Purpose: wxWINE module mapping main() to WinMain()
|
|
* Author: Robert Roebling
|
|
* Created: 04/01/98
|
|
* Copyright: (c) Robert Roebling
|
|
* Licence: wxWindows licence
|
|
*****************************************************************************/
|
|
|
|
#include <string.h>
|
|
#include "winuser.h"
|
|
#include "xmalloc.h"
|
|
|
|
extern int PASCAL WinMain( HINSTANCE, HINSTANCE, LPSTR, int );
|
|
extern HINSTANCE MAIN_WinelibInit( int *argc, char *argv[] );
|
|
|
|
/* Most Windows C/C++ compilers use something like this to */
|
|
/* access argc and argv globally: */
|
|
int _ARGC;
|
|
char **_ARGV;
|
|
|
|
int main( int argc, char *argv [] )
|
|
{
|
|
HINSTANCE hInstance;
|
|
LPSTR lpszCmdParam;
|
|
int i, len = 0;
|
|
_ARGC = argc;
|
|
_ARGV = (char **)argv;
|
|
|
|
if (!(hInstance = MAIN_WinelibInit( &argc, argv ))) return 0;
|
|
|
|
/* Alloc szCmdParam */
|
|
for (i = 1; i < argc; i++) len += strlen(argv[i]) + 1;
|
|
lpszCmdParam = (LPSTR) xmalloc(len + 1);
|
|
/* Concatenate arguments */
|
|
if (argc > 1) strcpy(lpszCmdParam, argv[1]);
|
|
else lpszCmdParam[0] = '\0';
|
|
for (i = 2; i < argc; i++) strcat(strcat(lpszCmdParam, " "), argv[i]);
|
|
|
|
return WinMain (hInstance, /* hInstance */
|
|
0, /* hPrevInstance */
|
|
lpszCmdParam, /* lpszCmdParam */
|
|
SW_NORMAL); /* nCmdShow */
|
|
}
|