Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b233652

Browse files
committed
Identifiers matching _[A-Z_]\w* are reserved for C implementations.
May or may not be related to bug 407680 (obmalloc.c - looks like it's corrupted). This repairs the illegal vrbl names, but leaves a pile of illegal macro names (_THIS_xxx, _SYSTEM_xxx, _SET_HOOKS, _FETCH_HOOKS).
1 parent 7069512 commit b233652

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Objects/obmalloc.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ typedef uchar block;
286286

287287
/* Pool for small blocks */
288288
struct pool_header {
289-
union { block *__padding;
289+
union { block *_padding;
290290
uint count; } ref; /* number of allocated blocks */
291291
block *freeblock; /* pool's free list head */
292292
struct pool_header *nextpool; /* next pool of this size class */
@@ -310,11 +310,11 @@ typedef struct pool_header *poolp;
310310
/*
311311
* This malloc lock
312312
*/
313-
SIMPLELOCK_DECL(__malloc_lock);
314-
#define LOCK() SIMPLELOCK_LOCK(__malloc_lock)
315-
#define UNLOCK() SIMPLELOCK_UNLOCK(__malloc_lock)
316-
#define LOCK_INIT() SIMPLELOCK_INIT(__malloc_lock)
317-
#define LOCK_FINI() SIMPLELOCK_FINI(__malloc_lock)
313+
SIMPLELOCK_DECL(_malloc_lock);
314+
#define LOCK() SIMPLELOCK_LOCK(_malloc_lock)
315+
#define UNLOCK() SIMPLELOCK_UNLOCK(_malloc_lock)
316+
#define LOCK_INIT() SIMPLELOCK_INIT(_malloc_lock)
317+
#define LOCK_FINI() SIMPLELOCK_FINI(_malloc_lock)
318318

319319
/*
320320
* Pool table -- doubly linked lists of partially used pools

0 commit comments

Comments
 (0)