6666 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
6767 * Portions Copyright (c) 1994, Regents of the University of California
6868 *
69- * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.143 2005/12/17 20:15:43 momjian Exp $
69+ * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.144 2005/12/17 20:39:16 momjian Exp $
7070 *
7171 *-------------------------------------------------------------------------
7272 */
@@ -565,14 +565,16 @@ typedef unsigned char slock_t;
565565
566566
567567
568- /***************************************************************************
568+ /*
569+ * ---------------------------------------------------------------------
569570 * Platforms that use non-gcc inline assembly:
571+ * ---------------------------------------------------------------------
570572 */
571573
572574#if !defined(HAS_TEST_AND_SET )/* We didn't trigger above, let's try here */
573575
574576
575- #if defined(USE_UNIVEL_CC )
577+ #if defined(USE_UNIVEL_CC )/* Unixware compiler */
576578#define HAS_TEST_AND_SET
577579
578580typedef unsignedchar slock_t ;
@@ -595,7 +597,7 @@ tas(volatile slock_t *s_lock)
595597#endif /* defined(USE_UNIVEL_CC) */
596598
597599
598- #if defined(__alpha )|| defined(__alpha__ )
600+ #if defined(__alpha )|| defined(__alpha__ )/* Tru64 Unix Alpha compiler */
599601/*
600602 * The Tru64 compiler doesn't support gcc-style inline asm, but it does
601603 * have some builtin functions that accomplish much the same results.
@@ -616,7 +618,7 @@ typedef unsigned long slock_t;
616618#endif /* __alpha || __alpha__ */
617619
618620
619- #if defined(__hppa )|| defined(__hppa__ )
621+ #if defined(__hppa )|| defined(__hppa__ )/* HP PA-RISC, GCC and HP compilers */
620622/*
621623 * HP's PA-RISC
622624 *
@@ -682,7 +684,7 @@ typedef unsigned int slock_t;
682684#endif /* HPUX on IA64, non gcc */
683685
684686
685- #if defined(__QNX__ )&& defined(__WATCOMC__ )
687+ #if defined(__QNX__ )&& defined(__WATCOMC__ )/* QNX */
686688/*
687689 * QNX 4 using WATCOM C
688690 */
@@ -701,7 +703,7 @@ extern slock_t wc_tas(volatile slock_t *lock);
701703#endif /* __QNX__ and __WATCOMC__*/
702704
703705
704- #if defined(__sgi )
706+ #if defined(__sgi )/* SGI compiler */
705707/*
706708 * SGI IRIX 5
707709 * slock_t is defined as a unsigned long. We use the standard SGI
@@ -726,7 +728,7 @@ typedef unsigned long slock_t;
726728#endif /* __sgi */
727729
728730
729- #if defined(sinix )
731+ #if defined(sinix )/* Sinux */
730732/*
731733 * SINIX / Reliant UNIX
732734 * slock_t is defined as a struct abilock_t, which has a single unsigned long
@@ -744,7 +746,7 @@ typedef abilock_t slock_t;
744746#endif /* sinix */
745747
746748
747- #if defined(_AIX )
749+ #if defined(_AIX )/* AIX */
748750/*
749751 * AIX (POWER)
750752 */
@@ -757,7 +759,7 @@ typedef unsigned int slock_t;
757759#endif /* _AIX */
758760
759761
760- #if defined (nextstep )
762+ #if defined (nextstep )/* Nextstep */
761763#define HAS_TEST_AND_SET
762764
763765typedef struct mutex slock_t ;
@@ -773,7 +775,7 @@ typedef struct mutex slock_t;
773775/* These are in s_lock.c */
774776
775777
776- #if defined(sun3 )
778+ #if defined(sun3 )/* Sun3 */
777779#define HAS_TEST_AND_SET
778780
779781typedef unsignedchar slock_t ;
@@ -789,7 +791,7 @@ typedef unsigned char slock_t;
789791
790792/* out-of-line assembler from src/backend/port/tas/foo.s */
791793
792- #if defined(__sun )&& defined(__i386 )
794+ #if defined(__sun )&& defined(__i386 )/* i386 using Sun compiler */
793795/*
794796 * Solaris/386 (we only get here for non-gcc case)
795797 */