aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-06-24 18:02:38 +0000
committerSteve Chamberlain <sac@cygnus>1992-06-24 18:02:38 +0000
commit7c2d4011a40eb6ff029b99e4a7871c26c3b1f7b4 (patch)
tree95246ba249f39c72bf96bc75e745ef2642ae5686 /gas/read.c
parent369172bbb3eaeabb2f2a2aaa87799199dcb49e65 (diff)
downloadgdb-7c2d4011a40eb6ff029b99e4a7871c26c3b1f7b4.zip
gdb-7c2d4011a40eb6ff029b99e4a7871c26c3b1f7b4.tar.gz
gdb-7c2d4011a40eb6ff029b99e4a7871c26c3b1f7b4.tar.bz2
Wed Jun 24 10:57:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* app.c (process_escape): new function to handle escapes the right way, (do_scrub_next_char): use new function * cond.c (s_ifdef): do ifdef/ifndef right * read.c (s_fill): make the , expressions optional like the doc says * config/tc-h8300.[ch]: better warnings
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/gas/read.c b/gas/read.c
index 7f04ae4..77398df 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -783,22 +783,22 @@ void s_app_file() {
} /* s_app_file() */
void s_fill() {
- long temp_repeat;
- long temp_size;
- register long temp_fill;
+ long temp_repeat = 0;
+ long temp_size = 1 ;
+ register long temp_fill = 0;
char *p;
- if (get_absolute_expression_and_terminator(& temp_repeat) != ',') {
- input_line_pointer --; /* Backup over what was not a ','. */
- as_bad("Expect comma after rep-size in .fill:");
- ignore_rest_of_line();
- return;
- }
- if (get_absolute_expression_and_terminator(& temp_size) != ',') {
- input_line_pointer --; /* Backup over what was not a ','. */
- as_bad("Expected comma after size in .fill");
- ignore_rest_of_line();
- return;
+
+ temp_repeat = get_absolute_expression();
+ if (*input_line_pointer == ',')
+ {
+ input_line_pointer++;
+ temp_size = get_absolute_expression();
+ if (*input_line_pointer == ',')
+ {
+ input_line_pointer++;
+ temp_fill = get_absolute_expression();
+ }
}
/*
* This is to be compatible with BSD 4.2 AS, not for any rational reason.