Mike Frysinger
e1f02d2833
gd_intern: unify the min/max/clamp macros some more
2021-02-05 22:47:13 -05:00
Peter Kokot
d81a1383d7
Remove HAVE_LIMITS_H
...
The `<limits.h>` header file is part of the standard C89 headers [1] and
on current systems there is no need to manually check if header is
present anymore.
Since the libgd requires at least C89 or greater, the `HAVE_LIMITS_H`
symbol defined by Autoconf in configure.ac [2], and Cmake build system
files can be removed and simplifed.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
2018-09-06 00:30:15 -04:00
Mike Frysinger
fd06f7f83c
clean up trailing whitespace/newlines
...
This is preparation for adding some linting checks for new commits from
people. Shouldn't be any functional changes here (tests still pass!).
2018-06-21 22:47:42 -04:00
Mike Frysinger
1239832a09
configure/cmake: unify header checks and config.h generation
...
Rather than hand maintain config.h.cmake (which is already out of date),
re-use the autogenerated config.h from autoheader.
2016-05-17 23:06:14 -04:00
Chris Reuter
e054be7d82
Small code cleanup.
...
Removed non-exported prototypes from gd.h. Where possible, made the
functions static and moved the rest of the prototypes to gd_intern.h.
Also removed redundant macros MIN/MAX macros from gd_interpolation.c
(since they're also defined in gd_intern.h) and tidied the formatting
a little.
2013-12-11 18:02:37 -05:00
Chris Reuter
6febd903b6
Added a new Gaussian blur function.
...
gdImageCopyGaussianBlurred() returns a blurred copy of its argument.
Blurring is done in two passes to take advantage of the Gaussian
function's separability for. This makes the algorithm much faster
than single-pass implementations, especially for larger radii.
This change also adds documentation for the new function and the
existing blur (gdImageGaussianBlur()).
2013-12-10 19:17:28 -05:00
Ondřej Surý
373e495aa6
Revert "Get rid of msinttypes folder and replace it with compile error if fixed-width integers are not available ( fixes #73 )"
...
This reverts commit 4feac0a10e
.
2013-06-22 08:35:04 +02:00
Ondřej Surý
4feac0a10e
Get rid of msinttypes folder and replace it with compile error if fixed-width integers are not available ( fixes #73 )
2013-06-22 08:00:07 +02:00
Pierre Joye
9850b02381
- fix logic and build
2013-05-03 07:58:35 +02:00
Ondřej Surý
c41c32a4fd
Add #ifdef for MAXPATHLEN on GNU Hurd
2013-04-25 14:46:11 +02:00
Ondřej Surý
cf9d7fb6c4
Top up MAXPATHLEN a bit (256->4096)
2013-04-25 12:13:55 +02:00
Pierre Joye
6bdf2165ce
portable max path len
2013-04-25 10:02:38 +02:00
Pierre Joye
c43f4f8cbb
missing gd_intern.h
2013-04-04 10:52:37 +02:00