[cfe-dev] -emit-html example

Nuno Lopes nunoplopes at sapo.pt
Thu Apr 17 15:45:11 PDT 2008


>> Anyway, I think the output is great! However I found some little 
>> problems, like:
>> - the output jumps from line 1659 to 2085
>
> I don't see this in safari.

Take a look at line 1659:
<tr><td class="num" id="LN1659">1659</td><td class="line"><span 
class='keyword'>static</span> <span class='keyword'>const</span> <span 
class='keyword'>struct</span> spec_list_1 extra_specs_1[] = { <span 
class='macro'>EXTRA_SPECS<span class='expansion'>{ "cc1_cpu" , "%{!mtune*: 
%{m386:mtune=i386 %n`-m386' is deprecated. Use `-march=i386' or 
`-mtune=i386' instead.\n} %{m486:-mtune=i486 %n`-m486' is deprecated. Use 
`-march=i486' or `-mtune=i486' instead.\n} %{mpentium:-mtune=pentium 
%n`-mpentium' is deprecated. Use `-march=pentium' or `-mtune=pentium' 
instead.\n} %{mpentiumpro:-mtune=pentiumpro %n`-mpentiumpro' is deprecated. 
Use `-march=pentiumpro' or `-mtune=pentiumpro' instead.\n} 
%{mcpu=*:-mtune=%* %n`-mcpu=' is deprecated. Use `-mtune=' or '-march=' 
instead.\n}} %<mcpu=* %{mintel-syntax:-masm=intel %n`-mintel-syntax' is 
deprecated. Use `-masm=intel' instead.\n} %{mno-intel-syntax:-masm=att 
%n`-mno-intel-syntax' is deprecated. Use `-masm=att' instead.\n}"<br> 
"%{march=native:%<march=native %:local_cpu_detect(arch) 
%{!mtune=*:%<mtune=native %:local_cpu_detect(tune)}} 
%{mtune=native:%<mtune=native %:local_cpu_detect(tune)}"<br> } , { 
"darwin_crt1" , "%:version-compare(!> 10.5 mmacosx-version-min= -lcrt1.o) 
%:version-compare(>= 10.5 mmacosx-version-min= -lcrt1.10.5.o)"<br> } , { 
"darwin_dylib1" , "%:version-compare(!> 10.5 
mmacosx-version-min= -ldylib1.o)     %:version-compare(>= 10.5 
mmacosx-version-min= -ldylib1.10.5.o)"<br> } , { "darwin_minversion" , 
"%{!m64|fgnu-runtime:10.4;        ,objective-c|,objc-cpp-output:10.5; 
,objective-c-header:10.5; 
,objective-c++|,objective-c++-cpp-output:10.5; 
,objective-c++-header|,objc++-cpp-output:10.5;     :10.4}"<br> } , { 
"darwin_dsymutil" , "%{g*:%{!gstabs*:%{!g0: dsymutil 
%{o*:%*}%{!o:a.out}}}}"<br> } , { "darwin_arch" , "%{m64:x86_64;:i386}" } , 
{ "darwin_crt2"<br> , "" } , { "darwin_subarch" , "%{m64:x86_64;:i386}" } 
,</span></span> };</td></tr>


The problem is in the "'-march=' instead.\n}} %<mcpu=*" part. Notice the 
unescaped '<'.


>> - macro expansion is a bit weird in IE7, at least. the box is very 
>> little and wraps text after each word (I've attached a snapshot). In 
>> Firefox it looks much prettier, though.
>
> I'm not really sure what causes this, I'm no web guru ;-).
>
> Also, the white borders between table cells in your screenshot look 
> wrong.  Does anyone know how to stop that from happening?

I dunno, but later I can try to fix that.

Nuno 




More information about the cfe-dev mailing list