Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-and-itasks
clm
Commits
f3b2faeb
Commit
f3b2faeb
authored
Oct 07, 2003
by
John van Groningen
Browse files
test result code of linker, remove some debugging messages
parent
35611ea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
clm/clm.c
View file @
f3b2faeb
...
...
@@ -3213,7 +3213,9 @@ static int link_project (P_NODE first_project_node,char *options_file_name,char
*
arg
++=
"linker"
;
# if !(!defined (LINUX) && defined (SOLARIS))
need_file
(
"_startup"
,
OBJECT_FILE_EXTENSION
,
start_up_file_name
);
# endif
*
arg
++=
start_up_file_name
;
need_file
(
"_system"
,
OBJECT_FILE_EXTENSION
,
system_file_name
);
...
...
@@ -3248,6 +3250,7 @@ static int link_project (P_NODE first_project_node,char *options_file_name,char
{
int
pid
,
r
,
status
;
# if 0
char
**
a
;
a
=
argv
;
...
...
@@ -3255,6 +3258,7 @@ static int link_project (P_NODE first_project_node,char *options_file_name,char
printf
(
"%s
\n
"
,
*
a
);
++
a
;
}
# endif
pid
=
fork
();
if
(
pid
<
0
)
...
...
@@ -3272,7 +3276,7 @@ static int link_project (P_NODE first_project_node,char *options_file_name,char
}
r
=
wait_for_child
(
pid
,
"Linker"
,
&
status
);
if
(
!
(
r
>=
0
/*
&& status==0
*/
))
if
(
!
(
r
>=
0
&&
status
==
0
))
return
0
;
}
# endif
...
...
@@ -4131,7 +4135,7 @@ int main (int argc,char **argv)
/* application options */
#if ! (defined (MAKE_MPW_TOOL) && defined (N
EWBRIDGE
))
#if ! (defined (MAKE_MPW_TOOL) && defined (N
B
))
else
if
(
!
strcmp
(
s
,
"h"
)){
++
arg_n
;
if
(
arg_n
>=
argc
)
...
...
@@ -4248,7 +4252,7 @@ int main (int argc,char **argv)
/* code generator options */
}
else
if
(
!
strcmp
(
s
,
"ci"
)){
check_indices
=
1
;
#if defined (MAKE_MPW_TOOL) && defined (N
EWBRIDGE
)
#if defined (MAKE_MPW_TOOL) && defined (N
B
)
}
else
if
(
!
strcmp
(
s
,
"checkstack"
)){
check_stack_overflow
=
1
;
}
else
if
(
!
strcmp
(
s
,
"checkindices"
)){
...
...
@@ -4285,7 +4289,7 @@ int main (int argc,char **argv)
if
(
clean_path_list
[
0
]
!=
'\0'
)
strcat
(
clean_path_list
,
":"
);
strcat
(
clean_path_list
,
argv
[
arg_n
]);
#if defined (MAKE_MPW_TOOL) && defined (N
EWBRIDGE
)
#if defined (MAKE_MPW_TOOL) && defined (N
B
)
}
else
if
(
!
strcmp
(
s
,
"o"
)){
++
arg_n
;
if
(
arg_n
>=
argc
)
...
...
@@ -4296,7 +4300,7 @@ int main (int argc,char **argv)
error_s
(
"Unknown option: %s"
,
argument
);
}
#if defined (MAKE_MPW_TOOL) && defined (N
EWBRIDGE
)
#if defined (MAKE_MPW_TOOL) && defined (N
B
)
if
(
main_module_name
==
NULL
)
argument_error
();
...
...
@@ -4377,7 +4381,7 @@ int main (int argc,char **argv)
}
#ifdef N
EWBRIDGE
#ifdef N
B
{
P_NODE
_system_pnode
;
...
...
@@ -4390,7 +4394,7 @@ int main (int argc,char **argv)
#endif
if
(
make_project_to_abc_files
(
first_project_node
)
#ifdef N
EWBRIDGE
#ifdef N
B
&&
make_project_to_abc_files
(
_system_pnode
)
#endif
){
...
...
Write
Preview
Supports
Markdown
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