[Top][All Lists]

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

bug#8254: race condition in dired.c's scmp function

From: Paul Eggert
Subject: bug#8254: race condition in dired.c's scmp function
Date: Tue, 15 Mar 2011 09:53:47 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7

On 03/15/2011 03:50 AM, Eli Zaretskii wrote:

I wonder if there's a better solution even if we decide to
make these macros functions

We could move these macros to a new include file, and have it
be included only by .c files that need the macros.  That would
be easy to do; the only real cost is that of having another
include file to worry about.

I don't like to have the same static function in every file that
includes buffer.h, on platforms that don't support inline functions.

These days, it's routine for compilers to inline.  For
old fashioned compilers that don't inline, it's routine to optimize
away static functions that are never used.  So, from an optimization
viewpoint, this problem is relatively unimportant.

reply via email to

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