This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin 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]

[newlib-cygwin] winsup/doc: Generate ANSI rather than K&R style function prototypes


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a197d1d5043c6de7073517463eb97ad224724712

commit a197d1d5043c6de7073517463eb97ad224724712
Author: Jon TURNEY <jon.turney@dronecode.org.uk>
Date:   Tue Jun 16 18:40:29 2015 +0100

    winsup/doc: Generate ANSI rather than K&R style function prototypes
    
    Since K&R style prototypes appear to be the default for HTML and FO, customize
    the stylesheets rendering of funcsynopsis elements to generate ANSI style
    prototypes instead.
    
    2015-06-17  Jon Turney  <jon.turney@dronecode.org.uk>
    
    	* fo.xsl: Render funcsynopsis elements as ANSI style function
    	prototypes.
    	* html.xsl: Ditto.
    
    Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>

Diff:
---
 winsup/doc/ChangeLog | 6 ++++++
 winsup/doc/fo.xsl    | 3 +++
 winsup/doc/html.xsl  | 3 +++
 3 files changed, 12 insertions(+)

diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog
index 2d0c07b..bde9d72 100644
--- a/winsup/doc/ChangeLog
+++ b/winsup/doc/ChangeLog
@@ -1,5 +1,11 @@
 2015-06-17  Jon Turney  <jon.turney@dronecode.org.uk>
 
+	* fo.xsl: Render funcsynopsis elements as ANSI style function
+	prototypes.
+	* html.xsl: Ditto.
+
+2015-06-17  Jon Turney  <jon.turney@dronecode.org.uk>
+
 	* html.xsl: Renamed from cygwin.xsl.
 
 2015-06-17  Corinna Vinschen  <corinna@vinschen.de>
diff --git a/winsup/doc/fo.xsl b/winsup/doc/fo.xsl
index ba8e191..f3fee0b 100644
--- a/winsup/doc/fo.xsl
+++ b/winsup/doc/fo.xsl
@@ -65,4 +65,7 @@
   </xsl:if>
 </xsl:template>
 
+	<!-- generate ansi rather than k&r style function synopses -->
+	<xsl:param name="funcsynopsis.style" select="ansi" />
+
 </xsl:stylesheet>
diff --git a/winsup/doc/html.xsl b/winsup/doc/html.xsl
index 2b02ea8..59b7735 100644
--- a/winsup/doc/html.xsl
+++ b/winsup/doc/html.xsl
@@ -23,4 +23,7 @@
 <!-- suppress refentry in toc being annotated with refpurpose -->
 <xsl:param name="annotate.toc" select="0" />
 
+<!-- generate ansi rather than k&r style function synopses -->
+<xsl:param name="funcsynopsis.style" select="ansi" />
+
 </xsl:stylesheet>


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