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
cfc3943c
Commit
cfc3943c
authored
May 04, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
May 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make our ascii strings static const.
Remove a couple string variables that were used only once and use the string literal directly.
parent
ff39b877
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
113 additions
and
119 deletions
+113
-119
header.c
dlls/comctl32/header.c
+1
-2
printdrv.c
dlls/gdi/printdrv.c
+4
-4
ipstats.c
dlls/iphlpapi/ipstats.c
+4
-4
mailslot.c
dlls/kernel/tests/mailslot.c
+2
-2
pipe.c
dlls/kernel/tests/pipe.c
+7
-7
file.c
dlls/msvcrt/tests/file.c
+14
-12
scanf.c
dlls/msvcrt/tests/scanf.c
+3
-3
string.c
dlls/msvcrt/tests/string.c
+1
-1
storage32.c
dlls/ole32/storage32.c
+1
-1
reg.c
dlls/shlwapi/reg.c
+1
-1
umon.c
dlls/urlmon/umon.c
+1
-1
resource.c
dlls/user/tests/resource.c
+1
-1
download.c
dlls/wineps/download.c
+1
-1
pen.c
dlls/wineps/pen.c
+5
-5
ps.c
dlls/wineps/ps.c
+11
-11
psdrv.h
dlls/wineps/psdrv.h
+1
-1
type42.c
dlls/wineps/type42.c
+5
-5
wineclipsrv.c
dlls/x11drv/wineclipsrv.c
+2
-2
xrender.c
dlls/x11drv/xrender.c
+1
-1
main.c
programs/clock/main.c
+4
-4
cmdlgtst.c
programs/cmdlgtst/cmdlgtst.c
+5
-5
batch.c
programs/wcmd/batch.c
+0
-3
builtins.c
programs/wcmd/builtins.c
+1
-6
directory.c
programs/wcmd/directory.c
+1
-6
wcmd.h
programs/wcmd/wcmd.h
+6
-0
wcmdmain.c
programs/wcmd/wcmdmain.c
+4
-4
main.c
programs/winetest/main.c
+2
-1
send.c
programs/winetest/send.c
+3
-3
string.c
programs/winhelp/string.c
+7
-7
winhelp.h
programs/winhelp/winhelp.h
+8
-8
widl.c
tools/widl/widl.c
+1
-1
mcl.c
tools/wmc/mcl.c
+1
-1
mcy.y
tools/wmc/mcy.y
+1
-1
utils.c
tools/wmc/utils.c
+1
-2
readres.c
tools/wrc/readres.c
+1
-1
wrc.c
tools/wrc/wrc.c
+1
-1
No files found.
dlls/comctl32/header.c
View file @
cfc3943c
...
...
@@ -924,9 +924,8 @@ HEADER_InsertItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
lpItem
->
cxy
=
phdi
->
cxy
;
if
(
phdi
->
mask
&
HDI_TEXT
)
{
static
char
empty
[]
=
""
;
if
(
!
phdi
->
pszText
)
/* null pointer check */
phdi
->
pszText
=
empty
;
phdi
->
pszText
=
""
;
if
(
phdi
->
pszText
!=
LPSTR_TEXTCALLBACKA
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
phdi
->
pszText
,
-
1
,
NULL
,
0
);
lpItem
->
pszText
=
Alloc
(
len
*
sizeof
(
WCHAR
)
);
...
...
dlls/gdi/printdrv.c
View file @
cfc3943c
...
...
@@ -54,10 +54,10 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
print
);
static
c
har
PrinterModel
[]
=
"Printer Model"
;
static
c
har
DefaultDevMode
[]
=
"Default DevMode"
;
static
char
PrinterDriverData
[]
=
"PrinterDriverData"
;
static
c
har
Printers
[]
=
"System
\\
CurrentControlSet
\\
Control
\\
Print
\\
Printers
\\
"
;
static
c
onst
char
PrinterModel
[]
=
"Printer Model"
;
static
c
onst
char
DefaultDevMode
[]
=
"Default DevMode"
;
static
c
onst
c
har
PrinterDriverData
[]
=
"PrinterDriverData"
;
static
c
onst
char
Printers
[]
=
"System
\\
CurrentControlSet
\\
Control
\\
Print
\\
Printers
\\
"
;
/******************************************************************
...
...
dlls/iphlpapi/ipstats.c
View file @
cfc3943c
...
...
@@ -162,7 +162,7 @@ DWORD getICMPStats(MIB_ICMP *stats)
/* get most of these stats from /proc/net/snmp, no error if can't */
fp
=
fopen
(
"/proc/net/snmp"
,
"r"
);
if
(
fp
)
{
const
char
hdr
[]
=
"Icmp:"
;
static
const
char
hdr
[]
=
"Icmp:"
;
char
buf
[
512
]
=
{
0
},
*
ptr
;
do
{
...
...
@@ -292,7 +292,7 @@ DWORD getIPStats(PMIB_IPSTATS stats)
/* get most of these stats from /proc/net/snmp, no error if can't */
fp
=
fopen
(
"/proc/net/snmp"
,
"r"
);
if
(
fp
)
{
const
char
hdr
[]
=
"Ip:"
;
static
const
char
hdr
[]
=
"Ip:"
;
char
buf
[
512
]
=
{
0
},
*
ptr
;
do
{
...
...
@@ -401,7 +401,7 @@ DWORD getTCPStats(MIB_TCPSTATS *stats)
/* get from /proc/net/snmp, no error if can't */
fp
=
fopen
(
"/proc/net/snmp"
,
"r"
);
if
(
fp
)
{
const
char
hdr
[]
=
"Tcp:"
;
static
const
char
hdr
[]
=
"Tcp:"
;
char
buf
[
512
]
=
{
0
},
*
ptr
;
...
...
@@ -491,7 +491,7 @@ DWORD getUDPStats(MIB_UDPSTATS *stats)
/* get from /proc/net/snmp, no error if can't */
fp
=
fopen
(
"/proc/net/snmp"
,
"r"
);
if
(
fp
)
{
const
char
hdr
[]
=
"Udp:"
;
static
const
char
hdr
[]
=
"Udp:"
;
char
buf
[
512
]
=
{
0
},
*
ptr
;
...
...
dlls/kernel/tests/mailslot.c
View file @
cfc3943c
...
...
@@ -35,9 +35,9 @@
#endif
const
char
szmspath
[]
=
"
\\\\
.
\\
mailslot
\\
wine_mailslot_test"
;
static
const
char
szmspath
[]
=
"
\\\\
.
\\
mailslot
\\
wine_mailslot_test"
;
int
mailslot_test
()
static
int
mailslot_test
()
{
HANDLE
hSlot
,
hSlot2
,
hWriter
,
hWriter2
;
unsigned
char
buffer
[
16
];
...
...
dlls/kernel/tests/pipe.c
View file @
cfc3943c
...
...
@@ -54,12 +54,12 @@
static
HANDLE
alarm_event
;
void
test_CreateNamedPipe
(
pipemode
)
static
void
test_CreateNamedPipe
(
pipemode
)
{
HANDLE
hnp
;
HANDLE
hFile
;
const
char
obuf
[]
=
"Bit Bucket"
;
const
char
obuf2
[]
=
"More bits"
;
static
const
char
obuf
[]
=
"Bit Bucket"
;
static
const
char
obuf2
[]
=
"More bits"
;
char
ibuf
[
32
],
*
pbuf
;
DWORD
written
;
DWORD
readden
;
...
...
@@ -617,7 +617,7 @@ static void exercizeServer(const char *pipename, HANDLE serverThread)
trace
(
"exercizeServer starting
\n
"
);
for
(
i
=
0
;
i
<
NB_SERVER_LOOPS
;
i
++
)
{
HANDLE
hFile
=
INVALID_HANDLE_VALUE
;
const
char
obuf
[]
=
"Bit Bucket"
;
static
const
char
obuf
[]
=
"Bit Bucket"
;
char
ibuf
[
32
];
DWORD
written
;
DWORD
readden
;
...
...
@@ -660,7 +660,7 @@ static void exercizeServer(const char *pipename, HANDLE serverThread)
trace
(
"exercizeServer returning
\n
"
);
}
void
test_NamedPipe_2
(
void
)
static
void
test_NamedPipe_2
(
void
)
{
HANDLE
serverThread
;
DWORD
serverThreadId
;
...
...
@@ -700,11 +700,11 @@ void test_NamedPipe_2(void)
trace
(
"test_NamedPipe_2 returning
\n
"
);
}
void
test_DisconnectNamedPipe
(
void
)
static
void
test_DisconnectNamedPipe
(
void
)
{
HANDLE
hnp
;
HANDLE
hFile
;
const
char
obuf
[]
=
"Bit Bucket"
;
static
const
char
obuf
[]
=
"Bit Bucket"
;
char
ibuf
[
32
];
DWORD
written
;
DWORD
readden
;
...
...
dlls/msvcrt/tests/file.c
View file @
cfc3943c
...
...
@@ -31,7 +31,8 @@
static
void
test_fdopen
(
void
)
{
static
char
buffer
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
static
const
char
buffer
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
char
ibuf
[
10
];
int
fd
;
FILE
*
file
;
...
...
@@ -42,15 +43,15 @@ static void test_fdopen( void )
fd
=
open
(
"fdopen.tst"
,
O_RDONLY
|
O_BINARY
);
lseek
(
fd
,
5
,
SEEK_SET
);
file
=
fdopen
(
fd
,
"rb"
);
ok
(
fread
(
buffer
,
1
,
sizeof
(
buffer
),
file
)
==
5
,
"read wrong byte count
\n
"
);
ok
(
memcmp
(
buffer
,
buffer
+
5
,
5
)
==
0
,
"read wrong bytes
\n
"
);
ok
(
fread
(
ibuf
,
1
,
sizeof
(
buffer
),
file
)
==
5
,
"read wrong byte count
\n
"
);
ok
(
memcmp
(
ibuf
,
buffer
+
5
,
5
)
==
0
,
"read wrong bytes
\n
"
);
fclose
(
file
);
unlink
(
"fdopen.tst"
);
}
static
void
test_fileops
(
void
)
{
static
char
outbuffer
[]
=
"0,1,2,3,4,5,6,7,8,9"
;
static
c
onst
c
har
outbuffer
[]
=
"0,1,2,3,4,5,6,7,8,9"
;
char
buffer
[
256
];
WCHAR
wbuffer
[
256
];
int
fd
;
...
...
@@ -85,7 +86,7 @@ static void test_fileops( void )
ok
(
lstrlenW
(
wbuffer
)
==
1
,
"fgets dropped chars
\n
"
);
fclose
(
file
);
unlink
(
"fdopen.tst"
);
}
}
static
WCHAR
*
AtoW
(
char
*
p
)
{
...
...
@@ -102,12 +103,12 @@ static void test_fgetwc( void )
char
*
tempf
;
FILE
*
tempfh
;
const
char
mytext
[]
=
"This is test_fgetwc
\n
"
;
static
const
char
mytext
[]
=
"This is test_fgetwc
\n
"
;
WCHAR
wtextW
[
LLEN
+
1
];
WCHAR
*
mytextW
=
NULL
,
*
aptr
,
*
wptr
;
BOOL
diff_found
=
FALSE
;
unsigned
int
i
;
tempf
=
_tempnam
(
"."
,
"wne"
);
tempfh
=
fopen
(
tempf
,
"wt"
);
/* open in TEXT mode */
fputs
(
mytext
,
tempfh
);
...
...
@@ -127,13 +128,13 @@ static void test_fgetwc( void )
fclose
(
tempfh
);
unlink
(
tempf
);
}
static
void
test_file_put_get
(
void
)
{
char
*
tempf
;
FILE
*
tempfh
;
const
char
mytext
[]
=
"This is a test_file_put_get
\n
"
;
const
char
dostext
[]
=
"This is a test_file_put_get
\r\n
"
;
static
const
char
mytext
[]
=
"This is a test_file_put_get
\n
"
;
static
const
char
dostext
[]
=
"This is a test_file_put_get
\r\n
"
;
char
btext
[
LLEN
];
WCHAR
wtextW
[
LLEN
+
1
];
WCHAR
*
mytextW
=
NULL
,
*
aptr
,
*
wptr
;
...
...
@@ -176,12 +177,13 @@ static void test_file_put_get( void )
fclose
(
tempfh
);
unlink
(
tempf
);
}
static
void
test_file_write_read
(
void
)
{
char
*
tempf
;
int
tempfd
;
const
char
mytext
[]
=
"This is test_file_write_read
\n
second line
\n
"
;
const
char
dostext
[]
=
"This is test_file_write_read
\r\n
second line
\r\n
"
;
static
const
char
mytext
[]
=
"This is test_file_write_read
\n
second line
\n
"
;
static
const
char
dostext
[]
=
"This is test_file_write_read
\r\n
second line
\r\n
"
;
char
btext
[
LLEN
];
tempf
=
_tempnam
(
"."
,
"wne"
);
...
...
dlls/msvcrt/tests/scanf.c
View file @
cfc3943c
...
...
@@ -28,16 +28,16 @@ static void test_sscanf( void )
char
format
[
20
];
int
result
,
ret
;
float
res1
=
-
82
.
6267
f
,
res2
=
27
.
76
f
,
res11
,
res12
;
char
pname
[]
=
" St. Petersburg, Florida
\n
"
;
static
const
char
pname
[]
=
" St. Petersburg, Florida
\n
"
;
int
hour
=
21
,
min
=
59
,
sec
=
20
;
int
number
,
number_so_far
;
/* check EOF */
strcpy
(
buffer
,
""
);
ret
=
sscanf
(
buffer
,
"%d"
,
&
result
);
ok
(
ret
==
EOF
,
"sscanf returns %x instead of %x
\n
"
,
ret
,
EOF
);
/* check %x */
strcpy
(
buffer
,
"0x519"
);
ok
(
sscanf
(
buffer
,
"%x"
,
&
result
)
==
1
,
"sscanf failed
\n
"
);
...
...
dlls/msvcrt/tests/string.c
View file @
cfc3943c
...
...
@@ -33,7 +33,7 @@ static int* (*pmemcmp)(void *, const void *, size_t n);
START_TEST
(
string
)
{
void
*
mem
;
char
xilstring
[]
=
"c:/xilinx"
;
static
const
char
xilstring
[]
=
"c:/xilinx"
;
int
nLen
=
strlen
(
xilstring
);
HMODULE
hMsvcrt
=
LoadLibraryA
(
"msvcrt.dll"
);
ok
(
hMsvcrt
!=
0
,
"LoadLibraryA failed
\n
"
);
...
...
dlls/ole32/storage32.c
View file @
cfc3943c
...
...
@@ -7235,7 +7235,7 @@ void OLECONVERT_GetOle20PresData(LPSTORAGE pStorage, OLECONVERT_OLESTREAM_DATA *
{
LARGE_INTEGER
iSeekPos
;
METAFILEPICT16
MetaFilePict
;
char
strMetafilePictName
[]
=
"METAFILEPICT"
;
static
const
char
strMetafilePictName
[]
=
"METAFILEPICT"
;
/* Set the TypeID for a Metafile */
pOleStreamData
[
1
].
dwTypeID
=
5
;
...
...
dlls/shlwapi/reg.c
View file @
cfc3943c
...
...
@@ -1047,7 +1047,7 @@ DWORD WINAPI SHSetValueA(HKEY hKey, LPCSTR lpszSubKey, LPCSTR lpszValue,
{
DWORD
dwRet
=
ERROR_SUCCESS
,
dwDummy
;
HKEY
hSubKey
;
char
szEmpty
[]
=
""
;
static
const
char
szEmpty
[]
=
{
'\0'
}
;
TRACE
(
"(hkey=%p,%s,%s,%ld,%p,%ld)
\n
"
,
hKey
,
debugstr_a
(
lpszSubKey
),
debugstr_a
(
lpszValue
),
dwType
,
pvData
,
cbData
);
...
...
dlls/urlmon/umon.c
View file @
cfc3943c
...
...
@@ -1312,7 +1312,7 @@ HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN pCaller,
URL_COMPONENTSW
url
;
WCHAR
host
[
0x80
],
path
[
0x100
];
HANDLE
hfile
;
WCHAR
wszAppName
[]
=
{
'u'
,
'r'
,
'l'
,
'm'
,
'o'
,
'n'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
wszAppName
[]
=
{
'u'
,
'r'
,
'l'
,
'm'
,
'o'
,
'n'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
/* Note: all error codes would need to be checked agains real Windows behaviour... */
TRACE
(
"(%p,%s,%s,%08lx,%p) stub!
\n
"
,
pCaller
,
debugstr_w
(
szURL
),
debugstr_w
(
szFileName
),
dwReserved
,
lpfnCB
);
...
...
dlls/user/tests/resource.c
View file @
cfc3943c
...
...
@@ -26,7 +26,7 @@ void
test_LoadStringA
(
void
)
{
HINSTANCE
hInst
=
GetModuleHandle
(
NULL
);
const
char
str
[]
=
"String resource"
;
/* same in resource.rc */
static
const
char
str
[]
=
"String resource"
;
/* same in resource.rc */
char
buf
[
128
];
struct
string_test
{
int
bufsiz
;
...
...
dlls/wineps/download.c
View file @
cfc3943c
...
...
@@ -268,7 +268,7 @@ BOOL PSDRV_WriteDownloadGlyphShow(PSDRV_PDEVICE *physDev, WORD *glyphs,
BOOL
PSDRV_EmptyDownloadList
(
PSDRV_PDEVICE
*
physDev
,
BOOL
write_undef
)
{
DOWNLOAD
*
pdl
,
*
old
;
char
undef
[]
=
"/%s findfont 40 scalefont setfont /%s undefinefont
\n
"
;
static
const
char
undef
[]
=
"/%s findfont 40 scalefont setfont /%s undefinefont
\n
"
;
char
buf
[
sizeof
(
undef
)
+
200
];
char
*
default_font
=
physDev
->
pi
->
ppd
->
DefaultFont
?
physDev
->
pi
->
ppd
->
DefaultFont
:
"Courier"
;
...
...
dlls/wineps/pen.c
View file @
cfc3943c
...
...
@@ -28,11 +28,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
psdrv
);
static
char
PEN_dash
[]
=
"50 30"
;
/* ----- ----- ----- */
static
char
PEN_dot
[]
=
"20"
;
/* -- -- -- -- -- -- */
static
char
PEN_dashdot
[]
=
"40 30 20 30"
;
/* ---- -- ---- -- */
static
char
PEN_dashdotdot
[]
=
"40 20 20 20 20 20"
;
/* ---- -- -- ---- */
static
char
PEN_alternate
[]
=
"1"
;
static
c
onst
c
har
PEN_dash
[]
=
"50 30"
;
/* ----- ----- ----- */
static
c
onst
c
har
PEN_dot
[]
=
"20"
;
/* -- -- -- -- -- -- */
static
c
onst
c
har
PEN_dashdot
[]
=
"40 30 20 30"
;
/* ---- -- ---- -- */
static
c
onst
c
har
PEN_dashdotdot
[]
=
"40 20 20 20 20 20"
;
/* ---- -- -- ---- */
static
c
onst
c
har
PEN_alternate
[]
=
"1"
;
/***********************************************************************
* SelectPen (WINEPS.@)
...
...
dlls/wineps/ps.c
View file @
cfc3943c
...
...
@@ -617,7 +617,7 @@ BOOL PSDRV_WriteIndexColorSpaceBegin(PSDRV_PDEVICE *physDev, int size)
BOOL
PSDRV_WriteIndexColorSpaceEnd
(
PSDRV_PDEVICE
*
physDev
)
{
char
buf
[]
=
">
\n
] setcolorspace
\n
"
;
static
const
char
buf
[]
=
">
\n
] setcolorspace
\n
"
;
return
PSDRV_WriteSpool
(
physDev
,
buf
,
sizeof
(
buf
)
-
1
);
}
...
...
@@ -643,17 +643,17 @@ BOOL PSDRV_WriteImageDict(PSDRV_PDEVICE *physDev, WORD depth, INT xDst, INT yDst
INT
widthDst
,
INT
heightDst
,
INT
widthSrc
,
INT
heightSrc
,
char
*
bits
,
BOOL
mask
)
{
const
char
start
[]
=
"%d %d translate
\n
%d %d scale
\n
<<
\n
"
static
const
char
start
[]
=
"%d %d translate
\n
%d %d scale
\n
<<
\n
"
" /ImageType 1
\n
/Width %d
\n
/Height %d
\n
/BitsPerComponent %d
\n
"
" /ImageMatrix [%d 0 0 %d 0 %d]
\n
"
;
const
char
decode1
[]
=
" /Decode [0 %d]
\n
"
;
const
char
decode3
[]
=
" /Decode [0 1 0 1 0 1]
\n
"
;
static
const
char
decode1
[]
=
" /Decode [0 %d]
\n
"
;
static
const
char
decode3
[]
=
" /Decode [0 1 0 1 0 1]
\n
"
;
const
char
end
[]
=
" /DataSource currentfile /ASCII85Decode filter /RunLengthDecode filter
\n
>> image
\n
"
;
const
char
endmask
[]
=
" /DataSource currentfile /ASCII85Decode filter /RunLengthDecode filter
\n
>> imagemask
\n
"
;
static
const
char
end
[]
=
" /DataSource currentfile /ASCII85Decode filter /RunLengthDecode filter
\n
>> image
\n
"
;
static
const
char
endmask
[]
=
" /DataSource currentfile /ASCII85Decode filter /RunLengthDecode filter
\n
>> imagemask
\n
"
;
const
char
endbits
[]
=
" /DataSource <%s>
\n
>> image
\n
"
;
static
const
char
endbits
[]
=
" /DataSource <%s>
\n
>> image
\n
"
;
char
*
buf
=
HeapAlloc
(
PSDRV_Heap
,
0
,
1000
);
...
...
@@ -775,10 +775,10 @@ BOOL PSDRV_WriteRectClip2(PSDRV_PDEVICE *physDev, CHAR *pszArrayName)
BOOL
PSDRV_WritePatternDict
(
PSDRV_PDEVICE
*
physDev
,
BITMAP
*
bm
,
BYTE
*
bits
)
{
const
char
start
[]
=
"<<
\n
/PaintType 1
\n
/PatternType 1
\n
/TilingType 1
\n
"
static
const
char
start
[]
=
"<<
\n
/PaintType 1
\n
/PatternType 1
\n
/TilingType 1
\n
"
"/BBox [0 0 %d %d]
\n
/XStep %d
\n
/YStep %d
\n
/PaintProc {
\n
begin
\n
"
;
const
char
end
[]
=
" end
\n
}
\n
>>
\n
matrix makepattern setpattern
\n
"
;
static
const
char
end
[]
=
" end
\n
}
\n
>>
\n
matrix makepattern setpattern
\n
"
;
char
*
buf
,
*
ptr
;
INT
w
,
h
,
x
,
y
;
COLORREF
map
[
2
];
...
...
@@ -809,10 +809,10 @@ BOOL PSDRV_WritePatternDict(PSDRV_PDEVICE *physDev, BITMAP *bm, BYTE *bits)
BOOL
PSDRV_WriteDIBPatternDict
(
PSDRV_PDEVICE
*
physDev
,
BITMAPINFO
*
bmi
,
UINT
usage
)
{
const
char
start
[]
=
"<<
\n
/PaintType 1
\n
/PatternType 1
\n
/TilingType 1
\n
"
static
const
char
start
[]
=
"<<
\n
/PaintType 1
\n
/PatternType 1
\n
/TilingType 1
\n
"
"/BBox [0 0 %d %d]
\n
/XStep %d
\n
/YStep %d
\n
/PaintProc {
\n
begin
\n
"
;
const
char
end
[]
=
" end
\n
}
\n
>>
\n
matrix makepattern setpattern
\n
"
;
static
const
char
end
[]
=
" end
\n
}
\n
>>
\n
matrix makepattern setpattern
\n
"
;
char
*
buf
,
*
ptr
;
BYTE
*
bits
;
INT
w
,
h
,
x
,
y
,
colours
;
...
...
dlls/wineps/psdrv.h
View file @
cfc3943c
...
...
@@ -308,7 +308,7 @@ typedef struct {
typedef
struct
{
INT
style
;
INT
width
;
c
har
*
dash
;
c
onst
char
*
dash
;
PSCOLOR
color
;
BOOL
set
;
}
PSPEN
;
...
...
dlls/wineps/type42.c
View file @
cfc3943c
...
...
@@ -142,7 +142,7 @@ TYPE42 *T42_download_header(PSDRV_PDEVICE *physDev, char *ps_name,
WORD
num_of_tables
=
sizeof
(
tables_templ
)
/
sizeof
(
tables_templ
[
0
])
-
1
;
char
*
buf
;
TYPE42
*
t42
;
const
char
start
[]
=
/* name, fontbbox */
static
const
char
start
[]
=
/* name, fontbbox */
"25 dict begin
\n
"
" /FontName /%s def
\n
"
" /Encoding 256 array 0 1 255{1 index exch /.notdef put} for
\n
"
...
...
@@ -155,10 +155,10 @@ TYPE42 *T42_download_header(PSDRV_PDEVICE *physDev, char *ps_name,
" /.notdef 0 def
\n
"
" currentdict end def
\n
"
" /sfnts [
\n
"
;
const
char
TT_offset_table
[]
=
"<00010000%04x%04x%04x%04x
\n
"
;
const
char
TT_table_dir_entry
[]
=
"%08lx%08lx%08lx%08lx
\n
"
;
const
char
storage
[]
=
"]
\n
havetype42gdir{pop}{{string} forall}ifelse
\n
"
;
const
char
end
[]
=
"] def
\n
"
static
const
char
TT_offset_table
[]
=
"<00010000%04x%04x%04x%04x
\n
"
;
static
const
char
TT_table_dir_entry
[]
=
"%08lx%08lx%08lx%08lx
\n
"
;
static
const
char
storage
[]
=
"]
\n
havetype42gdir{pop}{{string} forall}ifelse
\n
"
;
static
const
char
end
[]
=
"] def
\n
"
"havetype42gdir{/GlyphDirectory 256 dict def
\n
"
" sfnts 0 get dup %ld (locx) putinterval %ld (glfx) putinterval}if
\n
"
"currentdict end dup /FontName get exch definefont pop
\n
"
;
...
...
dlls/x11drv/wineclipsrv.c
View file @
cfc3943c
...
...
@@ -151,10 +151,10 @@ static char *progname; /* name this program was invoked by */
static
Window
g_win
=
0
;
/* the hidden clipboard server window */
static
GC
g_gc
=
0
;
static
c
har
*
g_szOutOfMemory
=
"Insufficient memory!
\n
"
;
static
c
onst
char
g_szOutOfMemory
[]
=
"Insufficient memory!
\n
"
;
/* X selection context info */
static
c
har
_CLIPBOARD
[]
=
"CLIPBOARD"
;
/* CLIPBOARD atom name */
static
c
onst
char
_CLIPBOARD
[]
=
"CLIPBOARD"
;
/* CLIPBOARD atom name */
static
int
g_selectionToAcquire
=
0
;
/* Masks for the selection to be acquired */
static
int
g_selectionAcquired
=
0
;
/* Contains the current selection masks */
static
int
g_clearAllSelections
=
0
;
/* If TRUE *all* selections are lost on SelectionClear */
...
...
dlls/x11drv/xrender.c
View file @
cfc3943c
...
...
@@ -634,7 +634,7 @@ static BOOL UploadGlyph(X11DRV_PDEVICE *physDev, int glyph)
TRACE
(
output
);
}
}
else
{
char
blks
[]
=
" .:;!o*#"
;
static
const
char
blks
[]
=
" .:;!o*#"
;
char
str
[
2
];
str
[
1
]
=
'\0'
;
...
...
programs/clock/main.c
View file @
cfc3943c
...
...
@@ -384,10 +384,10 @@ int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show
{
MSG
msg
;
WNDCLASS
class
;
char
szClassName
[]
=
"CLClass"
;
/* To make sure className >= 0x10000 */
char
szWinName
[]
=
"Clock"
;
static
const
char
szClassName
[]
=
"CLClass"
;
/* To make sure className >= 0x10000 */
static
const
char
szWinName
[]
=
"Clock"
;
/* Setup Globals */
memset
(
&
Globals
.
hFont
,
0
,
sizeof
(
Globals
.
hFont
));
Globals
.
bAnalog
=
TRUE
;
...
...
programs/cmdlgtst/cmdlgtst.c
View file @
cfc3943c
...
...
@@ -58,9 +58,9 @@ struct FlagTableEntry {
#define EXPORT
static
c
har
menuName
[]
=
"CmdlgtstMenu"
;
static
c
har
className
[]
=
"CmdlgtstClass"
;
static
char
windowName
[]
=
"Cmdlgtst Window"
;
static
c
onst
char
menuName
[]
=
"CmdlgtstMenu"
;
static
c
onst
char
className
[]
=
"CmdlgtstClass"
;
static
c
onst
c
har
windowName
[]
=
"Cmdlgtst Window"
;
/*
* global hInstance variable. This makes the code non-threadable,
...
...
@@ -80,7 +80,7 @@ static COLORREF cc_cr[16];
static
CHOOSECOLOR
cc
;
static
LOGFONT
cf_lf
;
static
CHOOSEFONT
cf
;
static
char
ofn_filepat
[]
=
"All Files (*.*)
\0
*.*
\0
Only Text Files (*.txt)
\0
*.txt
\0
"
;
static
c
onst
c
har
ofn_filepat
[]
=
"All Files (*.*)
\0
*.*
\0
Only Text Files (*.txt)
\0
*.txt
\0
"
;
static
char
ofn_result
[
1024
];
static
char
ofn_titleresult
[
128
];
static
OPENFILENAME
ofn
;
...
...
@@ -196,7 +196,7 @@ void mwi_File(HWND hWnd)
ofn
.
lStructSize
=
sizeof
(
OPENFILENAME
);
ofn
.
hwndOwner
=
hWnd
;
ofn
.
hInstance
=
g_hInstance
;
ofn
.
lpstrFilter
=
(
LPSTR
)
ofn_filepat
;
ofn
.
lpstrFilter
=
ofn_filepat
;
ofn
.
lpstrCustomFilter
=
0
;
ofn
.
nMaxCustFilter
=
0
;
ofn
.
nFilterIndex
=
0
;
...
...
programs/wcmd/batch.c
View file @
cfc3943c
...
...
@@ -22,9 +22,6 @@
void
WCMD_batch_command
(
char
*
line
);
extern
char
nyi
[];
extern
char
newline
[];
extern
char
version_string
[];
extern
int
echo_mode
;
extern
char
quals
[
MAX_PATH
],
param1
[
MAX_PATH
],
param2
[
MAX_PATH
];
extern
BATCH_CONTEXT
*
context
;
...
...
programs/wcmd/builtins.c
View file @
cfc3943c
...
...
@@ -46,10 +46,6 @@ struct env_stack *saved_environment;
extern
HINSTANCE
hinst
;
extern
char
*
inbuilt
[];
extern
char
nyi
[];
extern
char
newline
[];
extern
char
version_string
[];
extern
char
anykey
[];
extern
int
echo_mode
,
verify_mode
;
extern
char
quals
[
MAX_PATH
],
param1
[
MAX_PATH
],
param2
[
MAX_PATH
];
extern
BATCH_CONTEXT
*
context
;
...
...
@@ -1027,7 +1023,6 @@ int WCMD_volume (int mode, char *path) {
DWORD
count
,
serial
;
char
string
[
MAX_PATH
],
label
[
MAX_PATH
],
curdir
[
MAX_PATH
];
BOOL
status
;
static
char
syntax
[]
=
"Syntax Error
\n\n
"
;
if
(
lstrlen
(
path
)
==
0
)
{
status
=
GetCurrentDirectory
(
sizeof
(
curdir
),
curdir
);
...
...
@@ -1040,7 +1035,7 @@ static char syntax[] = "Syntax Error\n\n";
}
else
{
if
((
path
[
1
]
!=
':'
)
||
(
lstrlen
(
path
)
!=
2
))
{
WCMD_output_asis
(
syntax
);
WCMD_output_asis
(
"Syntax Error
\n\n
"
);
return
0
;
}
wsprintf
(
curdir
,
"%s
\\
"
,
path
);
...
...
programs/wcmd/directory.c
View file @
cfc3943c
...
...
@@ -35,10 +35,6 @@ char * WCMD_filesize64 (ULONGLONG free);
char
*
WCMD_strrev
(
char
*
buff
);
extern
char
nyi
[];
extern
char
newline
[];
extern
char
version_string
[];
extern
char
anykey
[];
extern
int
echo_mode
;
extern
char
quals
[
MAX_PATH
],
param1
[
MAX_PATH
],
param2
[
MAX_PATH
];
extern
DWORD
errorlevel
;
...
...
@@ -131,7 +127,6 @@ CONSOLE_SCREEN_BUFFER_INFO consoleInfo;
void
WCMD_list_directory
(
char
*
search_path
,
int
level
)
{
char
string
[
1024
],
datestring
[
32
],
timestring
[
32
];
char
mem_err
[]
=
"Memory Allocation Error"
;
char
*
p
;
char
real_path
[
MAX_PATH
];
WIN32_FIND_DATA
*
fd
;
...
...
@@ -193,7 +188,7 @@ ULARGE_INTEGER byte_count, file_size;
fd
=
realloc
(
fd
,
(
entry_count
+
1
)
*
sizeof
(
WIN32_FIND_DATA
));
if
(
fd
==
NULL
)
{
FindClose
(
hff
);
WCMD_output
(
mem_err
);
WCMD_output
(
"Memory Allocation Error"
);
return
;
}
}
while
(
FindNextFile
(
hff
,
(
fd
+
entry_count
))
!=
0
);
...
...
programs/wcmd/wcmd.h
View file @
cfc3943c
...
...
@@ -137,3 +137,9 @@ typedef struct {
/* Must be last in list */
#define WCMD_EXIT 38
/* Some standard messages */
extern
const
char
nyi
[];
extern
const
char
newline
[];
extern
const
char
version_string
[];
extern
const
char
anykey
[];
programs/wcmd/wcmdmain.c
View file @
cfc3943c
...
...
@@ -37,10 +37,10 @@ const char *inbuilt[] = {"ATTRIB", "CALL", "CD", "CHDIR", "CLS", "COPY", "CTTY",
HINSTANCE
hinst
;
DWORD
errorlevel
;
int
echo_mode
=
1
,
verify_mode
=
0
;
char
nyi
[]
=
"Not Yet Implemented
\n\n
"
;
char
newline
[]
=
"
\n
"
;
char
version_string
[]
=
"WCMD Version 0.17
\n\n
"
;
char
anykey
[]
=
"Press Return key to continue: "
;
c
onst
c
har
nyi
[]
=
"Not Yet Implemented
\n\n
"
;
c
onst
c
har
newline
[]
=
"
\n
"
;
c
onst
c
har
version_string
[]
=
"WCMD Version 0.17
\n\n
"
;
c
onst
c
har
anykey
[]
=
"Press Return key to continue: "
;
char
quals
[
MAX_PATH
],
param1
[
MAX_PATH
],
param2
[
MAX_PATH
];
BATCH_CONTEXT
*
context
=
NULL
;
...
...
programs/winetest/main.c
View file @
cfc3943c
...
...
@@ -321,7 +321,8 @@ get_subtests (const char *tempdir, struct wine_test *test, int id)
FILE
*
subfile
;
size_t
total
;
char
buffer
[
8192
],
*
index
;
const
char
header
[]
=
"Valid test names:"
,
seps
[]
=
"
\r\n
"
;
static
const
char
header
[]
=
"Valid test names:"
;
static
const
char
seps
[]
=
"
\r\n
"
;
int
allocated
;
test
->
subtest_count
=
0
;
...
...
programs/winetest/send.c
View file @
cfc3943c
...
...
@@ -113,15 +113,15 @@ send_file (const char *name)
/* RFC 2068 */
#define SEP "-"
const
char
head
[]
=
"POST /submit HTTP/1.0
\r\n
"
static
const
char
head
[]
=
"POST /submit HTTP/1.0
\r\n
"
"Host: test.winehq.org
\r\n
"
"User-Agent: Winetest Shell
\r\n
"
"Content-Type: multipart/form-data; boundary="
SEP
"
\r\n
"
"Content-Length: %u
\r\n\r\n
"
;
const
char
body1
[]
=
"--"
SEP
"
\r\n
"
static
const
char
body1
[]
=
"--"
SEP
"
\r\n
"
"Content-Disposition: form-data; name=reportfile; filename=
\"
%s
\"\r\n
"
"Content-Type: application/octet-stream
\r\n\r\n
"
;
const
char
body2
[]
=
"
\r\n
--"
SEP
"
\r\n
"
static
const
char
body2
[]
=
"
\r\n
--"
SEP
"
\r\n
"
"Content-Disposition: form-data; name=submit
\r\n\r\n
"
"Upload File
\r\n
"
"--"
SEP
"--
\r\n
"
;
...
...
programs/winhelp/string.c
View file @
cfc3943c
...
...
@@ -20,15 +20,15 @@
/* Class names */
char
MAIN_WIN_CLASS_NAME
[]
=
"MS_WINHELP"
;
char
BUTTON_BOX_WIN_CLASS_NAME
[]
=
"WHButtonBox"
;
char
TEXT_WIN_CLASS_NAME
[]
=
"WHText"
;
char
SHADOW_WIN_CLASS_NAME
[]
=
"WHShadow"
;
char
HISTORY_WIN_CLASS_NAME
[]
=
"WHHistory"
;
char
STRING_BUTTON
[]
=
"BUTTON"
;
c
onst
c
har
MAIN_WIN_CLASS_NAME
[]
=
"MS_WINHELP"
;
c
onst
c
har
BUTTON_BOX_WIN_CLASS_NAME
[]
=
"WHButtonBox"
;
c
onst
c
har
TEXT_WIN_CLASS_NAME
[]
=
"WHText"
;
c
onst
c
har
SHADOW_WIN_CLASS_NAME
[]
=
"WHShadow"
;
c
onst
c
har
HISTORY_WIN_CLASS_NAME
[]
=
"WHHistory"
;
c
onst
c
har
STRING_BUTTON
[]
=
"BUTTON"
;
/* Resource names */
char
STRING_DIALOG_TEST
[]
=
"DIALOG_TEST"
;
c
onst
c
har
STRING_DIALOG_TEST
[]
=
"DIALOG_TEST"
;
/* Local Variables: */
/* c-file-style: "GNU" */
...
...
programs/winhelp/winhelp.h
View file @
cfc3943c
...
...
@@ -142,14 +142,14 @@ INT WINHELP_MessageBoxIDS_s(UINT, LPCSTR, UINT, WORD);
HLPFILE
*
WINHELP_LookupHelpFile
(
LPCSTR
lpszFile
);
HLPFILE_WINDOWINFO
*
WINHELP_GetWindowInfo
(
HLPFILE
*
hlpfile
,
LPCSTR
name
);
extern
char
MAIN_WIN_CLASS_NAME
[];
extern
char
BUTTON_BOX_WIN_CLASS_NAME
[];
extern
char
TEXT_WIN_CLASS_NAME
[];
extern
char
SHADOW_WIN_CLASS_NAME
[];
extern
char
HISTORY_WIN_CLASS_NAME
[];
extern
char
STRING_BUTTON
[];
extern
char
STRING_MENU_Xx
[];
extern
char
STRING_DIALOG_TEST
[];
extern
c
onst
c
har
MAIN_WIN_CLASS_NAME
[];
extern
c
onst
c
har
BUTTON_BOX_WIN_CLASS_NAME
[];
extern
c
onst
c
har
TEXT_WIN_CLASS_NAME
[];
extern
c
onst
c
har
SHADOW_WIN_CLASS_NAME
[];
extern
c
onst
c
har
HISTORY_WIN_CLASS_NAME
[];
extern
c
onst
c
har
STRING_BUTTON
[];
extern
c
onst
c
har
STRING_MENU_Xx
[];
extern
c
onst
c
har
STRING_DIALOG_TEST
[];
#endif
/* Buttons */
...
...
tools/widl/widl.c
View file @
cfc3943c
...
...
@@ -77,7 +77,7 @@ static char usage[] =
" * 0x20 Preprocessor yacc trace
\n
"
;
char
version_string
[]
=
"Wine IDL Compiler Version "
WIDL_FULLVERSION
"
\n
"
static
const
char
version_string
[]
=
"Wine IDL Compiler Version "
WIDL_FULLVERSION
"
\n
"
"Copyright 2002 Ove Kaaven
\n
"
;
int
win32
=
1
;
...
...
tools/wmc/mcl.c
View file @
cfc3943c
...
...
@@ -182,7 +182,7 @@ static char *xlatebuffer = NULL;
static
int
fill_inputbuffer
(
void
)
{
int
n
;
static
char
err_fatalread
[]
=
"Fatal: reading input failed"
;
static
c
onst
c
har
err_fatalread
[]
=
"Fatal: reading input failed"
;
static
int
endian
=
-
1
;
if
(
!
inputbuffer
)
...
...
tools/wmc/mcy.y
View file @
cfc3943c
...
...
@@ -519,7 +519,7 @@ static void test_id(int id)
static int check_languages(node_t *head)
{
static char err_missing[] = "Missing definition for language 0x%x; MessageID %d, facility 0x%x, severity 0x%x";
static c
onst c
har err_missing[] = "Missing definition for language 0x%x; MessageID %d, facility 0x%x, severity 0x%x";
node_t *ndp;
int nm = 0;
msg_t *msg = NULL;
...
...
tools/wmc/utils.c
View file @
cfc3943c
...
...
@@ -211,7 +211,7 @@ int unistricmp(const WCHAR *s1, const WCHAR *s2)
{
int
i
;
int
once
=
0
;
static
char
warn
[]
=
"Don't know the uppercase equivalent of non acsii characters;"
static
c
onst
c
har
warn
[]
=
"Don't know the uppercase equivalent of non acsii characters;"
"comparison might yield wrong results"
;
while
(
*
s1
&&
*
s2
)
{
...
...
@@ -252,4 +252,3 @@ int unistrcmp(const WCHAR *s1, const WCHAR *s2)
return
*
s1
-
*
s2
;
}
tools/wrc/readres.c
View file @
cfc3943c
...
...
@@ -152,7 +152,7 @@ enum res_e res_type_from_id(const name_id_t *nid)
static
resource_t
*
read_res32
(
FILE
*
fp
)
{
static
char
wrong_format
[]
=
"Wrong resfile format (32bit)"
;
static
c
onst
c
har
wrong_format
[]
=
"Wrong resfile format (32bit)"
;
DWORD
ressize
;
DWORD
hdrsize
;
DWORD
totsize
;
...
...
tools/wrc/wrc.c
View file @
cfc3943c
...
...
@@ -103,7 +103,7 @@ static char usage[] =
"with -o, then the output is written to
\"
wrc.tab.res
\"\n
"
;
char
version_string
[]
=
"Wine Resource Compiler Version "
WRC_FULLVERSION
"
\n
"
static
const
char
version_string
[]
=
"Wine Resource Compiler Version "
WRC_FULLVERSION
"
\n
"
"Copyright 1998-2000 Bertho A. Stultiens
\n
"
" 1994 Martin von Loewis
\n
"
;
...
...
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