diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2004-06-06 19:46:43 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2004-06-06 19:46:43 +0000 |
commit | ff2ed93ec8860b5eea6b524d611f97149c6e5859 (patch) | |
tree | 90d47cd3febf9789c38c213efd92cebdfb23e4ed /mixlib/mix_scanner.l | |
parent | 7126f125585b219c8ef5c395ded89215d05e6077 (diff) | |
download | mdk-ff2ed93ec8860b5eea6b524d611f97149c6e5859.tar.gz mdk-ff2ed93ec8860b5eea6b524d611f97149c6e5859.tar.bz2 |
keep track of program's end address.
Diffstat (limited to 'mixlib/mix_scanner.l')
-rw-r--r-- | mixlib/mix_scanner.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mixlib/mix_scanner.l b/mixlib/mix_scanner.l index 6e4cb71..2d097ca 100644 --- a/mixlib/mix_scanner.l +++ b/mixlib/mix_scanner.l @@ -1,7 +1,7 @@ /* -*-c-*- -------------- mix_scanner.l : * Lexical scanner used by mix_parser_t * ------------------------------------------------------------------ - * Copyright (C) 2000, 2003 Free Software Foundation, Inc. + * Copyright (C) 2000, 2003, 2004 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -330,6 +330,7 @@ wexpr {expr}({fpart})?(,{expr}({fpart})?)* {number}{ws}*\n | {number}{ws}+.*\n { parser->start = mix_short_new (atol (yytext)); + parser->end = parser->loc_count; end = TRUE; if ( parser->status == MIX_PERR_NOCOMP ) parser->status = MIX_PERR_OK; return parser->status; |