Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2002 23:21:11 -0400
From:      The Anarcat <anarcat@anarcat.ath.cx>
To:        Libh <freebsd-libh@freebsd.org>
Subject:   Style guide suggestion
Message-ID:  <20021015032111.GA90347@lenny.anarcat.ath.cx>

next in thread | raw e-mail | index | archive | help

--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I suggest the following patch as a preliminary style guide for libh.

(I always seem to forget the basics of doxygen's format, so I thought
putting some examples in there to make life easier for readers and
developers alike. :)

A.

Index: HACKERS
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/libh/cvs/libh/HACKERS,v
retrieving revision 1.5
diff -u -u -r1.5 HACKERS
--- HACKERS	22 Apr 2002 18:08:03 -0000	1.5
+++ HACKERS	15 Oct 2002 03:19:43 -0000
@@ -6,6 +6,33 @@
 This is a simple guide where guidelines to develop libh should be
 stored.
=20
+Style
+--------------------------------------------------------------------------=
----
+
+Please follow style(9) when possible.
+
+Comments should be formatted in Doxygen format, that is:
+
+/**
+ * Function name
+ *
+ * description.
+ *=20
+ * Another description paragraph, multi-line
+ * this time.
+ *
+ * @param p a parameter
+ * @returns function return value
+ * @see that_other_function()
+ */
+
+or
+
+/// single line comments
+
+Class/interface descriptions must be stored in the .h[h]
+files.
+
 Current functionality
 --------------------------------------------------------------------------=
----
=20


--=20
Premature optimization is the root of all evil
                        - Donald Knuth

--cNdxnHkX5QqsyA0e
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE9q4mmttcWHAnWiGcRAjJUAJ0aWOO2Vc3u9ms2ln7QcM/2HhuQuACgmPnB
ib6W4GZm235pW3C60cJCkR8=
=Re5Q
-----END PGP SIGNATURE-----

--cNdxnHkX5QqsyA0e--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-libh" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021015032111.GA90347>