Commits

Pierre Joye committed b417ec2

ws space to tab

Comments (0)

Files changed (1)

 
 void gd_stderr_error(int priority, const char *format, ...)
 {
-        va_list args;
+		va_list args;
 
-        va_start(args, format);
+		va_start(args, format);
 	switch (priority) {
 	case GD_ERROR:
 		fputs("GD Error: ", stderr);
 
 void gd_error(const char *format, ...)
 {
-        va_list args;
+		va_list args;
 
-        va_start(args, format);
-	gd_error_ex(GD_WARNING, format, args);
-        va_end(args);
+		va_start(args, format);
+		gd_error_ex(GD_WARNING, format, args);
+		va_end(args);
 }
 void gd_error_ex(int priority, const char *format, ...)
 {
-        va_list args;
+		va_list args;
 
-        va_start(args, format);
-	if (gd_error_method) {
-		gd_error_method(priority, format, args);
-	}
-        va_end(args);
+		va_start(args, format);
+		if (gd_error_method) {
+			gd_error_method(priority, format, args);
+		}
+		va_end(args);
 }
 
 BGD_DECLARE(void) gdSetErrorMethod(gdErrorMethod error_method)
 
 }
 static void dashedSet (gdImagePtr im, int x, int y, int color,
-                       int *onP, int *dashStepP, int wid, int vert);
+					   int *onP, int *dashStepP, int wid, int vert);
 
 BGD_DECLARE(void) gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color)
 {
 
 static void
 dashedSet (gdImagePtr im, int x, int y, int color,
-           int *onP, int *dashStepP, int wid, int vert)
+		   int *onP, int *dashStepP, int wid, int vert)
 {
 	int dashStep = *dashStepP;
 	int on = *onP;
 }
 
 BGD_DECLARE(void) gdImageString (gdImagePtr im, gdFontPtr f,
-                                 int x, int y, unsigned char *s, int color)
+								 int x, int y, unsigned char *s, int color)
 {
 	int i;
 	int l;
 }
 
 BGD_DECLARE(void) gdImageStringUp (gdImagePtr im, gdFontPtr f,
-                                   int x, int y, unsigned char *s, int color)
+								   int x, int y, unsigned char *s, int color)
 {
 	int i;
 	int l;
 static int strlen16 (unsigned short *s);
 
 BGD_DECLARE(void) gdImageString16 (gdImagePtr im, gdFontPtr f,
-                                   int x, int y, unsigned short *s, int color)
+								   int x, int y, unsigned short *s, int color)
 {
 	int i;
 	int l;
 }
 
 BGD_DECLARE(void) gdImageStringUp16 (gdImagePtr im, gdFontPtr f,
-                                     int x, int y, unsigned short *s, int color)
+									 int x, int y, unsigned short *s, int color)
 {
 	int i;
 	int l;
    seem to be bug-free yet. */
 
 BGD_DECLARE(void) gdImageArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e,
-                              int color)
+							  int color)
 {
 	gdImageFilledArc (im, cx, cy, w, h, s, e, color, gdNoFill);
 }
 
 BGD_DECLARE(void) gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e,
-                                    int color, int style)
+									int color, int style)
 {
 	gdPoint pts[3];
 	int i;
 /* max depth of stack */
 #define FILL_MAX ((int)(im->sy*im->sx)/4)
 #define FILL_PUSH(Y, XL, XR, DY) \
-    if (sp<stack+FILL_MAX && Y+(DY)>=0 && Y+(DY)<wy2) \
-    {sp->y = Y; sp->xl = XL; sp->xr = XR; sp->dy = DY; sp++;}
+	if (sp<stack+FILL_MAX && Y+(DY)>=0 && Y+(DY)<wy2) \
+	{sp->y = Y; sp->xl = XL; sp->xr = XR; sp->dy = DY; sp++;}
 
 #define FILL_POP(Y, XL, XR, DY) \
-    {sp--; Y = sp->y+(DY = sp->dy); XL = sp->xl; XR = sp->xr;}
+	{sp--; Y = sp->y+(DY = sp->dy); XL = sp->xl; XR = sp->xr;}
 
 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc);
 BGD_DECLARE(void) gdImageFill(gdImagePtr im, int x, int y, int nc)
 }
 
 BGD_DECLARE(void) gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2,
-        int color)
+		int color)
 {
 	int x, y;
 
 }
 
 BGD_DECLARE(void) gdImageCopy (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX,
-                               int srcY, int w, int h)
+							   int srcY, int w, int h)
 {
 	int c;
 	int x, y;
 /* This function is a substitute for real alpha channel operations,
    so it doesn't pay attention to the alpha channel. */
 BGD_DECLARE(void) gdImageCopyMerge (gdImagePtr dst, gdImagePtr src, int dstX, int dstY,
-                                    int srcX, int srcY, int w, int h, int pct)
+									int srcX, int srcY, int w, int h, int pct)
 {
 
 	int c, dc;
 /* This function is a substitute for real alpha channel operations,
    so it doesn't pay attention to the alpha channel. */
 BGD_DECLARE(void) gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY,
-                                        int srcX, int srcY, int w, int h, int pct)
+										int srcX, int srcY, int w, int h, int pct)
 {
 
 	int c, dc;
 }
 
 BGD_DECLARE(void) gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY,
-                                      int srcX, int srcY, int dstW, int dstH, int srcW,
-                                      int srcH)
+									  int srcX, int srcY, int dstW, int dstH, int srcW,
+									  int srcH)
 {
 	int c;
 	int x, y;
 /* gd 2.0.8: gdImageCopyRotated is added. Source
 	is a rectangle, with its upper left corner at
 	srcX and srcY. Destination is the *center* of
-        the rotated copy. Angle is in degrees, same as
-        gdImageArc. Floating point destination center
+		the rotated copy. Angle is in degrees, same as
+		gdImageArc. Floating point destination center
 	coordinates allow accurate rotation of
 	objects of odd-numbered width or height. */
 
 BGD_DECLARE(void) gdImageCopyRotated (gdImagePtr dst,
-                                      gdImagePtr src,
-                                      double dstX, double dstY,
-                                      int srcX, int srcY,
-                                      int srcWidth, int srcHeight, int angle)
+									  gdImagePtr src,
+									  double dstX, double dstY,
+									  int srcX, int srcY,
+									  int srcWidth, int srcHeight, int angle)
 {
 	double dx, dy;
 	double radius = sqrt (srcWidth * srcWidth + srcHeight * srcHeight);
 /*#define floor2(exp) floor(exp)*/
 
 BGD_DECLARE(void) gdImageCopyResampled (gdImagePtr dst,
-                                        gdImagePtr src,
-                                        int dstX, int dstY,
-                                        int srcX, int srcY,
-                                        int dstW, int dstH, int srcW, int srcH)
+										gdImagePtr src,
+										int dstX, int dstY,
+										int srcX, int srcY,
+										int dstW, int dstH, int srcW, int srcH)
 {
 	int x, y;
 	double sy1, sy2, sx1, sx2;