Mike Frysinger
0f98c3fe7a
gdkanji: drop another redundant check #456
...
This statement first checks c>=64 which means c!=0 is always true.
2018-09-06 01:50:11 -04:00
Peter Kokot
1e7f93922f
Remove HAVE_ERRNO_H
...
The `<errno.h>` header file is part of the standard C89 headers [1] and
on older systems there needed to be also a manual check if header is
present.
Since libgd requires at least C89 or greater, the `HAVE_ERRNO_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.3
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
2018-09-05 01:39:49 -04:00
Galik
3385b9aebf
Truetype font drawing functions now take `const` strings ( #400 )
...
The following API functions now accept the font names and the text to be
printed as `const char*` rater than `char*`. This makes the functions
much more `C++` friendly.
gdImageStringFT();
gdImageStringTTF();
gdImageStringFTEx();
Other functions/types affected:
typeed struct fontkey_t;
any2eucjp();
gdTcl_UtfToUniChar();
DetectKanjiCode();
do_convert();
do_check_and_conv();
2017-07-29 11:24:32 -04:00
Pierre Joye
9f28c16ee0
ensure null terminated string
2016-06-21 10:40:06 +07:00
Pierre Joye
8757e32181
ensure null terminated string
2016-06-21 10:30:15 +07:00
Pierre Joye
6e72c35d81
fix coverity 95857, given the underlying functions, risks to actually have a string overflow seems not possible. However this little safety check costs nothing and puts us on a 100% side.
2016-06-20 14:37:38 +07:00
Pierre Joye
aa1d71c34c
fix #135 , fix logic in gdkanji
2015-01-20 01:57:13 +01:00
Remi Collet
a7cf5997de
warning: implicit declaration of function 'error'
2013-04-21 17:42:07 +02:00
Pierre Joye
033a2f4344
fix build, s,error,gd_error
2013-04-18 21:29:38 +02:00
Ondřej Surý
e5d9ea1826
Rename E_{ERROR,WARNING,...} to GD_{ERROR,WARNING,...} and install the header
2013-04-18 08:28:36 +02:00
Ondřej Surý
32b1307c62
Use custom error handler instead of fprintf(stderr, ...)
2013-04-18 08:28:36 +02:00
pierrejoye
e20413bf6b
- apply same CS everywhere
2013-04-03 14:23:11 +02:00
tabe
3aaf1ab557
fix -Wunused-parameter
2013-02-11 11:31:40 +09:00
pierre
93575cd1a6
- sync to 2.0.33
2006-04-05 15:55:57 +00:00
pierre
1b2f5c4894
- sync to 2.0.24
2006-04-05 15:52:22 +00:00
pierre
871d0d852c
- sync to 2.0.12
2006-04-05 15:47:57 +00:00
pierre
2399023b6c
- sync to 2.0.9
2006-04-05 15:46:42 +00:00
pierre
b0243fe7b1
- sync to 2.0.5
2006-04-05 15:44:56 +00:00
pierre
b623f93e30
- sync to 2.0.4
2006-04-05 15:44:17 +00:00
pierre
1cdea7482e
- sync to 2.0.1
2006-04-05 15:42:56 +00:00
pierre
fceb93d2b9
- sync to 2.0.0
2006-04-05 15:42:22 +00:00
pierre
22d55c5aa4
- sync to 1.8.4
2006-04-05 15:41:55 +00:00
pierre
0b986ddde7
- sync to 1.7.0
2006-04-05 15:38:05 +00:00