Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
07b53de0
Commit
07b53de0
authored
Sep 23, 2005
by
Vijay Kiran Kamuju
Committed by
Alexandre Julliard
Sep 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of _get_sbh_threshold and _set_sbh_threshold
functions.
parent
106af867
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
heap.c
dlls/msvcrt/heap.c
+22
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
malloc.h
include/msvcrt/malloc.h
+3
-0
No files found.
dlls/msvcrt/heap.c
View file @
07b53de0
...
...
@@ -39,6 +39,8 @@ static int MSVCRT_new_mode;
/* FIXME - According to documentation it should be 8*1024, at runtime it returns 16 */
static
unsigned
int
MSVCRT_amblksiz
=
16
;
/* FIXME - According to documentation it should be 480 bytes, at runtime default is 0 */
static
size_t
MSVCRT_sbh_threshold
=
0
;
/*********************************************************************
* ??2@YAPAXI@Z (MSVCRT.@)
...
...
@@ -291,3 +293,23 @@ unsigned int* __p__amblksiz(void)
{
return
&
MSVCRT_amblksiz
;
}
/*********************************************************************
* _get_sbh_threshold (MSVCRT.@)
*/
size_t
_get_sbh_threshold
(
void
)
{
return
MSVCRT_sbh_threshold
;
}
/*********************************************************************
* _set_sbh_threshold (MSVCRT.@)
*/
int
_set_sbh_threshold
(
size_t
threshold
)
{
if
(
threshold
>
1016
)
return
0
;
else
MSVCRT_sbh_threshold
=
threshold
;
return
1
;
}
dlls/msvcrt/msvcrt.spec
View file @
07b53de0
...
...
@@ -248,7 +248,7 @@
@ cdecl _futime(long ptr)
@ cdecl _gcvt(double long str)
@ cdecl _get_osfhandle(long)
@
stub _get_sbh_threshold #
()
@
cdecl _get_sbh_threshold
()
@ cdecl _getch()
@ cdecl _getche()
@ cdecl _getcwd(str long)
...
...
@@ -424,7 +424,7 @@
@ cdecl _searchenv(str str ptr)
@ stdcall -i386 _seh_longjmp_unwind(ptr)
@ cdecl _set_error_mode(long)
@
stub _set_sbh_threshold #
(long)
@
cdecl _set_sbh_threshold
(long)
@ cdecl _seterrormode(long)
@ cdecl -i386 _setjmp(ptr) MSVCRT__setjmp
@ cdecl -i386 _setjmp3(ptr long) MSVCRT__setjmp3
...
...
include/msvcrt/malloc.h
View file @
07b53de0
...
...
@@ -71,6 +71,9 @@ void free(void*);
void
*
malloc
(
size_t
);
void
*
realloc
(
void
*
,
size_t
);
size_t
_get_sbh_threshold
(
void
);
int
_set_sbh_threshold
(
size_t
size
);
#ifdef __cplusplus
}
#endif
...
...
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