[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: [Pcc] [Pcc-commit] CVS commit: pcc/cc/cpp
From:       Anders Magnusson <ragge () ludd ! ltu ! se>
Date:       2015-06-22 15:26:30
Message-ID: 55882926.2000400 () ludd ! ltu ! se
[Download RAW message or body]

Rich Felker skrev den 2015-06-21 23:11:
> On Sun, Jun 21, 2015 at 10:02:18PM +0100, Iain Hibbert wrote:
>> On Sun, 21 Jun 2015, Anders Magnusson wrote:
>>
>>> Module Name:	pcc
>>> Committed By:	ragge
>>> Date:		Sun Jun 21 18:04:09 UTC 2015
>>>
>>> Modified Files:
>>> 	pcc/cc/cpp: cpp.c cpp.h token.c
>>>
>>> Log Message:
>>> Big change of internal behaviour of cpp.  Now uses a recursive way to
>>> evaluate macros without pushback which is a magnitude faster than the
>>> old way.   (Probably added a bunch of bugs also...).
>> mkrobuf(const usch *s)
>> {
>>
>> 	iob->buf = iob->cptr = (usch *)s;
>>
>> this cast cannot work.. unfortunately I'm not sure how to get around this,
>> since it looks like you are starting from const data (iovec's are also
>> problematic in this way).
> Could you clarify what you mean by "cannot work"? Unless the
> pointer-to-non-const is used to modify the pointed-to object, there is
> nothing wrong with the cast.
>
I assume that "cannot work" reflects const usage.  Currently cpp needs 
some cleanup
to make the const stuff refer correctly.  It has had lower prio than 
making cpp work
at all though...

-- Ragge
_______________________________________________
Pcc mailing list
Pcc@lists.ludd.ltu.se
https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic