FAIL();
}
}
+ else {
+ result.valid = false;
+ }
}
return result;
}
/* EXPORT */
char *ldfile_input_filename;
-CONST char * ldfile_output_machine_name;
+CONST char * ldfile_output_machine_name ="";
unsigned long ldfile_output_machine;
enum bfd_architecture ldfile_output_architecture;
boolean had_script;
{
ldgram_in_defsym = true;
ldgram_in_expression = true;
- hex_mode = true;
+
}
assignment
{
- hex_mode = false;
ldgram_in_defsym = false;
ldgram_in_expression = false;
}
DEFUN(print_input_statement,(statm),
lang_input_statement_type *statm)
{
- printf("LOAD %s\n",statm->filename);
+ if (statm->filename != (char *)NULL) {
+ printf("LOAD %s\n",statm->filename);
+ }
}
static void
}
[0-9]+[KM]? {
- if (hex_mode == true) {
+ if (hex_mode == true || ldgram_in_defsym == true) {
yylval.integer = number(yytext, 16);
}
else {