pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/doc regen.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4fa1ec64b67d
branches:  trunk
changeset: 503630:4fa1ec64b67d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 24 10:08:00 2005 +0000

description:
regen.

diffstat:

 doc/pkgsrc.html |  63 +++++++++++++++++++++++++++++++++++++++-----------------
 doc/pkgsrc.txt  |  37 ++++++++++++++++++++++----------
 2 files changed, 69 insertions(+), 31 deletions(-)

diffs (150 lines):

diff -r 62aa9f3b9c87 -r 4fa1ec64b67d doc/pkgsrc.html
--- a/doc/pkgsrc.html   Thu Nov 24 10:03:37 2005 +0000
+++ b/doc/pkgsrc.html   Thu Nov 24 10:08:00 2005 +0000
@@ -12960,22 +12960,22 @@
             these macros are usually ones that describe the target
             CPU and operating system. Depending of which of the
             macros are defined, you can write code that uses
-            features unique to a specific platform. The best way to
-            handle these differences is to use the GNU autotools
-            (automake, autoconf, etc.) to check for specific
-            features (like the existence of a header file, a
-            function or a library).</p>
-
-            <p>If that is not possible you can use the predefined
-            macros below to configure your code to the platform it
-            runs on. Almost every operating system, hardware
-            architecture and compiler has its own macro. For
-            example, if the macros <code class=
-            "varname">__GNUC__</code>, <code class=
-            "varname">__i386__</code> and <code class=
+            features unique to a specific platform. Generally you
+            should rather use the GNU autotools (automake,
+            autoconf, etc.) to check for specific features (like
+            the existence of a header file, a function or a
+            library), but sometimes this is not possible or
+            desired.</p>
+
+            <p>In that case you can use the predefined macros below
+            to configure your code to the platform it runs on.
+            Almost every operating system, hardware architecture
+            and compiler has its own macro. For example, if the
+            macros <code class="varname">__GNUC__</code>,
+            <code class="varname">__i386__</code> and <code class=
             "varname">__NetBSD__</code> are all defined, you know
-            that you are using NetBSD on an Intel CPU, and your
-            compiler is GCC.</p>
+            that you are using NetBSD on an i386 compatible CPU,
+            and your compiler is GCC.</p>
 
             <div class="sect3" lang="en" xml:lang="en">
               <div class="titlepage">
@@ -13072,12 +13072,29 @@
 
             <div class="variablelist">
               <dl>
-                <dt><span class="term">SunPro 5.7 + Solaris 8 +
-                SPARC</span></dt>
+                <dt><span class="term">GCC 3.3.3 + SuSE Linux 9.1 +
+                i386</span></dt>
 
                 <dd>
-                  <p>__SVR4, __sparc, __sun, __unix, sparc, sun,
-                  unix.</p>
+                  <p>__ELF__, __gnu_linux__, __i386, _i386__,
+                  __linux, __linux__, __unix, __unix__, i386,
+                  linux, unix.</p>
+                </dd>
+
+                <dt><span class="term">GCC 2.95 + NetBSD 1.6.2 +
+                i386</span></dt>
+
+                <dd>
+                  <p>__ELF__, __NetBSD__, __i386, _i386__,
+                  i386.</p>
+                </dd>
+
+                <dt><span class="term">GCC 3.3.3 + NetBSD 2.0 +
+                i386</span></dt>
+
+                <dd>
+                  <p>__ELF__, __NetBSD__, __i386, _i386__,
+                  i386.</p>
                 </dd>
 
                 <dt><span class="term">GCC 4 + Solaris 8 +
@@ -13088,6 +13105,14 @@
                   __SVR4, __svr4__, __unix, __unix__, sparc, sun,
                   unix.</p>
                 </dd>
+
+                <dt><span class="term">SunPro 5.7 + Solaris 8 +
+                SPARC</span></dt>
+
+                <dd>
+                  <p>__SVR4, __sparc, __sun, __unix, sparc, sun,
+                  unix.</p>
+                </dd>
               </dl>
             </div>
           </div>
diff -r 62aa9f3b9c87 -r 4fa1ec64b67d doc/pkgsrc.txt
--- a/doc/pkgsrc.txt    Thu Nov 24 10:03:37 2005 +0000
+++ b/doc/pkgsrc.txt    Thu Nov 24 10:08:00 2005 +0000
@@ -4933,15 +4933,15 @@
 #ifdef FOO or #if defined(FOO). Among these macros are usually ones that
 describe the target CPU and operating system. Depending of which of the macros
 are defined, you can write code that uses features unique to a specific
-platform. The best way to handle these differences is to use the GNU autotools
-(automake, autoconf, etc.) to check for specific features (like the existence
-of a header file, a function or a library).
-
-If that is not possible you can use the predefined macros below to configure
-your code to the platform it runs on. Almost every operating system, hardware
-architecture and compiler has its own macro. For example, if the macros
-__GNUC__, __i386__ and __NetBSD__ are all defined, you know that you are using
-NetBSD on an Intel CPU, and your compiler is GCC.
+platform. Generally you should rather use the GNU autotools (automake,
+autoconf, etc.) to check for specific features (like the existence of a header
+file, a function or a library), but sometimes this is not possible or desired.
+
+In that case you can use the predefined macros below to configure your code to
+the platform it runs on. Almost every operating system, hardware architecture
+and compiler has its own macro. For example, if the macros __GNUC__, __i386__
+and __NetBSD__ are all defined, you know that you are using NetBSD on an i386
+compatible CPU, and your compiler is GCC.
 
 15.4.1.1. CPP defines for operating systems
 
@@ -4984,15 +4984,28 @@
 conditionally compile code on Solaris, don't use __sun__, as the SunPro
 compiler does not define it. Use __sun instead.
 
-SunPro 5.7 + Solaris 8 + SPARC
-
-    __SVR4, __sparc, __sun, __unix, sparc, sun, unix.
+GCC 3.3.3 + SuSE Linux 9.1 + i386
+
+    __ELF__, __gnu_linux__, __i386, _i386__, __linux, __linux__, __unix,
+    __unix__, i386, linux, unix.
+
+GCC 2.95 + NetBSD 1.6.2 + i386
+
+    __ELF__, __NetBSD__, __i386, _i386__, i386.
+
+GCC 3.3.3 + NetBSD 2.0 + i386
+
+    __ELF__, __NetBSD__, __i386, _i386__, i386.
 
 GCC 4 + Solaris 8 + SPARC
 
     __ELF__, __sparc, __sparc__, __sun, __sun__, __SVR4, __svr4__, __unix,
     __unix__, sparc, sun, unix.
 
+SunPro 5.7 + Solaris 8 + SPARC
+
+    __SVR4, __sparc, __sun, __unix, sparc, sun, unix.
+
 15.4.3. Getting a list of CPP defines
 
 If your system uses the GNU C Compiler, you can get a list of symbols that are



Home | Main Index | Thread Index | Old Index