Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
5ca35747
Commit
5ca35747
authored
Jan 06, 2006
by
John van Groningen
Browse files
port to 64 bit windows
parent
6ae6d001
Changes
1
Hide whitespace changes
Inline
Side-by-side
main/Windows/thread_message.c
View file @
5ca35747
...
...
@@ -48,7 +48,7 @@ void install_compiler_result_handler (void)
}
int
start_compiler_process
(
CleanString
compiler_path
,
CleanString
compiler_directory
,
CleanString
command
,
int
*
compiler_thread_id_p
,
in
t
*
compiler_thread_handle_p
,
in
t
*
compiler_process_handle_p
)
int
*
compiler_thread_id_p
,
size_
t
*
compiler_thread_handle_p
,
size_
t
*
compiler_process_handle_p
)
{
PSTR
application_name
,
command_line
,
env
,
dir
;
STARTUPINFO
si
;
...
...
@@ -124,7 +124,7 @@ int get_integers_from_message (int wm_number,int *i1_p,int *i2_p)
#define PM_QS_POSTMESSAGE ((QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16)
int
get_integers_from_thread_message
(
int
wm_number
,
in
t
thread_handle
,
int
*
i1_p
,
int
*
i2_p
)
int
get_integers_from_thread_message
(
int
wm_number
,
size_
t
thread_handle
,
int
*
i1_p
,
int
*
i2_p
)
{
MSG
message
;
int
r
;
...
...
@@ -156,7 +156,7 @@ int get_integers_from_thread_message (int wm_number,int thread_handle,int *i1_p,
return
r
;
}
int
get_string_from_file_map_and_delete_map
(
in
t
file_map
,
CleanString
s
)
int
get_string_from_file_map_and_delete_map
(
size_
t
file_map
,
CleanString
s
)
{
int
l
,
i
;
char
*
chars
,
*
p
;
...
...
@@ -178,7 +178,7 @@ int get_string_from_file_map_and_delete_map (int file_map,CleanString s)
return
1
;
}
int
send_string_to_thread
(
int
thread_id
,
in
t
process_handle
,
int
wm_number
,
CleanString
s
)
int
send_string_to_thread
(
int
thread_id
,
size_
t
process_handle
,
int
wm_number
,
CleanString
s
)
{
HANDLE
file_map
,
file_map2
;
char
*
chars
,
*
p1
;
...
...
@@ -193,7 +193,7 @@ int send_string_to_thread (int thread_id,int process_handle,int wm_number,CleanS
if
(
l
==
0
||
chars
[
l
-
1
]
!=
'\0'
)
return
0
;
file_map
=
CreateFileMapping
((
HANDLE
)
0xFFFFFFFF
,
NULL
,
PAGE_READWRITE
,
0
,
l
,
NULL
);
file_map
=
CreateFileMapping
((
HANDLE
)
(
-
1
)
,
NULL
,
PAGE_READWRITE
,
0
,
l
,
NULL
);
if
(
file_map
==
NULL
)
return
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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