On Fri, Jun 18, 2010 at 09:24:28PM +0200, grischka wrote:
> Did you consider pushing the feature(s) on the tinycc mob branch?
Yes. And I though mob was a bit destabilized by "last member of union"
patches, so I decided not to continue that.
Yes, I've read tinycc.git intro text about mob, and it's really up to
you on how to pick patches. I just though posting by mail is also ok,
and as your comments show, having a look on them before inclusion allows
(hopefully) to merge them in a bit more good shape.
> Some suggestions:
>
> >+ /* compute default outfile name */
> >+ {
> >+ char *ext;
> >+
> Put that into a function.
Yes. I'm putting it into libtcc API as
LIBTCCAPI const char *tcc_default_target(TCCState *s)
> >+ /* dump collected dependencies */
> >+ if (gen_deps) {
> >+ ...
> Put that into a function.
Ok,
LIBTCCAPI void tcc_gen_makedeps(TCCState *s, const char *target, const char
*filename)
> >+ ext = strrchr(buf, '.');
> >+ ext = ext ? ext : strchr(buf, 0);
> Use tcc_fileextension().
Yes and thanks. I've though about tcc_fileextension(), but wrongly
decided that it's not for me because call to tcc_basename.
Thanks for suggestions - I'll repost reworked patches soon.
Kirill
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel