Ondřej Surý avatar Ondřej Surý committed 6cc113c

Fix warning: C++ style comments are not allowed in ISO C90 [enabled by default]

Comments (0)

Files changed (5)

 #	include "config.h"
 #endif
 
-//#include <stdio.h>
 #include <stdlib.h>
 #include <setjmp.h>
 #include <limits.h>

tests/gdimagecopy/bug00007.c

 	gdImageAlphaBlending(dst_tc, 0);
 	gdImageCopy(dst_tc, src, 0,0, 0,0, gdImageSX(src), gdImageSY(src));
 
-	//CuAssertImageEquals(tc, src, dst_tc);
+	/* CuAssertImageEquals(tc, src, dst_tc); */
 
 	/* Destroy it */
 	gdImageDestroy(dst_tc);

tests/gdimagefilledpolygon/bug00100.c

 	gdPoint diamond[4];
 	int d, x, y, top, bot, left, right, r;
 
-	//                              R    G    B
+	/*                              R    G    B */
 	int white   = gdTrueColorAlpha(255, 255, 255, 10);
 	int black   = gdTrueColorAlpha(  0,   0,   0, 10);
 	int red     = gdTrueColorAlpha(255,   0,   0, 10);
 
 	gdImageFilledRectangle(im, 0, 0, 256, 256, white);
 
-	// M (bridge)
+	/* M (bridge) */
 	top = 240;
 	bot = 255;
 	d = 30;
 	pointy[4].y = bot;
 	gdImageFilledPolygon(im, pointy, 5, yellow);
 
-	// left-facing M not on baseline
+	/* left-facing M not on baseline */
 	top = 40;
 	bot = 70;
 	left = 120;
 	pointy[4].y = (top+bot)/2;
 	gdImageFilledPolygon(im, pointy, 5, purple);
 
-	// left-facing M on baseline
+	/* left-facing M on baseline */
 	top = 240;
 	bot = 270;
 	left = 20;
 	pointy[4].y = (top+bot)/2;
 	gdImageFilledPolygon(im, pointy, 5, magenta);
 
-	// left-facing M on ceiling
+	/* left-facing M on ceiling */
 	top = -15;
 	bot = 15;
 	left = 20;
 	diamond[3].y = y-d;
 	gdImageFilledPolygon(im, diamond, 4, cyan);
 
-	// M (bridge) not touching bottom boundary
+	/* M (bridge) not touching bottom boundary */
 	top = 100;
 	bot = 150;
 	x = 30;

tests/gdimageline/gdimageline_aa.c

 	x2 = floor(reverse_x *  width*2 + 0.5);
 	y2 = floor((offset+width*2) * gradient + 0.5);
 
-	// draw an AA line
+	/* draw an AA line */
 	gdImageLine(im, x1, y1, x2, y2, gdAntiAliased);
 
 	gdImageLine(im, 0, im->sy - 1, im->sx, im->sy - 1, 0x40FF0000);

tests/gdtest/gdtest.c

 				r1 = gdTrueColorGetRed(c1);
 				r2 = gdTrueColorGetRed(c2);
 				diff_r = abs (r1 - r2);
-				//diff_r *= 4;  /* emphasize */
+				/* diff_r *= 4;  /* emphasize */
 				if (diff_r) {
 					diff_r += gdRedMax/2; /* make sure it's visible */
 				}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.