tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] pp bug


From: Pip Cet
Subject: Re: [Tinycc-devel] pp bug
Date: Thu, 30 Apr 2015 18:38:46 +0000

Does this fix it for you? Even if it doesn't, this should indicate
where the code is that goes wrong...

diff --git a/tccpp.c b/tccpp.c
index 62bfa9a..b44296d 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -2888,7 +2888,7 @@ static int macro_subst_tok(TokenString *tok_str,
                     goto redo;
                 }
             } else {
-                ch = file->buf_ptr[0];
+                ch = tcc_peekc_slow(file);
                 while (is_space(ch) || ch == '\n' || ch == '/')
           {
             if (ch == '/')



On Thu, Apr 30, 2015 at 5:49 PM, grischka <address@hidden> wrote:
> $ tcc bug1.c
> bug1.c:109: warning: implicit declaration of function 'AB'
> bug1.c:109: error: 'C' undeclared
>
> thanks,
>
> -- gr
>
>
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>

Attachment: tcc-macro.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]