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
9c4be83a
Commit
9c4be83a
authored
Mar 27, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _set_output_format implementation.
parent
57fb8920
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
36 additions
and
16 deletions
+36
-16
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
misc.c
dlls/msvcrt/misc.c
+16
-1
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
printf.h
dlls/msvcrt/printf.h
+13
-10
stdio.h
include/msvcrt/stdio.h
+1
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
9c4be83a
...
...
@@ -1270,7 +1270,7 @@
@ cdecl _set_fmode(long) msvcrt._set_fmode
@ cdecl _set_invalid_parameter_handler(ptr) msvcrt._set_invalid_parameter_handler
@ stub _set_malloc_crt_max_wait
@
stub
_set_output_format
@
cdecl _set_output_format(long) msvcrt.
_set_output_format
@ cdecl _set_printf_count_output(long) msvcrt._set_printf_count_output
@ cdecl _set_purecall_handler(ptr) msvcrt._set_purecall_handler
@ cdecl _seterrormode(long) msvcrt._seterrormode
...
...
dlls/msvcr110/msvcr110.spec
View file @
9c4be83a
...
...
@@ -1632,7 +1632,7 @@
@ cdecl _set_fmode(long) msvcrt._set_fmode
@ cdecl _set_invalid_parameter_handler(ptr) msvcrt._set_invalid_parameter_handler
@ stub _set_malloc_crt_max_wait
@
stub
_set_output_format
@
cdecl _set_output_format(long) msvcrt.
_set_output_format
@ cdecl _set_printf_count_output(long) msvcrt._set_printf_count_output
@ cdecl _set_purecall_handler(ptr) msvcrt._set_purecall_handler
@ cdecl _seterrormode(long) msvcrt._seterrormode
...
...
dlls/msvcr80/msvcr80.spec
View file @
9c4be83a
...
...
@@ -931,7 +931,7 @@
@ cdecl _set_fmode(long) msvcrt._set_fmode
@ cdecl _set_invalid_parameter_handler(ptr) msvcrt._set_invalid_parameter_handler
@ stub _set_malloc_crt_max_wait
@
stub
_set_output_format
@
cdecl _set_output_format(long) msvcrt.
_set_output_format
@ cdecl _set_printf_count_output(long) msvcrt._set_printf_count_output
@ cdecl _set_purecall_handler(ptr) msvcrt._set_purecall_handler
@ cdecl _set_sbh_threshold(long) msvcrt._set_sbh_threshold
...
...
dlls/msvcr90/msvcr90.spec
View file @
9c4be83a
...
...
@@ -924,7 +924,7 @@
@ cdecl _set_fmode(long) msvcrt._set_fmode
@ cdecl _set_invalid_parameter_handler(ptr) msvcrt._set_invalid_parameter_handler
@ stub _set_malloc_crt_max_wait
@
stub
_set_output_format
@
cdecl _set_output_format(long) msvcrt.
_set_output_format
@ cdecl _set_printf_count_output(long) msvcrt._set_printf_count_output
@ cdecl _set_purecall_handler(ptr) msvcrt._set_purecall_handler
@ cdecl _set_sbh_threshold(long) msvcrt._set_sbh_threshold
...
...
dlls/msvcrt/misc.c
View file @
9c4be83a
...
...
@@ -29,6 +29,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
static
unsigned
int
output_format
;
/*********************************************************************
* _beep (MSVCRT.@)
...
...
@@ -283,7 +284,21 @@ void CDECL MSVCRT_qsort_s(void *base, MSVCRT_size_t nmemb, MSVCRT_size_t size,
*/
unsigned
int
CDECL
_get_output_format
(
void
)
{
return
0
;
return
output_format
;
}
/*********************************************************************
* _set_output_format (MSVCRT.@)
*/
unsigned
int
CDECL
_set_output_format
(
unsigned
int
new_output_format
)
{
unsigned
int
ret
=
output_format
;
if
(
!
MSVCRT_CHECK_PMT
(
new_output_format
==
0
||
new_output_format
==
MSVCRT__TWO_DIGIT_EXPONENT
))
return
ret
;
output_format
=
new_output_format
;
return
ret
;
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.h
View file @
9c4be83a
...
...
@@ -982,6 +982,7 @@ int __cdecl MSVCRT__toupper_l(int,MSVCRT__locale_t);
int
__cdecl
MSVCRT__tolower_l
(
int
,
MSVCRT__locale_t
);
int
__cdecl
MSVCRT__strnicoll_l
(
const
char
*
,
const
char
*
,
MSVCRT_size_t
,
MSVCRT__locale_t
);
int
__cdecl
MSVCRT_strncoll_l
(
const
char
*
,
const
char
*
,
MSVCRT_size_t
,
MSVCRT__locale_t
);
unsigned
int
__cdecl
_get_output_format
(
void
);
/* Maybe one day we'll enable the invalid parameter handlers with the full set of information (msvcrXXd)
* #define MSVCRT_INVALID_PMT(x) MSVCRT_call_invalid_parameter_handler(x, __FUNCTION__, __FILE__, __LINE__, 0)
...
...
dlls/msvcrt/msvcrt.spec
View file @
9c4be83a
...
...
@@ -894,7 +894,7 @@
@ cdecl _set_error_mode(long)
# stub _set_fileinfo(long)
@ cdecl _set_fmode(long)
# stub
_set_output_format(long)
@ cdecl
_set_output_format(long)
@ cdecl _set_sbh_threshold(long)
@ cdecl _seterrormode(long)
@ cdecl -arch=i386,x86_64,arm -norelay _setjmp(ptr) MSVCRT__setjmp
...
...
dlls/msvcrt/printf.h
View file @
9c4be83a
...
...
@@ -307,22 +307,25 @@ static inline void FUNC_NAME(pf_fixup_exponent)(char *buf)
if
(
tmp
[
0
]
&&
(
tmp
[
1
]
==
'+'
||
tmp
[
1
]
==
'-'
)
&&
isdigit
(
tmp
[
2
])
&&
isdigit
(
tmp
[
3
]))
{
char
final
;
BOOL
two_digit_exp
=
(
_get_output_format
()
==
MSVCRT__TWO_DIGIT_EXPONENT
);
tmp
+=
2
;
if
(
isdigit
(
tmp
[
2
]))
{
if
(
two_digit_exp
&&
tmp
[
0
]
==
'0'
)
{
tmp
[
0
]
=
tmp
[
1
];
tmp
[
1
]
=
tmp
[
2
];
tmp
[
2
]
=
tmp
[
3
];
}
if
(
isdigit
(
tmp
[
4
]))
return
;
/* Exponent already 3 digits */
}
else
if
(
two_digit_exp
)
{
return
;
}
tmp
+=
2
;
final
=
tmp
[
2
];
tmp
[
3
]
=
tmp
[
2
];
tmp
[
2
]
=
tmp
[
1
];
tmp
[
1
]
=
tmp
[
0
];
tmp
[
0
]
=
'0'
;
if
(
final
==
'\0'
)
{
tmp
[
3
]
=
'\0'
;
if
(
buf
[
0
]
==
' '
)
memmove
(
buf
,
buf
+
1
,
(
tmp
-
buf
)
+
3
);
}
}
}
...
...
include/msvcrt/stdio.h
View file @
9c4be83a
...
...
@@ -182,6 +182,7 @@ int __cdecl vprintf_s(const char*,__ms_va_list);
int
__cdecl
vsprintf
(
char
*
,
const
char
*
,
__ms_va_list
);
int
__cdecl
vsprintf_s
(
char
*
,
size_t
,
const
char
*
,
__ms_va_list
);
unsigned
int
__cdecl
_get_output_format
(
void
);
unsigned
int
__cdecl
_set_output_format
(
void
);
#ifndef _WSTDIO_DEFINED
#define _WSTDIO_DEFINED
...
...
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