summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2012-09-11 22:50:11 +0300
committerChristian Beier <dontmind@freeshell.org>2012-09-14 18:47:17 +0200
commit3cbef1a976731bb3a714ee13cbd1813ed142ae5e (patch)
tree23304ece279ab76aacc8b1d4958ea02bfe7204d7 /test
parent88e60435854e7f8edf085a5f4564c7e8cd847699 (diff)
downloadlibtdevnc-3cbef1a976731bb3a714ee13cbd1813ed142ae5e.tar.gz
libtdevnc-3cbef1a976731bb3a714ee13cbd1813ed142ae5e.zip
Use C-style comments in rfbconfig.h.cmake and C source code.
Using C++-style comments when building the code with -ansi does not work, so be more conservative with the comment style.
Diffstat (limited to 'test')
-rw-r--r--test/bmp.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/bmp.h b/test/bmp.h
index 055b1ee..9d1c263 100644
--- a/test/bmp.h
+++ b/test/bmp.h
@@ -13,8 +13,8 @@
* wxWindows Library License for more details.
*/
-// This provides rudimentary facilities for loading and saving true color
-// BMP and PPM files
+/* This provides rudimentary facilities for loading and saving true color */
+/* BMP and PPM files */
#ifndef __BMP_H__
#define __BMP_H__
@@ -26,16 +26,20 @@ enum BMPPIXELFORMAT {BMP_RGB=0, BMP_RGBX, BMP_BGR, BMP_BGRX, BMP_XBGR, BMP_XRGB}
extern "C" {
#endif
-// This will load a Windows bitmap from a file and return a buffer with the
-// specified pixel format, scanline alignment, and orientation. The width and
-// height are returned in w and h.
+/*
+ * This will load a Windows bitmap from a file and return a buffer with the
+ * specified pixel format, scanline alignment, and orientation. The width and
+ * height are returned in w and h.
+ */
int loadbmp(char *filename, unsigned char **buf, int *w, int *h,
enum BMPPIXELFORMAT f, int align, int dstbottomup);
-// This will save a buffer with the specified pixel format, pitch, orientation,
-// width, and height as a 24-bit Windows bitmap or PPM (the filename determines
-// which format to use)
+/*
+ * This will save a buffer with the specified pixel format, pitch, orientation,
+ * width, and height as a 24-bit Windows bitmap or PPM (the filename determines
+ * which format to use)
+ */
int savebmp(char *filename, unsigned char *buf, int w, int h,
enum BMPPIXELFORMAT f, int srcpitch, int srcbottomup);