[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Several patchs from Debian packaging
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] Several patchs from Debian packaging |
Date: |
Sun, 18 Apr 2010 21:50:52 +0200 |
User-agent: |
KMail/1.12.4 (Linux/2.6.32-3-686; KDE/4.3.4; i686; ; ) |
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] Several patchs from Debian packaging, RoboTux, 2010/04/17
- Re: [Tinycc-devel] Several patchs from Debian packaging, grischka, 2010/04/17
- Re: [Tinycc-devel] Several patchs from Debian packaging, Thomas Preud'homme, 2010/04/18
- Re: [Tinycc-devel] Several patchs from Debian packaging,
Thomas Preud'homme <=
- Re: [Tinycc-devel] Several patchs from Debian packaging, grischka, 2010/04/18
- Re: [Tinycc-devel] Several patchs from Debian packaging, RoboTux, 2010/04/20
- Re: [Tinycc-devel] Several patchs from Debian packaging, grischka, 2010/04/20
- Re: [Tinycc-devel] Several patchs from Debian packaging, RoboTux, 2010/04/20
- Re: [Tinycc-devel] Several patchs from Debian packaging, grischka, 2010/04/20
- [Tinycc-devel] Cleaning mob [Was Several patchs from Debian packaging], RoboTux, 2010/04/20
- [Tinycc-devel] Re: Cleaning mob [Was Several patchs from Debian packaging], grischka, 2010/04/21
- Re: [Tinycc-devel] Re: Cleaning mob [Was Several patchs from Debianpackaging], Timo VJ Lähde, 2010/04/21
- Re: [Tinycc-devel] Re: Cleaning mob [Was Several patchs from Debianpackaging], RoboTux, 2010/04/21
- Re: [Tinycc-devel] Re: Cleaning mob [Was Several patchs from Debianpackaging], grischka, 2010/04/21