bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tempname: new try_tempname function


From: Paul Eggert
Subject: Re: [PATCH] tempname: new try_tempname function
Date: Sat, 31 Jan 2015 14:33:55 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Andreas Grünbacher wrote:
Well, try_file() passes the flags on to open() for gen_tempfile's
GT_FILE mode.

Ah, sorry, I missed that.

For some uses (like mine), a create mode parameter wouldn't hurt, either.

Then I suggest just passing a generic (void const *) argument to the TRY function. That way, each function can pass whatever extra info it likes, by packaging data up in a struct and passing the struct's address to __gen_tempname. __gen_tempname's existing FLAGS argument would be one of the things packaged up.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]