On Sunday 18 April 2010 21:45:38 Thomas Preud'homme wrote:
[SNIP]
>
> > *(--ext) = '\0';
> > strcpy(libname, filename);
> > *ext = '.';
> >
> > That's ugly.
>
> Ok, I changed to:
>
> if (libprefix && (!strncmp(ext, ".so", 2))) {
> size_t len = ext - filename - 3;
> strncpy(libname, filename + 3, len);
> *(libname + len) = '\0';
> return 1;
> }
>
> for the 3 tests (minus the - 3 for the ".def" comparison when TCC_TARGET_PE
> is defined).
I forgot to precise that I removed the ext++ just after the tcc_fileextension
call.
[SNIP]
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel