<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 03.04.2009 15:42 Uhr, Peter Stuge wrote:
<blockquote cite="mid:20090403134201.10659.qmail@stuge.se" type="cite">
  <pre wrap="">Stefan Reinauer wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">+++ util/romcc/romcc.c (working copy)
@@ -24998,7 +24998,10 @@
        /* Enter the globl definition scope */
        start_scope(&state);
        register_builtins(&state);
+
        compile_file(&state, filename, 1);
+       if (includefile)
+               compile_file(&state, includefile, 1);
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Shouldn't the include be compiled before the actual file?
  </pre>
</blockquote>
<br>
Yes, but romcc seems to parse it the other way round. My tests showed
the above produces correct results, while turning the statements around
does not (the first version of my patch looked that way)<br>
<br>
Stefan<br>
<br>
<pre class="moz-signature" cols="72">-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: <a class="moz-txt-link-abbreviated" href="mailto:info@coresystems.de">info@coresystems.de</a>  • <a class="moz-txt-link-freetext" href="http://www.coresystems.de/">http://www.coresystems.de/</a>
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
</pre>
</body>
</html>