On 9/20/06, James Vega <[EMAIL PROTECTED]> wrote:
> Here we go, in order (and there's a patch attached for the first topic).
>
> 'make distclean' removes some files it really shouldn't be removing.
> I'm going to be this is all stuff that would be generated normally if I
> had doxygen installed, but since that's no longer required it should be
> left behind. The files/directories are:
>
> builtin_help.c
> user_doc/
> doc_src/builtin_doc/
>
> One last make issue. share/fish isn't being removed when the clean
> target is run.
Thanks. Will apply.
>
> Fish is being compiled with the -std=c99 switch yet some of the xdg
> source files use strdup() and getc_unlocked() which aren't defined by c99.
> They're a very common extension to the C standard and are part of the
> POSIX standard, but they're not part of c99. I seem to recall that fish
> used to use -std=gnu99. Was there a reason this was changed? Using
> -std=gnu99 would solve this problem.
This helps non-gcc compilers. I occasionally make sure that e.g. icc
works with fish. I think that not relying on non-standard extensions
in gcc is good because:
* It keeps the code readable for people who don't know gcc intimately
* Historically, gcc extensions live a somewhat dangerous life. We can
reasonably expect that future gcc versions will still support c99.
* While gcc is the only C compiler that matters _today_, that may not
be the case in a year or two. Who knows, intel might open source ICC,
for example?
It should be possible to use a few macros to put the compiler in
posix-mode. This will have to wait until I get back from my vacation.
>
> I think I've discussed this issue before, but I'm not sure so I'll bring
> it up again. (If I see that I have while I'm digging around in my email
> for Martin's vim email, I'll let you know to ignore me about this. :)
> I was rather surprised by the behavior of the following brace expansion:
>
> foo{a,b{c,d}}
>
> I was expecting it to expand to "fooa foobc foobd", as it would in other
> shells. Instead it expanded to "fooa foobc fooa foobd". From a brief
> glance at the documentation for brace expansion, I don't see an
> explanation for this behavior. It seems rather counter-intuitive to me.
Parameter expansions in fish are outer products, and expansions are
ordered from the inner expansion to the outer. This means thet the
above string will first be expanded 'foo{a,b{c,d}}' -> 'foo{a,bc}
foo{a,bd}', and then it will be expanded again to the result you got.
I realise that this whole outer product business is different from
other shells, and the documentation should probably make it more
clear, but I strongly belive this is the better way ahead, since it
allows you to write things like 'for i in (seq 5 14).jpg; ...; end' to
do something on a range of jpegs, where in other shells you'd have to
write 'for i in $(seq 5 14); j=$i.jpg; ...; done'.
>
> James
> --
> GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
>
> iEYEARECAAYFAkUQvigACgkQDb3UpmEybUCzLACeIUpRfcjL+Pezz+6Rua3nEife
> tWUAniJgRYeUZV5mGQ5aq12pj9qchoT9
> =XRkN
> -----END PGP SIGNATURE-----
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
>
>
--
Axel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users