mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
(init_autorelease_thread_vars): Make it a macro instead of a static
inline function. This avoids the warning with not optimizing. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1989 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4b18ef1a32
commit
3493b03e40
1 changed files with 5 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Interface for NSAutoreleasePool for GNUStep
|
||||
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
Date: 1995
|
||||
|
@ -52,12 +52,10 @@ struct autorelease_thread_vars
|
|||
};
|
||||
|
||||
/* Initialize an autorelease_thread_vars structure for a new thread.
|
||||
This function is called in NSThread each time an NSThread is created. */
|
||||
static inline void
|
||||
init_autorelease_thread_vars (struct autorelease_thread_vars *tv)
|
||||
{
|
||||
memset (tv, 0, sizeof (typeof (*tv)));
|
||||
}
|
||||
This function is called in NSThread each time an NSThread is created.
|
||||
TV should be of type `struct autorelease_thread_vars *' */
|
||||
#define init_autorelease_thread_vars(TV) memset (tv, 0, sizeof (typeof (*tv)))
|
||||
|
||||
|
||||
|
||||
/* Each pool holds its objects-to-be-released in a linked-list of
|
||||
|
|
Loading…
Reference in a new issue