[PATCH] Use gtk_tree_model_get_value() to get the index and date of a dive
Lubomir I. Ivanov
neolit123 at gmail.com
Wed Sep 19 12:51:34 PDT 2012
On 19 September 2012 20:25, Linus Torvalds
<torvalds at linux-foundation.org> wrote:
> On Wed, Sep 19, 2012 at 1:10 AM, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
>>
>> mingw-gcc 4.7, mingw-gcc 4.8 provides some of these in time.h as
>> macros under POSIX (which is what they are):
>>
>> #ifndef gmtime_r
>> #define gmtime_r(_Time,_Tm) ({ struct tm *___tmp_tm = \
>> gmtime((_Time)); \
>> if (___tmp_tm) { \
>> *(_Tm) = *___tmp_tm; \
>> ___tmp_tm = (_Tm); \
>> } \
>> ___tmp_tm; })
>> #endif
>
> The above is pure and utter garbage. It doesn't make any sense at all,
> and isn't thread-safe in the least.
>
hah yes,
it looks like someone bombed a portion of code with a mini-nuke.
lubomir
--
More information about the subsurface
mailing list