xcopy: Fix command line parsing logic.
[wine] / programs / xcopy / xcopy.h
1 /*
2  * XCOPY - Wine-compatible xcopy program
3  *
4  * Copyright (C) 2007 J. Edmeades
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #include <windef.h>
22
23 /* Local #defines */
24 #define RC_OK         0
25 #define RC_NOFILES    1
26 #define RC_CTRLC      2
27 #define RC_INITERROR  4
28 #define RC_WRITEERROR 5
29 #define RC_HELP       6
30
31 #define OPT_ASSUMEDIR    0x00000001
32 #define OPT_RECURSIVE    0x00000002
33 #define OPT_EMPTYDIR     0x00000004
34 #define OPT_QUIET        0x00000008
35 #define OPT_FULL         0x00000010
36 #define OPT_SIMULATE     0x00000020
37 #define OPT_PAUSE        0x00000040
38 #define OPT_NOCOPY       0x00000080
39 #define OPT_NOPROMPT     0x00000100
40 #define OPT_SHORTNAME    0x00000200
41 #define OPT_MUSTEXIST    0x00000400
42 #define OPT_REPLACEREAD  0x00000800
43 #define OPT_COPYHIDSYS   0x00001000
44 #define OPT_IGNOREERRORS 0x00002000
45 #define OPT_SRCPROMPT    0x00004000
46 #define OPT_ARCHIVEONLY  0x00008000
47 #define OPT_REMOVEARCH   0x00010000
48 #define OPT_EXCLUDELIST  0x00020000
49 #define OPT_DATERANGE    0x00040000
50 #define OPT_DATENEWER    0x00080000
51
52 #define MAXSTRING 8192
53
54 /* Translation ids */
55 #define STRING_INVPARMS         101
56 #define STRING_INVPARM          102
57 #define STRING_PAUSE            103
58 #define STRING_SIMCOPY          104
59 #define STRING_COPY             105
60 #define STRING_QISDIR           106
61 #define STRING_SRCPROMPT        107
62 #define STRING_OVERWRITE        108
63 #define STRING_COPYFAIL         109
64 #define STRING_OPENFAIL         110
65 #define STRING_READFAIL         111
66 #define STRING_YES_CHAR         112
67 #define STRING_NO_CHAR          113
68 #define STRING_ALL_CHAR         114
69 #define STRING_FILE_CHAR        115
70 #define STRING_DIR_CHAR         116
71 #define STRING_HELP             117