summaryrefslogtreecommitdiffhomepage
path: root/mixlib/mix_scanner.l
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2004-06-06 19:46:43 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2004-06-06 19:46:43 +0000
commitdc193d364eb1e6eff2e53a9df65ad5da860deef6 (patch)
tree133998fbb4ae2315a96f87808559029775880ac8 /mixlib/mix_scanner.l
parent799e2d62060d715aa0f4ff86c7c9cea12bf4ff27 (diff)
downloadmdk-dc193d364eb1e6eff2e53a9df65ad5da860deef6.tar.gz
mdk-dc193d364eb1e6eff2e53a9df65ad5da860deef6.tar.bz2
keep track of program's end address.
Diffstat (limited to 'mixlib/mix_scanner.l')
-rw-r--r--mixlib/mix_scanner.l3
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;