pre is the line prefix string
const char *s = comment();
if (strchr(s, '\n')==0L) {
// single line comment
if (pre) write_c("%s", pre);
write_c("// %s\n", s);
if (!pre) write_c("%s", indent_plus(1));
} else {
write_c("%s/*\n", pre?pre:"");
const char *s = comment();
if (strchr(s, '\n')==0L) {
// single line comment
if (pre) write_all("%s", pre);
write_c("// %s\n", s);
write_py("# %s\n", s);
if (!pre) write_all("%s", indent_plus(1));
} else {
write_c("%s/*\n", pre?pre:"");
write_py("%s```\n", pre?pre:"");
...
where write_c does nothing if we are writing a Python file, and write_py does nothing for C++.
On 8 Nov 2022, at 21:24, 'melcher....@googlemail.com' via fltk.coredev <fltkc...@googlegroups.com> wrote:
Just to complete this conversation: there were at least two devs against this and nobody for it, so I'll close this RFC.
Instead I added full documentation for the Fluid .fl file format, making it possible to write an interpreter that converts .fl designs into source code for any other language.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/065bd559-ec65-4e34-a1f3-ad77193f32b8n%40googlegroups.com.