app/Makefile.am use -DREGEX_MALLOC, seems to be more portable

* app/Makefile.am
* plug-ins/script-fu/scripts/Makefile.am: use -DREGEX_MALLOC,
seems to be more portable

* plug-ins/png/png.c: use a default gamma of 2.2 when gamma
correction isn't enabled

-Yosh
This commit is contained in:
Manish Singh 1999-01-02 23:28:01 +00:00
parent 12085bcb60
commit 73c1a752b4
9 changed files with 47 additions and 8 deletions

View File

@ -1,3 +1,12 @@
Sat Jan 2 15:26:31 PST 1999 Manish Singh <yosh@gimp.org>
* app/Makefile.am
* plug-ins/script-fu/scripts/Makefile.am: use -DREGEX_MALLOC,
seems to be more portable
* plug-ins/png/png.c: use a default gamma of 2.2 when gamma
correction isn't enabled
Fri Jan 1 19:28:23 PST 1999 Manish Singh <yosh@gimp.org>
* app/blend.c: remove bogus constification

View File

@ -355,6 +355,7 @@ CPPFLAGS = \
-DDATADIR=\""$(gimpdatadir)"\" \
-DGIMPDIR=\""$(gimpdir)"\" \
-DLOCALEDIR=\""$(localedir)"\" \
-DREGEX_MALLOC \
@GIMP_THREAD_FLAGS@
INCLUDES = \

View File

@ -1207,7 +1207,7 @@ typedef struct
#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) \
do { \
char *destination; \
/* char *destination; */ \
/* Must be int, so when we don't save any registers, the arithmetic \
of 0 + -1 isn't done as unsigned. */ \
/* Can't be int, since there is not a shred of a guarantee that int \

View File

@ -1207,7 +1207,7 @@ typedef struct
#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) \
do { \
char *destination; \
/* char *destination; */ \
/* Must be int, so when we don't save any registers, the arithmetic \
of 0 + -1 isn't done as unsigned. */ \
/* Can't be int, since there is not a shred of a guarantee that int \

View File

@ -37,6 +37,16 @@
* Revision History:
*
* $Log$
* Revision 1.11 1999/01/02 23:27:58 yosh
* * app/Makefile.am
* * plug-ins/script-fu/scripts/Makefile.am: use -DREGEX_MALLOC,
* seems to be more portable
*
* * plug-ins/png/png.c: use a default gamma of 2.2 when gamma
* correction isn't enabled
*
* -Yosh
*
* Revision 1.10 1998/11/09 02:04:34 yosh
* * Makefile.am
* * README.i18n: new file, explains i18n stuff
@ -143,6 +153,7 @@
#define PLUG_IN_VERSION "1.1.6 - 17 May 1998"
#define SCALE_WIDTH 125
#define DEFAULT_GAMMA 2.20
/*
* Structures...
@ -623,7 +634,7 @@ save_image(char *filename, /* I - File to save to */
guchar **pixels, /* Pixel rows */
*pixel; /* Pixel data */
char progress[255]; /* Title for progress display... */
gdouble gamma;
/*
* Setup the PNG data structures...
@ -681,10 +692,12 @@ save_image(char *filename, /* I - File to save to */
png_set_compression_level(pp, pngvals.compression_level);
gamma = gimp_gamma();
info->width = drawable->width;
info->height = drawable->height;
info->bit_depth = 8;
info->gamma = gimp_gamma();
info->gamma = gamma != 1.00 ? gamma : DEFAULT_GAMMA;
info->sig_bit.red = 8;
info->sig_bit.green = 8;
info->sig_bit.blue = 8;

View File

@ -37,6 +37,16 @@
* Revision History:
*
* $Log$
* Revision 1.11 1999/01/02 23:27:58 yosh
* * app/Makefile.am
* * plug-ins/script-fu/scripts/Makefile.am: use -DREGEX_MALLOC,
* seems to be more portable
*
* * plug-ins/png/png.c: use a default gamma of 2.2 when gamma
* correction isn't enabled
*
* -Yosh
*
* Revision 1.10 1998/11/09 02:04:34 yosh
* * Makefile.am
* * README.i18n: new file, explains i18n stuff
@ -143,6 +153,7 @@
#define PLUG_IN_VERSION "1.1.6 - 17 May 1998"
#define SCALE_WIDTH 125
#define DEFAULT_GAMMA 2.20
/*
* Structures...
@ -623,7 +634,7 @@ save_image(char *filename, /* I - File to save to */
guchar **pixels, /* Pixel rows */
*pixel; /* Pixel data */
char progress[255]; /* Title for progress display... */
gdouble gamma;
/*
* Setup the PNG data structures...
@ -681,10 +692,12 @@ save_image(char *filename, /* I - File to save to */
png_set_compression_level(pp, pngvals.compression_level);
gamma = gimp_gamma();
info->width = drawable->width;
info->height = drawable->height;
info->bit_depth = 8;
info->gamma = gimp_gamma();
info->gamma = gamma != 1.00 ? gamma : DEFAULT_GAMMA;
info->sig_bit.red = 8;
info->sig_bit.green = 8;
info->sig_bit.blue = 8;

View File

@ -46,6 +46,9 @@ DEPS = \
script_fu_DEPENDENCIES = $(DEPS)
CPPFLAGS = \
-DREGEX_MALLOC
.PHONY: files
files:

View File

@ -1207,7 +1207,7 @@ typedef struct
#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) \
do { \
char *destination; \
/* char *destination; */ \
/* Must be int, so when we don't save any registers, the arithmetic \
of 0 + -1 isn't done as unsigned. */ \
/* Can't be int, since there is not a shred of a guarantee that int \

View File

@ -1207,7 +1207,7 @@ typedef struct
#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) \
do { \
char *destination; \
/* char *destination; */ \
/* Must be int, so when we don't save any registers, the arithmetic \
of 0 + -1 isn't done as unsigned. */ \
/* Can't be int, since there is not a shred of a guarantee that int \