Hi,<br><br>I have a KL1 page as :<br>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br><%!<br>static const char *val;<br>%><%<br>val = "coucou";<br>io_printf(out,"%s",val);<br>
%><br>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br>-> any "\n" after all "%>" tag<br>This can be use to generate a file without html format (image, ...)<br><br><br>I compile this page and I have an error :<br>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br>m68k-elf-gcc -I/opt/uClinux-dist/uClibc/include -Os -m5307 -msep-data -D__UCLINUX__ -pipe -I/home/all_user/ug_ma/ug_web-v3/klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include -I/home/all_user/ug_ma/ug_web-v3/klone-2.1.1rc0/build/target/klone-core-2.1.1rc0 -DHAVE_CONF_H -I/usr/local/include -O2 -I/home/all_user/ug_ma/ug_web-v3/ -I/home/all_user/ug_ma/ug_web-v3/include -I/home/all_user/ug_ma/ug_web-v3/klone-2.1.1rc0/ -c pg_2a7de1a33a2202bac8fcb632e6150421.c -o pg_2a7de1a33a2202bac8fcb632e6150421.o<br>
/home/all_user/ug_ma/ug_web-v3/webapp/www/utilisateur.kl1:21: invalid format `#line' directive<br>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br><br><br>The C file equivalente of KL1 page contains at line 21 :<br>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br>#line 65 "pg_2a7de1a33a2202bac8fcb632e6150421.c"goto klone_script_exit;<br>klone_script_exit: <br> return; <br>} <br>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br>
Man misses an "\n" before "goto" word.<br><br><br>To resolve this problem, add a "\n" at line 257 of "/src/libtrans/translat.c as :<br>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br>
io_printf(tmp, "#line %d \"%s\"", ln + 2, pti->file_out);<br>=> io_printf(tmp, "#line %d \"%s\"\n", ln + 2, pti->file_out);<br>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br>
<br>Bye.<br clear="all"><br>-- <br>Mickaël AUGER<br><br>