[libng16] Mention prototype format in the documentation (libpng style guide)
diff --git a/libpng-manual.txt b/libpng-manual.txt
index 841982a..2e82241 100644
--- a/libpng-manual.txt
+++ b/libpng-manual.txt
@@ -1,6 +1,6 @@
libpng-manual.txt - A description on how to use and modify libpng
- libpng version 1.6.10rc04 - March 4, 2014
+ libpng version 1.6.10rc04 - March 5, 2014
Updated and distributed by Glenn Randers-Pehrson
<glennrp at users.sourceforge.net>
Copyright (c) 1998-2014 Glenn Randers-Pehrson
@@ -11,7 +11,7 @@
Based on:
- libpng versions 0.97, January 1998, through 1.6.10rc04 - March 4, 2014
+ libpng versions 0.97, January 1998, through 1.6.10rc04 - March 5, 2014
Updated and distributed by Glenn Randers-Pehrson
Copyright (c) 1998-2014 Glenn Randers-Pehrson
@@ -5337,8 +5337,8 @@
used them in the past in some now-abandoned MMX assembler
code.
-Functions and their curly braces are not indented, and
-exported functions are marked with PNGAPI:
+Functions and their curly braces are not indented, exported
+functions are marked with PNGAPI:
/* This is a public function that is visible to
* application programmers. It does thus-and-so.
@@ -5349,6 +5349,9 @@
body;
}
+The return type and decorations are placed on a separate line
+ahead of the function name, as illustrated above.
+
The prototypes for all exported functions appear in png.h,
above the comment that says
@@ -5413,7 +5416,7 @@
XVI. Y2K Compliance in libpng
-March 4, 2014
+March 5, 2014
Since the PNG Development group is an ad-hoc body, we can't make
an official declaration.
diff --git a/libpng.3 b/libpng.3
index 125d15d..d1df32c 100644
--- a/libpng.3
+++ b/libpng.3
@@ -1,4 +1,4 @@
-.TH LIBPNG 3 "March 4, 2014"
+.TH LIBPNG 3 "March 5, 2014"
.SH NAME
libpng \- Portable Network Graphics (PNG) Reference Library 1.6.10rc04
.SH SYNOPSIS
@@ -504,7 +504,7 @@
.SH LIBPNG.TXT
libpng-manual.txt - A description on how to use and modify libpng
- libpng version 1.6.10rc04 - March 4, 2014
+ libpng version 1.6.10rc04 - March 5, 2014
Updated and distributed by Glenn Randers-Pehrson
<glennrp at users.sourceforge.net>
Copyright (c) 1998-2014 Glenn Randers-Pehrson
@@ -515,7 +515,7 @@
Based on:
- libpng versions 0.97, January 1998, through 1.6.10rc04 - March 4, 2014
+ libpng versions 0.97, January 1998, through 1.6.10rc04 - March 5, 2014
Updated and distributed by Glenn Randers-Pehrson
Copyright (c) 1998-2014 Glenn Randers-Pehrson
@@ -5842,8 +5842,8 @@
used them in the past in some now-abandoned MMX assembler
code.
-Functions and their curly braces are not indented, and
-exported functions are marked with PNGAPI:
+Functions and their curly braces are not indented, exported
+functions are marked with PNGAPI:
/* This is a public function that is visible to
* application programmers. It does thus-and-so.
@@ -5854,6 +5854,9 @@
body;
}
+The return type and decorations are placed on a separate line
+ahead of the function name, as illustrated above.
+
The prototypes for all exported functions appear in png.h,
above the comment that says
@@ -5918,7 +5921,7 @@
.SH XVI. Y2K Compliance in libpng
-March 4, 2014
+March 5, 2014
Since the PNG Development group is an ad-hoc body, we can't make
an official declaration.
@@ -6213,7 +6216,7 @@
Thanks to Frank J. T. Wojcik for helping with the documentation.
-Libpng version 1.6.10rc04 - March 4, 2014:
+Libpng version 1.6.10rc04 - March 5, 2014:
Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc.
Currently maintained by Glenn Randers-Pehrson (glennrp at users.sourceforge.net).
@@ -6236,7 +6239,7 @@
This code is released under the libpng license.
-libpng versions 1.2.6, August 15, 2004, through 1.6.10rc04, March 4, 2014, are
+libpng versions 1.2.6, August 15, 2004, through 1.6.10rc04, March 5, 2014, are
Copyright (c) 2004,2006-2007 Glenn Randers-Pehrson, and are
distributed according to the same disclaimer and license as libpng-1.2.5
with the following individual added to the list of Contributing Authors
@@ -6335,7 +6338,7 @@
Glenn Randers-Pehrson
glennrp at users.sourceforge.net
-March 4, 2014
+March 5, 2014
.\" end of man page
diff --git a/pngtest.c b/pngtest.c
index 0354106..a64b77a 100644
--- a/pngtest.c
+++ b/pngtest.c
@@ -668,8 +668,7 @@
}
static int PNGCBAPI
-read_user_chunk_callback(png_struct *png_ptr,
- png_unknown_chunkp chunk)
+read_user_chunk_callback(png_struct *png_ptr, png_unknown_chunkp chunk)
{
struct user_chunk_data *my_user_chunk_data =
(struct user_chunk_data*)png_get_user_chunk_ptr(png_ptr);