Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
44a1e7d1
Commit
44a1e7d1
authored
Nov 29, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Move commonly used global vars declarations to header file.
parent
ad81871f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
27 deletions
+12
-27
batch.c
programs/cmd/batch.c
+0
-4
builtins.c
programs/cmd/builtins.c
+0
-10
directory.c
programs/cmd/directory.c
+0
-10
wcmd.h
programs/cmd/wcmd.h
+12
-3
No files found.
programs/cmd/batch.c
View file @
44a1e7d1
...
...
@@ -24,10 +24,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
cmd
);
extern
WCHAR
quals
[
MAX_PATH
],
param1
[
MAX_PATH
],
param2
[
MAX_PATH
];
extern
BATCH_CONTEXT
*
context
;
extern
DWORD
errorlevel
;
/****************************************************************************
* WCMD_batch
*
...
...
programs/cmd/builtins.c
View file @
44a1e7d1
...
...
@@ -20,13 +20,6 @@
*/
/*
* NOTES:
* On entry to each function, global variables quals, param1, param2 contain
* the qualifiers (uppercased and concatenated) and parameters entered, with
* environment-variable and batch parameter substitution already done.
*/
/*
* FIXME:
* - No support for pipes, shell parameters
* - Lots of functionality missing from builtins
...
...
@@ -43,9 +36,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(cmd);
extern
int
defaultColor
;
extern
BOOL
echo_mode
;
extern
WCHAR
quals
[
MAX_PATH
],
param1
[
MAX_PATH
],
param2
[
MAX_PATH
];
extern
BATCH_CONTEXT
*
context
;
extern
DWORD
errorlevel
;
static
HINSTANCE
hinst
;
static
struct
env_stack
*
saved_environment
;
...
...
programs/cmd/directory.c
View file @
44a1e7d1
...
...
@@ -19,13 +19,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* NOTES:
* On entry, global variables quals, param1, param2 contain
* the qualifiers (uppercased and concatenated) and parameters entered, with
* environment-variable and batch parameter substitution already done.
*/
#define WIN32_LEAN_AND_MEAN
#include "wcmd.h"
...
...
@@ -33,9 +26,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
cmd
);
extern
WCHAR
quals
[
MAX_PATH
],
param1
[
MAX_PATH
],
param2
[
MAX_PATH
];
extern
DWORD
errorlevel
;
typedef
enum
_DISPLAYTIME
{
Creation
=
0
,
...
...
programs/cmd/wcmd.h
View file @
44a1e7d1
...
...
@@ -30,6 +30,9 @@
#include <ctype.h>
#include <wine/unicode.h>
/* msdn specified max for Win XP */
#define MAXSTRING 8192
/* Data structure to hold commands delimitors/separators */
typedef
enum
_CMDdelimiters
{
...
...
@@ -155,6 +158,15 @@ typedef struct _DIRECTORY_STACK
WCHAR
*
fileName
;
}
DIRECTORY_STACK
;
/*
* Global variables quals, param1, param2 contain the current qualifiers
* (uppercased and concatenated) and parameters entered, with environment
* variables and batch parameters substitution already done.
*/
extern
WCHAR
quals
[
MAX_PATH
],
param1
[
MAXSTRING
],
param2
[
MAXSTRING
];
extern
DWORD
errorlevel
;
extern
BATCH_CONTEXT
*
context
;
#endif
/* !RC_INVOKED */
/*
...
...
@@ -264,6 +276,3 @@ extern WCHAR version_string[];
#define WCMD_VERSION 1033
#define WCMD_MOREPROMPT 1034
#define WCMD_LINETOOLONG 1035
/* msdn specified max for Win XP */
#define MAXSTRING 8192
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment