This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[wwwdocs] Convert gcc-4.9/porting_to.html to using gcc.css (instead of individual style= clauses)


With this, like similar pages, we now have the colors back.

Applied.

Gerald

Index: gcc-4.9/porting_to.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.9/porting_to.html,v
retrieving revision 1.7
diff -u -r1.7 porting_to.html
--- gcc-4.9/porting_to.html	31 Aug 2014 19:38:18 -0000	1.7
+++ gcc-4.9/porting_to.html	24 Jan 2016 22:56:55 -0000
@@ -47,9 +47,9 @@
 <p>This example now gives the following diagnostic:</p>
 
 <pre>
-<b>t.c:6:19:</b> <b style='color:red'>error:</b> expected &lsquo;<b>declare</b>&rsquo; before &lsquo;<b>critical</b>&rsquo;
+<b>t.c:6:19:</b> <span class="boldred">error:</span> expected &lsquo;<b>declare</b>&rsquo; before &lsquo;<b>critical</b>&rsquo;
    #pragma omp end critical
-                   <b style='color:lime'>^</b>
+                   <span class="boldred">^</span>
 </pre>
 
 <p>There is no <code>#pragma omp end critical</code> directive for C/C++
@@ -105,9 +105,9 @@
 <p>This example now gives the following diagnostic:</p>
 
 <pre>
-<b>w.c:5:9:</b> <b style='color:magenta'>warning:</b> right-hand operand of comma expression has no effect [-Wunused-value]
+<b>w.c:5:9:</b> <span class="boldmagenta">warning:</span> right-hand operand of comma expression has no effect [-Wunused-value]
    bar (), i;
-         <b style='color:lime'>^</b>
+         <span class="boldlime">^</span>
 </pre>
 
 <p>To suppress this warning cast the right-hand operand to <code>void</code>:</p>
@@ -135,12 +135,12 @@
 <p>This example now gives the following diagnostic:</p>
 
 <pre>
-<b>e.cc:8:9:</b> <b style='color:red'>error:</b> redeclaration of &lsquo;<b>int e</b>&rsquo; [-fpermissive]
+<b>e.cc:8:9:</b> <span class="boldred">error:</span> redeclaration of &lsquo;<b>int e</b>&rsquo; [-fpermissive]
      int e = 0;                                                                       
-         <b style='color:lime'>^</b>
-<b>e.cc:7:21:</b> <b style='color:cyan'>note:</b> &lsquo;<b>const E&amp; e</b>&rsquo; previously declared here
+         <span class="boldlime">^</span>
+<b>e.cc:7:21:</b> <span class="boldcyan">note:</span> &lsquo;<b>const E&amp; e</b>&rsquo; previously declared here
    } catch (const E&amp; e) {                                                             
-                     <b style='color:lime'>^</b>
+                     <span class="boldlime">^</span>
 </pre>
 
 <p>
@@ -169,7 +169,7 @@
 <p>This example now gives the following diagnostic:</p>
 
 <pre>
-<b>r.cc:8:21:</b> <b style='color:red'>error:</b> redeclaration of &lsquo;<b>void A&lt;T&gt;::f(int)</b>&rsquo; may not have default arguments [-fpermissive]
+<b>r.cc:8:21:</b> <span class="boldred">error:</span> redeclaration of &lsquo;<b>void A&lt;T&gt;::f(int)</b>&rsquo; may not have default arguments [-fpermissive]
 </pre>
 
 <p>
@@ -189,9 +189,9 @@
 a diagnostic like:</p>
 <pre>
 <b>/usr/include/c++/4.9.0/bits/shared_ptr_base.h:</b> In member function &lsquo;<b>virtual void* std::_Sp_counted_deleter&lt;_Ptr, _Deleter, _Alloc, _Lp&gt;::_M_get_deleter(const std::type_info&amp;)</b>&rsquo;:
-<b>/usr/include/c++/4.9.0/bits/shared_ptr_base.h:479:39:</b> <b style='color:red'>error:</b> must #include &lt;typeinfo&gt; before using typeid
+<b>/usr/include/c++/4.9.0/bits/shared_ptr_base.h:479:39:</b> <span class="boldred">error:</span> must #include &lt;typeinfo&gt; before using typeid
          return __ti == typeid(_Deleter) ? &amp;_M_impl._M_del() : nullptr;
-                                       <b style='color:lime'>^</b>
+                                       <span class="boldlime">^</span>
 </pre>
 
 <p>All <code>&lt;bits/xxx.h&gt;</code> headers are internal library headers
@@ -205,14 +205,14 @@
 only.
 For instance with GMP versions up to 5.1.3, you may see: </p>
 <pre>
-<b>/usr/include/c++/4.9.0/cstddef:51:11:</b> <b style='color:red'>error:</b> &lsquo;<b>::max_align_t</b>&rsquo; has not been declared
+<b>/usr/include/c++/4.9.0/cstddef:51:11:</b> <span class="boldred">error:</span> &lsquo;<b>::max_align_t</b>&rsquo; has not been declared
    using ::max_align_t;
-           <b style='color:lime'>^</b>
+           <span class="boldlime">^</span>
 </pre>
 
 <p>Another possible error is:</p>
 <pre>
-<b>someheader.h:99:13:</b> <b style='color:red'>error:</b> &lsquo;<b>ptrdiff_t</b>&rsquo; does not name a type
+<b>someheader.h:99:13:</b> <span class="boldred">error:</span> &lsquo;<b>ptrdiff_t</b>&rsquo; does not name a type
 </pre>
 <p>A workaround until libraries get updated is to include
 <code>&lt;cstddef&gt;</code> or <code>&lt;stddef.h&gt;</code> before any


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]