M_PI madness...

-Yosh
This commit is contained in:
Manish Singh 1998-03-18 23:40:52 +00:00
parent cd7edb60df
commit 7cb1950fd7
54 changed files with 201 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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 */

View File

@ -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 */

View File

@ -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

View File

@ -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"

View File

@ -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.

View File

@ -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 *****/

View File

@ -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"

View File

@ -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"

View File

@ -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.

View File

@ -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 *****/

View File

@ -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"

View File

@ -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

View File

@ -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 */

View File

@ -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 {

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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))

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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"

View File

@ -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

View File

@ -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 */

View File

@ -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 {

View File

@ -23,6 +23,10 @@
#include "libifs.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#define CHOOSE_XFORM_GRAIN 100

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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))

View File

@ -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

View File

@ -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

View File

@ -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];

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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"