Commit 7cb1950f authored by Manish Singh's avatar Manish Singh

M_PI madness...

-Yosh
parent cd7edb60
Wed Mar 18 15:06:13 PST 1998 Manish Singh <yosh@gimp.org>
* define M_PI if it's not already defined in lots of
source files
Wed Mar 18 16:57:52 EST 1998 Adrian Likins <adrian@gimp.org>
* blend.c brightness_contrast.c brush_select.c brushes.c
......
......@@ -43,6 +43,10 @@
#define SQR(x) ((x) * (x))
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/* the Blend structures */
typedef enum
......
......@@ -43,6 +43,10 @@
#define SQR(x) ((x) * (x))
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/* the Blend structures */
typedef enum
......
......@@ -167,6 +167,10 @@
/***** Magic numbers *****/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define EPSILON 1e-10
#define GRAD_LIST_WIDTH 300
......
......@@ -167,6 +167,10 @@
/***** Magic numbers *****/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define EPSILON 1e-10
#define GRAD_LIST_WIDTH 300
......
......@@ -167,6 +167,10 @@
/***** Magic numbers *****/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define EPSILON 1e-10
#define GRAD_LIST_WIDTH 300
......
......@@ -39,6 +39,10 @@
#include "temp_buf.h"
#include "tools.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/* local structures */
typedef struct _IScissorsOptions IScissorsOptions;
......
......@@ -33,6 +33,10 @@
#include "tile_manager_pvt.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/* index into trans_info array */
#define ANGLE 0
#define REAL_ANGLE 1
......
......@@ -43,6 +43,10 @@
#define SQR(x) ((x) * (x))
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/* the Blend structures */
typedef enum
......
......@@ -43,6 +43,10 @@
#define SQR(x) ((x) * (x))
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/* the Blend structures */
typedef enum
......
......@@ -39,6 +39,10 @@
#include "temp_buf.h"
#include "tools.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/* local structures */
typedef struct _IScissorsOptions IScissorsOptions;
......
......@@ -33,6 +33,10 @@
#include "tile_manager_pvt.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/* index into trans_info array */
#define ANGLE 0
#define REAL_ANGLE 1
......
......@@ -39,6 +39,10 @@
#include "temp_buf.h"
#include "tools.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/* local structures */
typedef struct _IScissorsOptions IScissorsOptions;
......
......@@ -33,6 +33,10 @@
#include "tile_manager_pvt.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/* index into trans_info array */
#define ANGLE 0
#define REAL_ANGLE 1
......
......@@ -40,7 +40,7 @@
#include "tile_manager_pvt.h"
#define SQR(x) ((x) * (x))
/* define pi */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
......
......@@ -40,7 +40,7 @@
#include "tile_manager_pvt.h"
#define SQR(x) ((x) * (x))
/* define pi */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
......
......@@ -167,6 +167,10 @@
/***** Magic numbers *****/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define EPSILON 1e-10
#define GRAD_LIST_WIDTH 300
......
......@@ -80,6 +80,10 @@
#include <sys/stat.h>
#include <time.h> /* for seed of random number */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define PARAM_FILE_FORMAT_VERSION 1.0
#define PLUG_IN_NAME "plug_in_CML_explorer"
#define SHORT_NAME "CML_explorer"
......
......@@ -57,6 +57,10 @@
#include "libgimp/gimp.h"
#include "gtk/gtk.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define ENTRY_WIDTH 100
/* Declare local functions.
......
......@@ -54,6 +54,9 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/***** Magic numbers *****/
......
......@@ -98,6 +98,10 @@
/***** Magic numbers *****/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define PLUG_IN_NAME "plug_in_bump_map"
#define PLUG_IN_VERSION "August 1997, 2.04"
......
......@@ -80,6 +80,10 @@
#include <sys/stat.h>
#include <time.h> /* for seed of random number */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define PARAM_FILE_FORMAT_VERSION 1.0
#define PLUG_IN_NAME "plug_in_CML_explorer"
#define SHORT_NAME "CML_explorer"
......
......@@ -57,6 +57,10 @@
#include "libgimp/gimp.h"
#include "gtk/gtk.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define ENTRY_WIDTH 100
/* Declare local functions.
......
......@@ -54,6 +54,9 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
/***** Magic numbers *****/
......
......@@ -98,6 +98,10 @@
/***** Magic numbers *****/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define PLUG_IN_NAME "plug_in_bump_map"
#define PLUG_IN_VERSION "August 1997, 2.04"
......
......@@ -29,6 +29,10 @@
/* Some useful macros */
#define SQR(a) ((a) * (a))
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 125
#define BLACK 0
#define BG 1
......
......@@ -33,6 +33,9 @@
/***** Magic numbers *****/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define ITERATIONS 100 /* 100 */
#define WEIRD_FACTOR 0.04 /* 0.04 */
......
......@@ -37,6 +37,11 @@
#include <gtk/gtk.h>
#include <plug-ins/megawidget/megawidget.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
static mw_preview_t emboss_do_preview;
struct Grgb {
......
......@@ -22,6 +22,10 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define ENTRY_WIDTH 100
typedef struct
......
......@@ -40,6 +40,10 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define MAX_PREVIEW_WIDTH 256
#define MAX_PREVIEW_HEIGHT 256
#define MAX_DEFORM_AREA_RADIUS 100
......
......@@ -50,6 +50,9 @@
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define PLUG_IN_NAME "plug_in_mblur"
#define PLUG_IN_VERSION "Sep 1997, 1.2"
......
......@@ -31,6 +31,10 @@
/* The mosaic logo */
#include "mosaic_logo.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 150
#define SQR(x) ((x) * (x))
......
......@@ -65,6 +65,10 @@ static char rcsid[] = "$Id$";
/* Some useful macros */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#if 0
#define DEBUG1 printf
#else
......
......@@ -30,6 +30,9 @@
/* Some useful macros */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 200
#define TILE_CACHE_SIZE 16
......
......@@ -30,6 +30,10 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 125
#define TILE_CACHE_SIZE 16
#define MAX_CHANNELS 4
......
......@@ -29,8 +29,10 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
/* Some useful macros */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 200
#define TILE_CACHE_SIZE 16
......
......@@ -34,6 +34,10 @@
#include <gtk/gtk.h>
#include <plug-ins/megawidget/megawidget.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
struct Grgb {
guint8 red;
guint8 green;
......
......@@ -56,6 +56,9 @@
/***** Magic numbers *****/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define PLUG_IN_NAME "plug_in_whirl_pinch"
#define PLUG_IN_VERSION "May 1997, 2.09"
......
......@@ -29,6 +29,10 @@
/* Some useful macros */
#define SQR(a) ((a) * (a))
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 125
#define BLACK 0
#define BG 1
......
......@@ -33,6 +33,9 @@
/***** Magic numbers *****/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define ITERATIONS 100 /* 100 */
#define WEIRD_FACTOR 0.04 /* 0.04 */
......
......@@ -37,6 +37,11 @@
#include <gtk/gtk.h>
#include <plug-ins/megawidget/megawidget.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
static mw_preview_t emboss_do_preview;
struct Grgb {
......
......@@ -23,6 +23,10 @@
#include "libifs.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define CHOOSE_XFORM_GRAIN 100
......
......@@ -22,6 +22,10 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define ENTRY_WIDTH 100
typedef struct
......
......@@ -42,6 +42,10 @@
#include "libgimp/gimp.h"
#include "ifscompose.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 150
#define ENTRY_WIDTH 60
#define DESIGN_AREA_MAX_SIZE 256
......
......@@ -40,6 +40,10 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define MAX_PREVIEW_WIDTH 256
#define MAX_PREVIEW_HEIGHT 256
#define MAX_DEFORM_AREA_RADIUS 100
......
......@@ -50,6 +50,9 @@
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define PLUG_IN_NAME "plug_in_mblur"
#define PLUG_IN_VERSION "Sep 1997, 1.2"
......
......@@ -31,6 +31,10 @@
/* The mosaic logo */
#include "mosaic_logo.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 150
#define SQR(x) ((x) * (x))
......
......@@ -65,6 +65,10 @@ static char rcsid[] = "$Id$";
/* Some useful macros */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#if 0
#define DEBUG1 printf
#else
......
......@@ -30,6 +30,9 @@
/* Some useful macros */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 200
#define TILE_CACHE_SIZE 16
......
......@@ -48,6 +48,10 @@
#define inline
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define ROUND_TO_INT(val) ((val) + 0.5)
typedef gdouble colRGBA[4];
......
......@@ -30,6 +30,10 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 125
#define TILE_CACHE_SIZE 16
#define MAX_CHANNELS 4
......
......@@ -29,8 +29,10 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
/* Some useful macros */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define SCALE_WIDTH 200
#define TILE_CACHE_SIZE 16
......
......@@ -34,6 +34,10 @@
#include <gtk/gtk.h>
#include <plug-ins/megawidget/megawidget.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
struct Grgb {
guint8 red;
guint8 green;
......
......@@ -56,6 +56,9 @@
/***** Magic numbers *****/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define PLUG_IN_NAME "plug_in_whirl_pinch"
#define PLUG_IN_VERSION "May 1997, 2.09"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment