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
55e845d1
Commit
55e845d1
authored
May 23, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed most inclusions of options.h.
Removed a few no longer used PROFILE_* functions.
parent
8c08ceb5
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
32 additions
and
125 deletions
+32
-125
module.c
dlls/winedos/module.c
+0
-1
event.c
dlls/x11drv/event.c
+0
-1
directory.c
files/directory.c
+0
-1
dos_fs.c
files/dos_fs.c
+0
-1
drive.c
files/drive.c
+0
-1
profile.c
files/profile.c
+0
-69
file.h
include/file.h
+7
-0
options.h
include/options.h
+0
-17
loadorder.c
loader/loadorder.c
+0
-1
main.c
misc/main.c
+0
-17
registry.c
misc/registry.c
+5
-4
dosconf.c
msdos/dosconf.c
+0
-1
int11.c
msdos/int11.c
+1
-1
int1a.c
msdos/int1a.c
+0
-1
int21.c
msdos/int21.c
+0
-1
ioports.c
msdos/ioports.c
+1
-1
font.c
objects/font.c
+0
-1
ole2nls.c
ole/ole2nls.c
+0
-1
string.c
programs/progman/string.c
+0
-3
process.c
scheduler/process.c
+18
-1
console.c
win32/console.c
+0
-1
No files found.
dlls/winedos/module.c
View file @
55e845d1
...
...
@@ -45,7 +45,6 @@
#include "wine/debug.h"
#include "dosexe.h"
#include "dosvm.h"
#include "options.h"
#include "vga.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
module
);
...
...
dlls/x11drv/event.c
View file @
55e845d1
...
...
@@ -40,7 +40,6 @@
#include "dce.h"
#include "wine/debug.h"
#include "input.h"
#include "options.h"
#include "win.h"
#include "winpos.h"
#include "windef.h"
...
...
files/directory.c
View file @
55e845d1
...
...
@@ -43,7 +43,6 @@
#include "file.h"
#include "heap.h"
#include "msdos.h"
#include "options.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dosfs
);
...
...
files/dos_fs.c
View file @
55e845d1
...
...
@@ -49,7 +49,6 @@
#include "heap.h"
#include "msdos.h"
#include "ntddk.h"
#include "options.h"
#include "wine/server.h"
#include "msvcrt/excpt.h"
...
...
files/drive.c
View file @
55e845d1
...
...
@@ -60,7 +60,6 @@
#include "file.h"
#include "heap.h"
#include "msdos.h"
#include "options.h"
#include "task.h"
#include "wine/debug.h"
#include "wine/server.h"
...
...
files/profile.c
View file @
55e845d1
...
...
@@ -39,7 +39,6 @@
#include "file.h"
#include "heap.h"
#include "wine/debug.h"
#include "options.h"
#include "wine/server.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
profile
);
...
...
@@ -951,50 +950,6 @@ int PROFILE_GetWineIniString( const char *section, const char *key_name,
}
/***********************************************************************
* PROFILE_EnumWineIniString
*
* Get a config string from the wine.ini file.
*/
BOOL
PROFILE_EnumWineIniString
(
const
char
*
section
,
int
index
,
char
*
name
,
int
name_len
,
char
*
buffer
,
int
len
)
{
char
tmp
[
PROFILE_MAX_LINE_LEN
];
HKEY
hkey
;
DWORD
err
,
type
;
DWORD
count
=
sizeof
(
tmp
);
if
(
RegOpenKeyA
(
wine_profile_key
,
section
,
&
hkey
))
return
FALSE
;
err
=
RegEnumValueA
(
hkey
,
index
,
name
,
(
DWORD
*
)
&
name_len
,
NULL
,
&
type
,
tmp
,
&
count
);
RegCloseKey
(
hkey
);
if
(
!
err
)
{
PROFILE_CopyEntry
(
buffer
,
tmp
,
len
,
TRUE
);
TRACE
(
"('%s',%d): returning '%s'='%s'
\n
"
,
section
,
index
,
name
,
buffer
);
}
return
!
err
;
}
/***********************************************************************
* PROFILE_GetWineIniInt
*
* Get a config integer from the wine.ini file.
*/
int
PROFILE_GetWineIniInt
(
const
char
*
section
,
const
char
*
key_name
,
int
def
)
{
char
buffer
[
20
];
char
*
p
;
long
result
;
PROFILE_GetWineIniString
(
section
,
key_name
,
""
,
buffer
,
sizeof
(
buffer
)
);
if
(
!
buffer
[
0
])
return
def
;
/* FIXME: strtol wrong ?? see GetPrivateProfileIntA */
result
=
strtol
(
buffer
,
&
p
,
0
);
return
(
p
==
buffer
)
?
0
/* No digits at all */
:
(
int
)
result
;
}
/******************************************************************************
*
* int PROFILE_GetWineIniBool(
...
...
@@ -1148,30 +1103,6 @@ void PROFILE_UsageWineIni(void)
/* RTFM, so to say */
}
/***********************************************************************
* PROFILE_GetStringItem
*
* Convenience function that turns a string 'xxx, yyy, zzz' into
* the 'xxx\0 yyy, zzz' and returns a pointer to the 'yyy, zzz'.
*/
char
*
PROFILE_GetStringItem
(
char
*
start
)
{
char
*
lpchX
,
*
lpch
;
for
(
lpchX
=
start
,
lpch
=
NULL
;
*
lpchX
!=
'\0'
;
lpchX
++
)
{
if
(
*
lpchX
==
','
)
{
if
(
lpch
)
*
lpch
=
'\0'
;
else
*
lpchX
=
'\0'
;
while
(
*
(
++
lpchX
)
)
if
(
!
PROFILE_isspace
(
*
lpchX
)
)
return
lpchX
;
}
else
if
(
PROFILE_isspace
(
*
lpchX
)
&&
!
lpch
)
lpch
=
lpchX
;
else
lpch
=
NULL
;
}
if
(
lpch
)
*
lpch
=
'\0'
;
return
NULL
;
}
/********************* API functions **********************************/
...
...
include/file.h
View file @
55e845d1
...
...
@@ -107,6 +107,13 @@ extern int DOSFS_FindNext( const char *path, const char *short_mask,
const
char
*
long_mask
,
int
drive
,
BYTE
attr
,
int
skip
,
WIN32_FIND_DATAA
*
entry
);
/* profile.c */
extern
int
PROFILE_LoadWineIni
(
void
);
extern
void
PROFILE_UsageWineIni
(
void
);
extern
int
PROFILE_GetWineIniString
(
const
char
*
section
,
const
char
*
key_name
,
const
char
*
def
,
char
*
buffer
,
int
len
);
extern
int
PROFILE_GetWineIniBool
(
char
const
*
section
,
char
const
*
key_name
,
int
def
);
/* win32/device.c */
extern
HANDLE
DEVICE_Open
(
LPCSTR
filename
,
DWORD
access
,
LPSECURITY_ATTRIBUTES
sa
);
...
...
include/options.h
View file @
55e845d1
...
...
@@ -25,25 +25,8 @@
extern
const
char
*
argv0
;
extern
const
char
*
full_argv0
;
extern
unsigned
int
server_startticks
;
extern
void
OPTIONS_Usage
(
void
)
WINE_NORETURN
;
extern
void
OPTIONS_ParseOptions
(
char
*
argv
[]
);
/* Profile functions */
extern
int
PROFILE_LoadWineIni
(
void
);
extern
void
PROFILE_UsageWineIni
(
void
);
extern
int
PROFILE_GetWineIniString
(
const
char
*
section
,
const
char
*
key_name
,
const
char
*
def
,
char
*
buffer
,
int
len
);
extern
BOOL
PROFILE_EnumWineIniString
(
const
char
*
section
,
int
index
,
char
*
name
,
int
name_len
,
char
*
buffer
,
int
len
);
extern
int
PROFILE_GetWineIniInt
(
const
char
*
section
,
const
char
*
key_name
,
int
def
);
extern
int
PROFILE_GetWineIniBool
(
char
const
*
section
,
char
const
*
key_name
,
int
def
);
extern
char
*
PROFILE_GetStringItem
(
char
*
);
/* Version functions */
extern
void
VERSION_ParseWinVersion
(
const
char
*
arg
);
extern
void
VERSION_ParseDosVersion
(
const
char
*
arg
);
#endif
/* __WINE_OPTIONS_H */
loader/loadorder.c
View file @
55e845d1
...
...
@@ -27,7 +27,6 @@
#include "windef.h"
#include "winreg.h"
#include "winerror.h"
#include "options.h"
#include "file.h"
#include "module.h"
#include "wine/debug.h"
...
...
misc/main.c
View file @
55e845d1
...
...
@@ -35,7 +35,6 @@
#include "ntddk.h"
#include "winnls.h"
#include "winerror.h"
#include "options.h"
#include "wine/debug.h"
WINE_DECLARE_DEBUG_CHANNEL
(
file
);
...
...
@@ -61,19 +60,3 @@ FARPROC16 WINAPI FileCDR16(FARPROC16 x)
FIXME_
(
file
)(
"(0x%8x): stub
\n
"
,
(
int
)
x
);
return
(
FARPROC16
)
TRUE
;
}
/***********************************************************************
* GetTickCount (USER.13)
* GetCurrentTime (USER.15)
* GetTickCount (KERNEL32.@)
* GetSystemMSecCount (SYSTEM.6)
*
* Returns the number of milliseconds, modulo 2^32, since the start
* of the wineserver.
*/
DWORD
WINAPI
GetTickCount
(
void
)
{
struct
timeval
t
;
gettimeofday
(
&
t
,
NULL
);
return
((
t
.
tv_sec
*
1000
)
+
(
t
.
tv_usec
/
1000
))
-
server_startticks
;
}
misc/registry.c
View file @
55e845d1
...
...
@@ -56,7 +56,6 @@
#include "wine/server.h"
#include "wine/unicode.h"
#include "file.h"
#include "options.h"
#include "wine/debug.h"
...
...
@@ -1047,10 +1046,12 @@ static void _save_at_exit(HKEY hkey,LPCSTR path)
static
void
_init_registry_saving
(
HKEY
hkey_users_default
)
{
int
all
;
int
period
;
int
period
=
0
;
char
buffer
[
20
];
all
=
PROFILE_GetWineIniBool
(
"registry"
,
"SaveOnlyUpdatedKeys"
,
1
);
period
=
PROFILE_GetWineIniInt
(
"registry"
,
"PeriodicSave"
,
0
);
all
=
!
PROFILE_GetWineIniBool
(
"registry"
,
"SaveOnlyUpdatedKeys"
,
1
);
PROFILE_GetWineIniString
(
"registry"
,
"PeriodicSave"
,
""
,
buffer
,
sizeof
(
buffer
)
);
if
(
buffer
[
0
])
period
=
atoi
(
buffer
);
/* set saving level (0 for saving everything, 1 for saving only modified keys) */
_set_registry_levels
(
1
,
!
all
,
period
*
1000
);
...
...
msdos/dosconf.c
View file @
55e845d1
...
...
@@ -31,7 +31,6 @@
#include "file.h"
#include "miscemu.h"
#include "msdos.h"
#include "options.h"
#include "wine/debug.h"
...
...
msdos/int11.c
View file @
55e845d1
...
...
@@ -27,8 +27,8 @@
#include "windef.h"
#include "miscemu.h"
#include "msdos.h"
#include "file.h"
#include "wine/debug.h"
#include "options.h"
/**********************************************************************
* INT_Int11Handler (WPROCS.117)
...
...
msdos/int1a.c
View file @
55e845d1
...
...
@@ -21,7 +21,6 @@
#include <time.h>
#include <sys/time.h>
#include <stdlib.h>
#include "options.h"
#include "miscemu.h"
#include "wine/debug.h"
...
...
msdos/int21.c
View file @
55e845d1
...
...
@@ -49,7 +49,6 @@
#include "file.h"
#include "callback.h"
#include "msdos.h"
#include "options.h"
#include "miscemu.h"
#include "task.h"
#include "wine/debug.h"
...
...
msdos/ioports.c
View file @
55e845d1
...
...
@@ -35,7 +35,7 @@
#include <unistd.h>
#include "windef.h"
#include "callback.h"
#include "
options
.h"
#include "
file
.h"
#include "miscemu.h"
#include "wine/debug.h"
...
...
objects/font.c
View file @
55e845d1
...
...
@@ -26,7 +26,6 @@
#include "winnls.h"
#include "wine/unicode.h"
#include "font.h"
#include "options.h"
#include "wine/debug.h"
#include "gdi.h"
...
...
ole/ole2nls.c
View file @
55e845d1
...
...
@@ -34,7 +34,6 @@
#include "wingdi.h"
#include "winuser.h"
#include "wine/unicode.h"
#include "options.h"
#include "winver.h"
#include "winnls.h"
#include "winreg.h"
...
...
programs/progman/string.c
View file @
55e845d1
...
...
@@ -19,9 +19,6 @@
*/
#include "windows.h"
#ifdef WINELIB
#include "options.h"
#endif
#include "progman.h"
/* Class names */
...
...
scheduler/process.c
View file @
55e845d1
...
...
@@ -115,7 +115,7 @@ static char *main_exe_name_ptr = main_exe_name;
static
HANDLE
main_exe_file
;
static
int
main_create_flags
;
unsigned
int
server_startticks
;
static
unsigned
int
server_startticks
;
/* memory/environ.c */
extern
struct
_ENVDB
*
ENV_InitStartupInfo
(
handle_t
info_handle
,
size_t
info_size
,
...
...
@@ -1784,6 +1784,23 @@ BOOL WINAPI AreFileApisANSI(void)
}
/***********************************************************************
* GetTickCount (USER.13)
* GetCurrentTime (USER.15)
* GetTickCount (KERNEL32.@)
* GetSystemMSecCount (SYSTEM.6)
*
* Returns the number of milliseconds, modulo 2^32, since the start
* of the wineserver.
*/
DWORD
WINAPI
GetTickCount
(
void
)
{
struct
timeval
t
;
gettimeofday
(
&
t
,
NULL
);
return
((
t
.
tv_sec
*
1000
)
+
(
t
.
tv_usec
/
1000
))
-
server_startticks
;
}
/**********************************************************************
* TlsAlloc [KERNEL32.@] Allocates a TLS index.
*
...
...
win32/console.c
View file @
55e845d1
...
...
@@ -43,7 +43,6 @@
#include "wine/server.h"
#include "wine/exception.h"
#include "wine/debug.h"
#include "options.h"
#include "msvcrt/excpt.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
console
);
...
...
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