Le lundi 8 août 2011 18:03:16, grischka a écrit :
[SNIP]
>
> Oops! If this is \\\\\\\\b/include with 8 backslashes, then
> I think we must use something else.
>
> What about ?B as in "?B/include"? Or maybe "{B}/include"?
cstr_new(&str);
for (p = in; c = *p, c != '\0' && c != PATHSEP; ++p) {
- if (c == '\b') {
- cstr_cat(&str, s->tcc_lib_path);
+ if (c == '{' && p[1] && p[2] == '}') {
+ c = p[1], p += 2;
+ if (c == 'B')
+ cstr_cat(&str, s->tcc_lib_path);
} else {
cstr_ccat(&str, c);
}
I guess you did it this way to avoid just forbidding {b} but allowing any {x}
with x ≠ b. Anyway, you saved me from more time of pickyness, as I was trying
all the solution to do it without knowing which one you'd prefer. Does
bikeschedshrink exist?
Best regards,
Thomas Preud'homme
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
