Re: [libcroco-list] Libcroco notes



* Dodji Seketeli wrote:
>> The library does not declare which symbols should be exported, so no
>> symbols are exported on Win32 (and not imported in client code), so
>> you have to use static linking on Win32 or write a .def file where the
>> exports are listed. It would be good to have a macro that takes care
>> of this, e.g. XMLPUBFUN in libxml2 does this.
>
>Ah, true. Well, I don't have any windows box so it is unlikely that I do
>that myself :-). I'll accept patches for that tough.

Just put a CRPUBFUNC macro in front of all functions that should be
public and #define it to resolve to nothing; it's easier for you to
do since you have a better handle on what's public and what's not and
how to fit that into your coding style. I can then provide a patch to
#define the macro to __declspec(dllimport) or __declspec(dllexport)
as appropriate.

>> It seems the library can't deal with escape sequences, e.g. it errors
>> for x { font-family: Bj\f6rn } and truncates the identifier after "Bj"
>> (it should just make an identifier "Björn"); similar for strings, e.g.
>> x { font-family: "Bj\f6rn" } yields in error and ignoring the property
>> alltogether.
>
>Ah. I think the best approach is to fill the bug in bugzilla so that we
>don't loose it.

#314831

>> Is there a reason why CRTerm stores operators and such not as simple
>> values? At the moment x:1+2 would be two terms, it would seem a bit
>> more intuitive and simpler to make that three terms...
>
>I am not sure to get you right here. Could you tell me what the 3 terms 
>would be ?

'1' '+' '2'. (This might also parse as a number but libcroco does not
do that at the moment either...)
-- 
Björn Höhrmann · mailto:bjoern hoehrmann de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 



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