On 04/02/15 20:53, Adrien Nader wrote: > On Tue, Feb 03, 2015, Stefan Schmidt wrote: >> Hello. >> >> On 01/02/15 19:02, Sebastian Dransfeld wrote: >>> $(EXEEXT)? >> >> Fair point as this would avoid the ifdef alltogether. Is normally only >> used in Makefile, right? Is is really available at this stage? > > I'd say it probably isn't. Now, would it be worth adding it? Dunno. I > think it's not used elsewhere. > > A way to reduce the duplication would probably be something like adding > a trailing "%s" in the format and > #ifdef _WIN32 > , ".exe" > #else > , "" > #endif > in the arguments. With compiler optimizations the output code will > probably be equivalent. > (and it's not like it'd be dwarfed by the folllowing process spawning > anyway). >
It's possible to just pass EXEEXT to the code, and then have an ifdef to check if there's a need to append that or not. -- Tom. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel