diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2012-03-29 10:01:39 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2012-03-29 10:01:39 (GMT) |
commit | a04d4ca72829098ce0b46176b0578543d85a8f9a (patch) | |
tree | 8c5a2efb60759a576a3fa53913a32dab7c0ed8f3 /src | |
parent | 8a254e5b71d1fec8c35613f2c5c29b4838280a5d (diff) | |
download | mxe-a04d4ca72829098ce0b46176b0578543d85a8f9a.zip mxe-a04d4ca72829098ce0b46176b0578543d85a8f9a.tar.gz mxe-a04d4ca72829098ce0b46176b0578543d85a8f9a.tar.bz2 |
Improve comment style of all test programs
Diffstat (limited to 'src')
51 files changed, 219 insertions, 110 deletions
diff --git a/src/boost-test.cpp b/src/boost-test.cpp index 7ec6613..403a251 100644 --- a/src/boost-test.cpp +++ b/src/boost-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <iostream> #include <boost/archive/xml_oarchive.hpp> diff --git a/src/curl-test.c b/src/curl-test.c index 291bf6f..4055fe8 100644 --- a/src/curl-test.c +++ b/src/curl-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <curl/curl.h> diff --git a/src/file-test.c b/src/file-test.c index 337cfb9..1d038b1 100644 --- a/src/file-test.c +++ b/src/file-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdio.h> #include <magic.h> diff --git a/src/fltk-test.cpp b/src/fltk-test.cpp index 7c59564..e3a476d 100644 --- a/src/fltk-test.cpp +++ b/src/fltk-test.cpp @@ -1,7 +1,11 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + * + * This is a slightly modified version of: + * http://www.fltk.org/doc-1.3/basics.html + */ -/* http://www.fltk.org/doc-1.3/basics.html */ #include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/Fl_Box.H> diff --git a/src/freeglut-test.c b/src/freeglut-test.c index aaa2d73..d3c9e92 100644 --- a/src/freeglut-test.c +++ b/src/freeglut-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <GL/glut.h> diff --git a/src/gd-test.c b/src/gd-test.c index a4659bc..d31391b 100644 --- a/src/gd-test.c +++ b/src/gd-test.c @@ -1,7 +1,10 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ - -/* modified from /examples/arc.c */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + * + * This is a slightly modified version of: + * examples/arc.c + */ #include "gd.h" #include <stdio.h> diff --git a/src/geos-test.c b/src/geos-test.c index 9762e99..5f4f5d3 100644 --- a/src/geos-test.c +++ b/src/geos-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdarg.h> #include <stdio.h> diff --git a/src/glew-test.c b/src/glew-test.c index bdc36f1..68dfba5 100644 --- a/src/glew-test.c +++ b/src/glew-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdio.h> #include <GL/glew.h> diff --git a/src/gnutls-test.c b/src/gnutls-test.c index c0bbef0..73f7c26 100644 --- a/src/gnutls-test.c +++ b/src/gnutls-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <gnutls/gnutls.h> diff --git a/src/graphicsmagick-test.cpp b/src/graphicsmagick-test.cpp index e6dc8ac..517483a 100644 --- a/src/graphicsmagick-test.cpp +++ b/src/graphicsmagick-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <Magick++.h> diff --git a/src/gsl-test.c b/src/gsl-test.c index 82bdcf8..d84fd94 100644 --- a/src/gsl-test.c +++ b/src/gsl-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdio.h> #include <gsl/gsl_sf_bessel.h> diff --git a/src/gta-test.c b/src/gta-test.c index 66e77ab..5ff8222 100644 --- a/src/gta-test.c +++ b/src/gta-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <gta/gta.h> diff --git a/src/gtk2-test.c b/src/gtk2-test.c index 53db936..b4685e1 100644 --- a/src/gtk2-test.c +++ b/src/gtk2-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <gtk/gtk.h> diff --git a/src/gtkglext-test.c b/src/gtkglext-test.c index e4c25d5..be49e89 100644 --- a/src/gtkglext-test.c +++ b/src/gtkglext-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <gtk/gtk.h> #include <gtk/gtkgl.h> diff --git a/src/gtkglextmm-test.cpp b/src/gtkglextmm-test.cpp index 20e0bdf..2a10220 100644 --- a/src/gtkglextmm-test.cpp +++ b/src/gtkglextmm-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */
-/* See doc/index.html for further information. */
+/*
+ * This file is part of MXE.
+ * See doc/index.html for further information.
+ */
#include <gtkmm/main.h>
#include <gtkmm/gl/init.h>
diff --git a/src/gtkmm2-test.cpp b/src/gtkmm2-test.cpp index dffd751..741d0eb 100644 --- a/src/gtkmm2-test.cpp +++ b/src/gtkmm2-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <gtkmm/window.h> #include <gtkmm/main.h> diff --git a/src/guile-test.c b/src/guile-test.c index b8cc22d..576d8d1 100644 --- a/src/guile-test.c +++ b/src/guile-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <libguile.h> diff --git a/src/jpeg-test.c b/src/jpeg-test.c index 8d442fe..b98016e 100644 --- a/src/jpeg-test.c +++ b/src/jpeg-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdio.h> #include <windows.h> diff --git a/src/libarchive-test.c b/src/libarchive-test.c index d6ab632..fd9196b 100644 --- a/src/libarchive-test.c +++ b/src/libarchive-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <archive.h> diff --git a/src/libass-test.c b/src/libass-test.c index 71e069c..c5e0324 100644 --- a/src/libass-test.c +++ b/src/libass-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <ass/ass.h> diff --git a/src/libffi-test.c b/src/libffi-test.c index 630ce05..1bf9775 100644 --- a/src/libffi-test.c +++ b/src/libffi-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdio.h> #include <ffi.h> diff --git a/src/libgomp-test.c b/src/libgomp-test.c index 065b328..a63a621 100644 --- a/src/libgomp-test.c +++ b/src/libgomp-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <omp.h> #include <stdio.h> diff --git a/src/libgsasl-test.c b/src/libgsasl-test.c index cddbca6..997126f 100644 --- a/src/libgsasl-test.c +++ b/src/libgsasl-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <gsasl.h> diff --git a/src/libiberty-test.c b/src/libiberty-test.c index 4f0d38b..f5272cb 100644 --- a/src/libiberty-test.c +++ b/src/libiberty-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #define _GNU_SOURCE #include <stdio.h> diff --git a/src/libical-test.c b/src/libical-test.c index 38505a4..ca73862 100644 --- a/src/libical-test.c +++ b/src/libical-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdio.h> #include <libical/ical.h> diff --git a/src/libidn-test.c b/src/libidn-test.c index 22f46f6..5bb52fd 100644 --- a/src/libidn-test.c +++ b/src/libidn-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdlib.h> #include <idna.h> diff --git a/src/libircclient-test.cpp b/src/libircclient-test.cpp index bdfbbbf..7c80833 100644 --- a/src/libircclient-test.cpp +++ b/src/libircclient-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <libircclient/libircclient.h> diff --git a/src/libmikmod-test.c b/src/libmikmod-test.c index 654e6f7..9b24f6f 100644 --- a/src/libmikmod-test.c +++ b/src/libmikmod-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <mikmod.h> diff --git a/src/liboauth-test.c b/src/liboauth-test.c index 4aad98e..b0eecc3 100644 --- a/src/liboauth-test.c +++ b/src/liboauth-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdio.h> #include <oauth.h> diff --git a/src/libpng-test.c b/src/libpng-test.c index d9ee8a6..bf036d2 100644 --- a/src/libpng-test.c +++ b/src/libpng-test.c @@ -1,8 +1,10 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ - -/* This is a slightly modified version of: */ -/* http://ironalbatross.net/wiki/index.php5?title=CPP_LIBPNG#Minimal_Example_of_writing_a_PNG_File */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + * + * This is a slightly modified version of: + * http://ironalbatross.net/wiki/index.php5?title=CPP_LIBPNG#Minimal_Example_of_writing_a_PNG_File + */ #include <stdio.h> #include <stdlib.h> diff --git a/src/librsvg-test.c b/src/librsvg-test.c index 3bfe8fb..35964e2 100644 --- a/src/librsvg-test.c +++ b/src/librsvg-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <librsvg/rsvg.h> diff --git a/src/libssh2-test.c b/src/libssh2-test.c index 3b5d73b..8051039 100644 --- a/src/libssh2-test.c +++ b/src/libssh2-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdio.h> #include <libssh2.h> diff --git a/src/lua-test.c b/src/lua-test.c index f13fcfe..249ff41 100644 --- a/src/lua-test.c +++ b/src/lua-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdio.h> #include <lua.h> diff --git a/src/mxml-test.c b/src/mxml-test.c index 405096f..aaf94d0 100644 --- a/src/mxml-test.c +++ b/src/mxml-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <mxml.h> diff --git a/src/openal-test.c b/src/openal-test.c index d8d0c47..9e3ead1 100644 --- a/src/openal-test.c +++ b/src/openal-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <AL/alc.h> diff --git a/src/physfs-test.c b/src/physfs-test.c index 1ca1fc0..ca2173f 100644 --- a/src/physfs-test.c +++ b/src/physfs-test.c @@ -1,7 +1,10 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ - -/* modified from test/physfs_test.c */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + * + * This is a slightly modified version of: + * test/physfs_test.c + */ #include "physfs.h" #include <stdio.h> diff --git a/src/poco-test.cpp b/src/poco-test.cpp index caed18b..a79a1c0 100644 --- a/src/poco-test.cpp +++ b/src/poco-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <iostream> #include <Poco/DateTimeFormat.h> diff --git a/src/portaudio-test.c b/src/portaudio-test.c index 872ef1a..d0b4b9a 100644 --- a/src/portaudio-test.c +++ b/src/portaudio-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <portaudio.h> #include <stdio.h> diff --git a/src/pthreads-test.c b/src/pthreads-test.c index 1072713..b805d20 100644 --- a/src/pthreads-test.c +++ b/src/pthreads-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <stdio.h> #include <pthread.h> diff --git a/src/qt-test.cpp b/src/qt-test.cpp index de15e01..daa9a66 100644 --- a/src/qt-test.cpp +++ b/src/qt-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <QApplication> #include <QtPlugin> diff --git a/src/qt-test.ui b/src/qt-test.ui index 26ba03a..06edb95 100644 --- a/src/qt-test.ui +++ b/src/qt-test.ui @@ -1,7 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- This file is part of MXE. --> -<!-- See doc/index.html for further information. --> +<!-- + This file is part of MXE. + See doc/index.html for further information. +--> <ui version="4.0"> <class>MainWindow</class> diff --git a/src/sdl-test.c b/src/sdl-test.c index 8642d91..8f90cdd 100644 --- a/src/sdl-test.c +++ b/src/sdl-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <SDL.h> diff --git a/src/sdl_image-test.c b/src/sdl_image-test.c index e219f3c..43daa7a 100644 --- a/src/sdl_image-test.c +++ b/src/sdl_image-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <SDL.h> #include <SDL_image.h> diff --git a/src/sdl_mixer-test.c b/src/sdl_mixer-test.c index 902fa10..78b7389 100644 --- a/src/sdl_mixer-test.c +++ b/src/sdl_mixer-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <SDL_mixer.h> diff --git a/src/sdl_net-test.c b/src/sdl_net-test.c index 24c4753..e212430 100644 --- a/src/sdl_net-test.c +++ b/src/sdl_net-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <SDL_net.h> diff --git a/src/sdl_sound-test.c b/src/sdl_sound-test.c index 852b6c8..00d0418 100644 --- a/src/sdl_sound-test.c +++ b/src/sdl_sound-test.c @@ -1,8 +1,13 @@ -/* Simple test program for SDL_sound that tries to decode the file specified
- * as the only command-line argument.
+/*
+ * This file is part of MXE.
+ * See doc/index.html for further information.
+ *
+ * This is a simple test program for SDL_sound that tries to
+ * decode the file specified as the only command-line argument.
*
* This file is in the Public Domain.
*/
+
#include <stdio.h>
#include <SDL_sound.h>
diff --git a/src/smpeg-test.c b/src/smpeg-test.c index 348f666..6c39ba5 100644 --- a/src/smpeg-test.c +++ b/src/smpeg-test.c @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <smpeg.h> #include <stdio.h> diff --git a/src/tinyxml-test.cpp b/src/tinyxml-test.cpp index 9508016..013267c 100644 --- a/src/tinyxml-test.cpp +++ b/src/tinyxml-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <iostream> #include <tinyxml.h> diff --git a/src/vigra-test.cpp b/src/vigra-test.cpp index 032b83a..273371e 100644 --- a/src/vigra-test.cpp +++ b/src/vigra-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <string> #include <iostream> diff --git a/src/wxwidgets-test.cpp b/src/wxwidgets-test.cpp index 3423d3b..d48460f 100644 --- a/src/wxwidgets-test.cpp +++ b/src/wxwidgets-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <wx/wx.h> diff --git a/src/xerces-test.cpp b/src/xerces-test.cpp index 5348b9c..39949fd 100644 --- a/src/xerces-test.cpp +++ b/src/xerces-test.cpp @@ -1,5 +1,7 @@ -/* This file is part of MXE. */ -/* See doc/index.html for further information. */ +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ #include <xercesc/parsers/SAXParser.hpp> |