Re: Another suggested libgnome API change
- From: Maciej Stachowiak <mjs noisehavoc org>
- To: Havoc Pennington <hp redhat com>
- Cc: Jonathan Blandford <jrb redhat com>, Maciej Stachowiak <mjs noisehavoc org>, gnome-2-0-list gnome org
- Subject: Re: Another suggested libgnome API change
- Date: Mon, 3 Sep 2001 20:44:52 -0700
On 03Sep2001 11:51PM (-0400), Havoc Pennington wrote:
>
> Jonathan Blandford <jrb redhat com> writes:
> > Something like?
> > #define g_spawn_async_simple(char **argv, error) \
> > g_spawn_async (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, error)
> >
>
> Something like that. I wouldn't search path probably; that's off by
> default in g_spawn because we want people to think about whether it's
> a security issue. So it should probably be off by default here as
> well.
>
Make it a function, not a macro. Macros suck. An extra function call
when launching a new process is lost in the noise.
- Maciej
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]