On Sun, Jul 18, 2010 at 06:26:55PM +0200, Sebastian Liem wrote:
>diff -r 09af6227574f ed/ed.c
>--- a/ed/ed.c Fri Jun 04 11:44:25 2010 +0100
>+++ b/ed/ed.c Sun Jul 18 17:35:53 2010 +0200
>@@ -121,7 +121,7 @@
> void setwide(void);
> void squeeze(int);
> void substitute(int);
>-char* _mktemp(char *as);
>+char* __mktemp(char *as);
>
> Rune La[] = { 'a', 0 };
> Rune Lr[] = { 'r', 0 };
>@@ -162,7 +162,7 @@
> globp = Lr;
> }
> zero = malloc((nlall+5)*sizeof(int*));
>- tfname = _mktemp(tmp);
>+ tfname = __mktemp(tmp);
> init();
> setjmp(savej);
> commands();
This really isn't a good idea. Most implementations of libc use
obscene numbers of symbols prefixed with __, especially glibc
which seems to define a __ version of every damn symbol. It's
safer to go with the standard mymktemp or p9p's p9mktemp.
-- Kris Maglione The key to performance is elegance, not battalions of special cases. --Jon Bentley and Doug McIlroyReceived on Mon Jul 19 2010 - 19:02:32 CEST
This archive was generated by hypermail 2.2.0 : Mon Jul 19 2010 - 19:12:02 CEST