* rclex.l (handle_quotes): Fix minor formatting problems introduced in previous
change.
This commit is contained in:
parent
6e5f520172
commit
0e11a9e98d
@ -1,6 +1,11 @@
|
|||||||
|
2003-02-19 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* rclex.l (handle_quotes): Fix minor formatting problems introduced in
|
||||||
|
previous change.
|
||||||
|
|
||||||
2003-02-19 Mark Blackburn <marklist@fangorn.ca>
|
2003-02-19 Mark Blackburn <marklist@fangorn.ca>
|
||||||
|
|
||||||
* rclex.l: Handle strings spanning more than one line.
|
* rclex.l (handle_quotes): Handle strings spanning more than one line.
|
||||||
|
|
||||||
2003-02-12 Bob Wilson <bob.wilson@acm.org>
|
2003-02-12 Bob Wilson <bob.wilson@acm.org>
|
||||||
|
|
||||||
|
@ -350,6 +350,8 @@ static iheadtype *import_list = NULL;
|
|||||||
static char *as_name = NULL;
|
static char *as_name = NULL;
|
||||||
static char * as_flags = "";
|
static char * as_flags = "";
|
||||||
|
|
||||||
|
static char *tmp_prefix = "d";
|
||||||
|
|
||||||
static int no_idata4;
|
static int no_idata4;
|
||||||
static int no_idata5;
|
static int no_idata5;
|
||||||
static char *exp_name;
|
static char *exp_name;
|
||||||
@ -431,12 +433,19 @@ static char * mcore_elf_linker_flags = NULL;
|
|||||||
|
|
||||||
#define PATHMAX 250 /* What's the right name for this ? */
|
#define PATHMAX 250 /* What's the right name for this ? */
|
||||||
|
|
||||||
#define TMP_ASM "dc.s"
|
char *tmp_asm_buf;
|
||||||
#define TMP_HEAD_S "dh.s"
|
char *tmp_head_s_buf;
|
||||||
#define TMP_HEAD_O "dh.o"
|
char *tmp_head_o_buf;
|
||||||
#define TMP_TAIL_S "dt.s"
|
char *tmp_tail_s_buf;
|
||||||
#define TMP_TAIL_O "dt.o"
|
char *tmp_tail_o_buf;
|
||||||
#define TMP_STUB "ds"
|
char *tmp_stub_buf;
|
||||||
|
|
||||||
|
#define TMP_ASM dlltmp (tmp_asm_buf, "%sc.s")
|
||||||
|
#define TMP_HEAD_S dlltmp (tmp_head_s_buf, "%sh.s")
|
||||||
|
#define TMP_HEAD_O dlltmp (tmp_head_o_buf, "%sh.o")
|
||||||
|
#define TMP_TAIL_S dlltmp (tmp_tail_s_buf, "%st.s")
|
||||||
|
#define TMP_TAIL_O dlltmp (tmp_tail_o_buf, "%st.o")
|
||||||
|
#define TMP_STUB dlltmp (tmp_stub_buf, "%ss")
|
||||||
|
|
||||||
/* This bit of assemly does jmp * .... */
|
/* This bit of assemly does jmp * .... */
|
||||||
static const unsigned char i386_jtab[] =
|
static const unsigned char i386_jtab[] =
|
||||||
@ -741,6 +750,14 @@ static void usage
|
|||||||
static void inform
|
static void inform
|
||||||
PARAMS ((const char *, ...));
|
PARAMS ((const char *, ...));
|
||||||
|
|
||||||
|
static char *
|
||||||
|
dlltmp PARAMS ((char *buf, const char *fmt))
|
||||||
|
{
|
||||||
|
if (!buf)
|
||||||
|
buf = malloc (strlen (tmp_prefix) + 17);
|
||||||
|
sprintf (buf, fmt, tmp_prefix);
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
inform VPARAMS ((const char * message, ...))
|
inform VPARAMS ((const char * message, ...))
|
||||||
@ -3263,6 +3280,7 @@ static const struct option long_options[] =
|
|||||||
{"as-flags", required_argument, NULL, 'f'},
|
{"as-flags", required_argument, NULL, 'f'},
|
||||||
{"mcore-elf", required_argument, NULL, 'M'},
|
{"mcore-elf", required_argument, NULL, 'M'},
|
||||||
{"compat-implib", no_argument, NULL, 'C'},
|
{"compat-implib", no_argument, NULL, 'C'},
|
||||||
|
{"temp-prefix", required_argument, NULL, 't'},
|
||||||
{NULL,0,NULL,0}
|
{NULL,0,NULL,0}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3320,6 +3338,9 @@ main (ac, av)
|
|||||||
case 'S':
|
case 'S':
|
||||||
as_name = optarg;
|
as_name = optarg;
|
||||||
break;
|
break;
|
||||||
|
case 't':
|
||||||
|
tmp_prefix = optarg;
|
||||||
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
as_flags = optarg;
|
as_flags = optarg;
|
||||||
break;
|
break;
|
||||||
|
@ -425,10 +425,11 @@ handle_quotes (input, len)
|
|||||||
++t;
|
++t;
|
||||||
assert (ISSPACE (*t));
|
assert (ISSPACE (*t));
|
||||||
while (ISSPACE (*t))
|
while (ISSPACE (*t))
|
||||||
{
|
{
|
||||||
if ((*t) == '\n') ++rc_lineno;
|
if ((*t) == '\n')
|
||||||
++t;
|
++rc_lineno;
|
||||||
}
|
++t;
|
||||||
|
}
|
||||||
if (*t == '\0')
|
if (*t == '\0')
|
||||||
break;
|
break;
|
||||||
assert (*t == '"');
|
assert (*t == '"');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user