Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dec1657a
Commit
dec1657a
authored
May 29, 2007
by
msvensson@pilot.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge pilot.(none):/data/msvensson/mysql/bug27597/my51-bug27597
into pilot.(none):/data/msvensson/mysql/mysql-5.1-new-maint
parents
8a9fd599
5ceeb932
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
mysys/my_init.c
mysys/my_init.c
+36
-0
No files found.
mysys/my_init.c
View file @
dec1657a
...
...
@@ -267,6 +267,34 @@ void my_parameter_handler(const wchar_t * expression, const wchar_t * function,
}
#ifdef __MSVC_RUNTIME_CHECKS
#include <rtcapi.h>
/* Turn off runtime checks for 'handle_rtc_failure' */
#pragma runtime_checks("", off)
/*
handle_rtc_failure
Catch the RTC error and dump it to stderr
*/
int
handle_rtc_failure
(
int
err_type
,
const
char
*
file
,
int
line
,
const
char
*
module
,
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
fprintf
(
stderr
,
"Error:"
);
vfprintf
(
stderr
,
format
,
args
);
fprintf
(
stderr
,
" At %s:%d
\n
"
,
file
,
line
);
va_end
(
args
);
(
void
)
fflush
(
stderr
);
return
0
;
/* Error is handled */
}
#pragma runtime_checks("", on)
#endif
static
void
my_win_init
(
void
)
{
HKEY
hSoftMysql
;
...
...
@@ -297,6 +325,14 @@ static void my_win_init(void)
_set_invalid_parameter_handler
(
my_parameter_handler
);
#endif
#endif
#ifdef __MSVC_RUNTIME_CHECKS
/*
Install handler to send RTC (Runtime Error Check) warnings
to log file
*/
_RTC_SetErrorFunc
(
handle_rtc_failure
);
#endif
_tzset
();
/* apre la chiave HKEY_LOCAL_MACHINES\software\MySQL */
...
...
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