repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
php-src
php-src-master/ext/dba/libinifile/inifile.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
14,868
24.159052
123
c
php-src
php-src-master/ext/dba/libinifile/inifile.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
2,240
33.476923
92
h
php-src
php-src-master/ext/dl_test/dl_test_arginfo.h
/* This is a generated file, edit the .stub.php file instead. * Stub hash: 547ddbc21e9aa853b491cb17e902bbbb9cc2df00 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dl_test_test1, 0, 0, IS_VOID, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dl_test_test2, 0, 0, IS_STRING, 0) ZEND_ARG_TYPE...
622
28.666667
82
h
php-src
php-src-master/ext/dl_test/php_dl_test.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
1,452
38.27027
74
h
php-src
php-src-master/ext/dom/attr.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
5,342
22.434211
102
c
php-src
php-src-master/ext/dom/cdatasection.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
2,049
32.064516
90
c
php-src
php-src-master/ext/dom/characterdata.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
8,926
21.772959
109
c
php-src
php-src-master/ext/dom/comment.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
2,068
31.328125
101
c
php-src
php-src-master/ext/dom/documentfragment.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
3,855
24.202614
91
c
php-src
php-src-master/ext/dom/documenttype.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
5,271
24.717073
110
c
php-src
php-src-master/ext/dom/dom_ce.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
2,529
55.222222
78
h
php-src
php-src-master/ext/dom/dom_iterators.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
9,643
27.448378
109
c
php-src
php-src-master/ext/dom/dom_properties.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
7,770
52.226027
78
h
php-src
php-src-master/ext/dom/domexception.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
3,297
29.256881
102
c
php-src
php-src-master/ext/dom/domexception.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
2,093
40.88
75
h
php-src
php-src-master/ext/dom/entity.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
3,819
24.131579
97
c
php-src
php-src-master/ext/dom/entityreference.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
2,223
30.323944
89
c
php-src
php-src-master/ext/dom/namednodemap.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
7,458
26.123636
120
c
php-src
php-src-master/ext/dom/notation.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
2,420
26.511364
89
c
php-src
php-src-master/ext/dom/processinginstruction.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
3,616
25.992537
102
c
php-src
php-src-master/ext/dom/text.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
4,976
24.523077
121
c
php-src
php-src-master/ext/dom/xml_common.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
3,110
34.758621
98
h
php-src
php-src-master/ext/enchant/enchant_arginfo.h
/* This is a generated file, edit the .stub.php file instead. * Stub hash: 42bb5a4488d254e87d763c75ccff62e283e63335 */ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_enchant_broker_init, 0, 0, EnchantBroker, MAY_BE_FALSE) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_free, 0...
8,065
41.230366
123
h
php-src
php-src-master/ext/enchant/php_enchant.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
1,422
34.575
74
h
php-src
php-src-master/ext/exif/exif_arginfo.h
/* This is a generated file, edit the .stub.php file instead. * Stub hash: 633b2db018fa1453845a854a6361f11f107f4653 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_exif_tagname, 0, 1, MAY_BE_STRING|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(...
1,651
35.711111
97
h
php-src
php-src-master/ext/exif/php_exif.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
1,222
52.173913
75
h
php-src
php-src-master/ext/fileinfo/fileinfo_arginfo.h
/* This is a generated file, edit the .stub.php file instead. * Stub hash: 94697d59958fb55a431bfa4786158b5db3c1ae0e */ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_finfo_open, 0, 0, finfo, MAY_BE_FALSE) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FILEINFO_NONE") ZEND_ARG_TYPE_INFO_WITH_DEFAU...
4,756
40.72807
111
h
php-src
php-src-master/ext/fileinfo/php_fileinfo.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
1,475
35.9
74
h
php-src
php-src-master/ext/fileinfo/php_libmagic.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
1,904
24.065789
84
c
php-src
php-src-master/ext/fileinfo/php_libmagic.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
2,138
27.52
85
h
php-src
php-src-master/ext/fileinfo/libmagic/apptype.c
/* * Adapted from: apptype.c, Written by Eberhard Mattes and put into the * public domain * * Notes: 1. Qualify the filename so that DosQueryAppType does not do extraneous * searches. * * 2. DosQueryAppType will return FAPPTYP_DOS on a file ending with ".com" * (other than an OS/2 exe or Win exe with this name)...
4,522
25.605882
80
c
php-src
php-src-master/ext/fileinfo/libmagic/ascmagic.c
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
10,086
24.40806
78
c
php-src
php-src-master/ext/fileinfo/libmagic/buffer.c
/* * Copyright (c) Christos Zoulas 2017. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice immediately at th...
2,704
28.086022
78
c
php-src
php-src-master/ext/fileinfo/libmagic/cdf.h
/*- * Copyright (c) 2008 Christos Zoulas * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
11,670
32.15625
80
h
php-src
php-src-master/ext/fileinfo/libmagic/cdf_time.c
/*- * Copyright (c) 2008 Christos Zoulas * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
4,594
21.52451
78
c
php-src
php-src-master/ext/fileinfo/libmagic/der.c
/*- * Copyright (c) 2016 Christos Zoulas * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
11,574
24.10846
80
c
php-src
php-src-master/ext/fileinfo/libmagic/der.h
/*- * Copyright (c) 2016 Christos Zoulas * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
1,500
50.758621
78
h
php-src
php-src-master/ext/fileinfo/libmagic/elfclass.h
/* * Copyright (c) Christos Zoulas 2008. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice immediately at th...
3,154
37.012048
77
h
php-src
php-src-master/ext/fileinfo/libmagic/encoding.c
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
22,551
33.221548
80
c
php-src
php-src-master/ext/fileinfo/libmagic/file.h
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
19,544
29.162037
102
h
php-src
php-src-master/ext/fileinfo/libmagic/fsmagic.c
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
6,785
25.404669
77
c
php-src
php-src-master/ext/fileinfo/libmagic/funcs.c
/* * Copyright (c) Christos Zoulas 2003. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice immediately at th...
18,333
20.671395
90
c
php-src
php-src-master/ext/fileinfo/libmagic/is_csv.c
/*- * Copyright (c) 2019 Christos Zoulas * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
4,497
21.832487
78
c
php-src
php-src-master/ext/fileinfo/libmagic/is_tar.c
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
5,329
28.611111
78
c
php-src
php-src-master/ext/fileinfo/libmagic/magic.c
/* * Copyright (c) Christos Zoulas 2003. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice immediately at th...
9,225
21.836634
83
c
php-src
php-src-master/ext/fileinfo/libmagic/magic.h
/* * Copyright (c) Christos Zoulas 2003. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice immediately at th...
5,856
34.932515
80
h
php-src
php-src-master/ext/fileinfo/libmagic/print.c
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
9,667
25.487671
77
c
php-src
php-src-master/ext/fileinfo/libmagic/readcdf.c
/*- * Copyright (c) 2008, 2016 Christos Zoulas * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list ...
16,302
23.260417
78
c
php-src
php-src-master/ext/fileinfo/libmagic/strcasestr.c
/* $NetBSD: strcasestr.c,v 1.3 2005/11/29 03:12:00 christos Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Chris Torek. * * Redistribution and use in source and binary forms, with or...
2,827
32.270588
77
c
php-src
php-src-master/ext/fileinfo/libmagic/tar.h
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
2,618
34.391892
77
h
php-src
php-src-master/ext/filter/callback_filter.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
1,647
35.622222
97
c
php-src
php-src-master/ext/filter/filter_arginfo.h
/* This is a generated file, edit the .stub.php file instead. * Stub hash: c3f3240137eaa89316276920acf35f975b2dd8f9 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_filter_has_var, 0, 2, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, input_type, IS_LONG, 0) ZEND_ARG_TYPE_INFO(0, var_name, IS_STRING, 0) ZEND_END_ARG_INFO() Z...
7,580
62.175
116
h
php-src
php-src-master/ext/filter/filter_private.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
4,600
35.515873
109
h
php-src
php-src-master/ext/filter/php_filter.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
3,279
35.853933
99
h
php-src
php-src-master/ext/ftp/ftp.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
8,851
37.655022
132
h
php-src
php-src-master/ext/ftp/php_ftp.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
1,468
39.805556
75
h
php-src
php-src-master/ext/gd/php_gd.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
4,105
31.078125
77
h
php-src
php-src-master/ext/gd/libgd/bmp.h
/* $Id$ */ #ifdef __cplusplus extern "C" { #endif /* gd_bmp.c Bitmap format support for libgd * Written 2007, Scott MacVicar --------------------------------------------------------------------------- Todo: RLE4, RLE8 and Bitfield encoding Add full support for Windows v4 and Windows v5 header format...
2,450
20.690265
80
h
php-src
php-src-master/ext/gd/libgd/gd2topng.c
#include <stdio.h> #include "gd.h" /* A short program which converts a .png file into a .gd file, for your convenience in creating images on the fly from a basis image that must be loaded quickly. The .gd format is not intended to be a general-purpose format. */ int main (int argc, char **argv) { gdImageP...
1,060
20.22
70
c
php-src
php-src-master/ext/gd/libgd/gd_avif.c
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <math.h> #include "gd.h" #include "gd_errors.h" #include "gdhelpers.h" #include "gd_intern.h" #ifdef HAVE_LIBAVIF #include <avif/avif.h> /* Define defaults for encoding images: ...
19,183
29.258675
108
c
php-src
php-src-master/ext/gd/libgd/gd_color_match.c
#include "gd.h" #include "gdhelpers.h" #include "gd_intern.h" #include "php.h" /* bring the palette colors in im2 to be closer to im1 * */ int gdImageColorMatch (gdImagePtr im1, gdImagePtr im2) { unsigned long *buf; /* stores our calculations */ unsigned long *bp; /* buf ptr */ int color, rgb; int x,y; int cou...
1,454
22.095238
80
c
php-src
php-src-master/ext/gd/libgd/gd_crop.c
/** * Title: Crop * * A couple of functions to crop images, automatically (auto detection of * the borders color), using a given color (with or without tolerance) * or using a selection. * * The threshold method works relatively well but it can be improved. * Maybe L*a*b* and Delta-E will give better results (a...
7,862
23.726415
116
c
php-src
php-src-master/ext/gd/libgd/gd_errors.h
#ifndef GD_ERRORS_H #define GD_ERRORS_H #ifndef _WIN32 # include <syslog.h> #else # include "win32/syslog.h" #endif /* LOG_EMERG system is unusable LOG_ALERT action must be taken immediately LOG_CRIT critical conditions LOG_ERR error conditions LOG_WARNING warning conditions LOG_NOTICE n...
673
20.741935
56
h
php-src
php-src-master/ext/gd/libgd/gd_filter.c
#include "gd.h" #include "gd_intern.h" #ifdef _WIN32 # include <windows.h> #else # include <unistd.h> #endif #include <stdlib.h> #include <time.h> /* Filters function added on 2003/12 * by Pierre-Alain Joye (pierre@php.net) * * Scatter filter added in libgd 2.1.0 * by Kalle Sommer Nielsen (kalle@php.net) **/ /...
12,819
21.570423
97
c
php-src
php-src-master/ext/gd/libgd/gd_io.h
#ifndef GD_IO_H #define GD_IO_H 1 #include <stdio.h> #ifdef VMS #define Putchar gdPutchar #endif typedef struct gdIOCtx { int (*getC)(struct gdIOCtx*); int (*getBuf)(struct gdIOCtx*, void*, int); void (*putC)(struct gdIOCtx*, int); int (*putBuf)(struct gdIOCtx*, const void*, int); int (*seek)(struct gdIOCtx*,...
1,072
21.829787
57
h
php-src
php-src-master/ext/gd/libgd/gd_matrix.c
#include "gd.h" #include <math.h> #ifndef M_PI # define M_PI 3.14159265358979323846 #endif /** * Title: Matrix * Group: Affine Matrix */ /** * Function: gdAffineApplyToPointF * Applies an affine transformation to a point (floating point * gdPointF) * * * Parameters: * dst - Where to store the resulting ...
7,926
22.876506
89
c
php-src
php-src-master/ext/gd/libgd/gd_pixelate.c
#include "gd.h" int gdImagePixelate(gdImagePtr im, int block_size, const unsigned int mode) { int x, y; if (block_size <= 0) { return 0; } else if (block_size == 1) { return 1; } switch (mode) { case GD_PIXELATE_UPPERLEFT: for (y = 0; y < im->sy; y += block_size) { for (x = 0; x < im->sx; x += block_si...
1,366
22.568966
82
c
php-src
php-src-master/ext/gd/libgd/gd_png.c
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include "gd.h" #include "gd_errors.h" /* JCE: Arrange HAVE_LIBPNG so that it can be set in gd.h */ #ifdef HAVE_LIBPNG #include "png.h" /* includes zlib.h and setjmp.h */ #include "gdhelpers.h" #define TRUE 1 #define FALSE 0 /*-----------...
23,292
28.710459
104
c
php-src
php-src-master/ext/gd/libgd/gd_rotate.c
#include "gd.h" #include "gd_intern.h" #include <math.h> /* * Rotate function Added on 2003/12 * by Pierre-Alain Joye (pierre@php.net) **/ /* Begin rotate function */ #ifdef ROTATE_PI #undef ROTATE_PI #endif /* ROTATE_PI */ #define ROTATE_DEG2RAD 3.1415926535897932384626433832795/180 void gdImageSkewX (gdImagePt...
8,162
22.868421
125
c
php-src
php-src-master/ext/gd/libgd/gd_ss.c
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include "gd.h" #define TRUE 1 #define FALSE 0 /* Exported functions: */ extern void gdImagePngToSink (gdImagePtr im, gdSinkPtr out); extern gdImagePtr gdImageCreateFromPngSource (gdSourcePtr inSource); /* Use this for commenting out debug-...
1,095
20.92
68
c
php-src
php-src-master/ext/gd/libgd/gd_tga.h
#ifndef __TGA_H #define __TGA_H 1 #include "gd.h" #include "gdhelpers.h" #include "gd_intern.h" typedef struct oTga_ { uint8_t identsize; // size of ID field that follows 18 uint8_t header (0 usually) uint8_t colormaptype; // type of colour map 0=none, 1=has palette [IGNORED] Adrian requested no support uin...
1,704
31.169811
112
h
php-src
php-src-master/ext/gd/libgd/gd_wbmp.c
/* WBMP: Wireless Bitmap Type 0: B/W, Uncompressed Bitmap Specification of the WBMP format can be found in the file: SPEC-WAESpec-19990524.pdf You can download the WAP specification on: http://www.wapforum.com/ gd_wbmp.c Copyright (C) Johan Van den Brande (johan@vandenbrande.com) Fixed: gdImageW...
5,611
23.614035
86
c
php-src
php-src-master/ext/gd/libgd/gd_xbm.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
5,248
21.241525
76
c
php-src
php-src-master/ext/gd/libgd/gdcache.c
#include "gd.h" #include "gdhelpers.h" #ifdef HAVE_LIBFREETYPE #define NEED_CACHE 1 #endif #ifdef NEED_CACHE /* * gdcache.c * * Caches of pointers to user structs in which the least-recently-used * element is replaced in the event of a cache miss after the cache has * reached a given size. * * John Ellson (e...
5,104
23.194313
78
c
php-src
php-src-master/ext/gd/libgd/gdcache.h
/* * gdcache.h * * Caches of pointers to user structs in which the least-recently-used * element is replaced in the event of a cache miss after the cache has * reached a given size. * * John Ellson (ellson@graphviz.org) Oct 31, 1997 * * Test this with: * gcc -o gdcache -g -Wall -DTEST gdcache.c * * The ...
2,749
30.609195
71
h
php-src
php-src-master/ext/gd/libgd/gddemo.c
#include <stdio.h> #include "gd.h" #include "gdfontg.h" #include "gdfonts.h" int main (void) { /* Input and output files */ FILE *in; FILE *out; /* Input and output images */ gdImagePtr im_in = 0, im_out = 0; /* Brush image */ gdImagePtr brush; /* Color indexes */ int white; int blue; int red;...
3,261
26.411765
71
c
php-src
php-src-master/ext/gd/libgd/gdhelpers.h
#ifndef GDHELPERS_H #define GDHELPERS_H 1 #include <sys/types.h> #include "php.h" /* TBB: strtok_r is not universal; provide an implementation of it. */ extern char *gd_strtok_r(char *s, char *sep, char **state); /* These functions wrap memory management. gdFree is in gd.h, where callers can utilize it to correctl...
1,580
29.403846
70
h
php-src
php-src-master/ext/gd/libgd/gdparttopng.c
#include <stdio.h> #include <stdlib.h> /* For atoi */ #include "gd.h" /* A short program which converts a .png file into a .gd file, for your convenience in creating images on the fly from a basis image that must be loaded quickly. The .gd format is not intended to be a general-purpose format. */ int main (...
1,289
20.5
80
c
php-src
php-src-master/ext/gd/libgd/gdtest.c
#include <stdio.h> #ifdef _WIN32 #include <process.h> int unlink (const char *filename) { return _unlink (filename); } #else #include <unistd.h> /* for getpid(), unlink() */ #endif #include "gd.h" void CompareImages (char *msg, gdImagePtr im1, gdImagePtr im2); static int freadWrapper (void *context, char *buf, int...
9,323
21.741463
98
c
php-src
php-src-master/ext/gd/libgd/gdtestft.c
#include "gd.h" #include <string.h> #define PI 3.141592 #define DEG2RAD(x) ((x)*PI/180.) #define MAX(x,y) ((x) > (y) ? (x) : (y)) #define MIN(x,y) ((x) < (y) ? (x) : (y)) #define MAX4(x,y,z,w) \ ((MAX((x),(y))) > (MAX((z),(w))) ? (MAX((x),(y))) : (MAX((z),(w)))) #define MIN4(x,y,z,w) \ ((MIN((x),(y))) < (MIN((z),...
2,822
24.899083
83
c
php-src
php-src-master/ext/gd/libgd/gdtopng.c
#include <stdio.h> #include "gd.h" /* A short program which converts a .png file into a .gd file, for your convenience in creating images on the fly from a basis image that must be loaded quickly. The .gd format is not intended to be a general-purpose format. */ int main (int argc, char **argv) { gdImagePt...
965
20.466667
68
c
php-src
php-src-master/ext/gd/libgd/gdxpm.c
/* add ability to load xpm files to gd, requires the xpm library. Caolan.McNamara@ul.ie http://www.csn.ul.ie/~caolan */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "gd.h" #include "gdhelpers.h" #ifdef HAVE_XPM #include <X11/xpm.h> gdImagePtr gdImageCreateFromXpm (char *filename)...
3,290
22.507143
56
c
php-src
php-src-master/ext/gd/libgd/pngtogd.c
#include <stdio.h> #include "gd.h" /* A short program which converts a .png file into a .gd file, for your convenience in creating images on the fly from a basis image that must be loaded quickly. The .gd format is not intended to be a general-purpose format. */ int main (int argc, char **argv) { gdImageP...
967
20.043478
68
c
php-src
php-src-master/ext/gd/libgd/pngtogd2.c
#include <stdio.h> #include <stdlib.h> #include "gd.h" /* A short program which converts a .png file into a .gd file, for your convenience in creating images on the fly from a basis image that must be loaded quickly. The .gd format is not intended to be a general-purpose format. */ int main (int argc, char ...
1,203
21.716981
77
c
php-src
php-src-master/ext/gd/libgd/testac.c
#include <stdio.h> #include "gd.h" /* If palette is true, we convert from truecolor to palette at the end, to test gdImageTrueColorToPalette and see file size/ quality tradeoffs. */ void testDrawing ( gdImagePtr im_in, double scale, int blending, int palette, char *filename); int main...
4,208
31.376923
76
c
php-src
php-src-master/ext/gd/libgd/wbmp.h
/* WBMP ** ---- ** WBMP Level 0: B/W, Uncompressed ** This implements the WBMP format as specified in WAPSpec 1.1 and 1.2. ** It does not support ExtHeaders as defined in the spec. The spec states ** that a WAP client does not need to implement ExtHeaders. ** ** (c) 2000 Johan Van den Brande <johan@vandenbrande.com> **...
1,283
23.226415
74
h
php-src
php-src-master/ext/gd/libgd/webpng.c
/* Bring in the gd library functions */ #include "gd.h" /* Bring in standard I/O and string manipulation functions */ #include <stdio.h> #include <stdlib.h> /* for atoi() */ #include <string.h> #ifdef _WIN32 #include <process.h> int getpid () { return _getpid (); } #else #include <unistd.h> /* for getpid(), unlin...
6,471
21.317241
93
c
php-src
php-src-master/ext/gettext/gettext.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
7,531
24.275168
122
c
php-src
php-src-master/ext/gettext/gettext_arginfo.h
/* This is a generated file, edit the .stub.php file instead. * Stub hash: 864b3389d4f99b0d7302ae399544e6fb9fb80b7e */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_textdomain, 0, 1, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 1) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gette...
3,346
30.87619
106
h
php-src
php-src-master/ext/gettext/php_gettext.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
1,405
37
75
h
php-src
php-src-master/ext/gmp/gmp_arginfo.h
/* This is a generated file, edit the .stub.php file instead. * Stub hash: d52f82c7084a8122fe07c91eb6d4ab6030daa27d */ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gmp_init, 0, 1, GMP, 0) ZEND_ARG_TYPE_MASK(0, num, MAY_BE_LONG|MAY_BE_STRING, NULL) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, base, IS_LONG, 0, "0") ZE...
12,860
36.495627
97
h
php-src
php-src-master/ext/gmp/php_gmp.h
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
1,553
34.318182
75
h
php-src
php-src-master/ext/hash/hash_adler32.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
2,557
33.106667
119
c
php-src
php-src-master/ext/hash/hash_crc32.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
4,454
31.518248
113
c
php-src
php-src-master/ext/hash/hash_fnv.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
6,130
24.545833
96
c
php-src
php-src-master/ext/hash/hash_gost.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
11,805
32.82808
98
c
php-src
php-src-master/ext/hash/hash_haval.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
19,280
35.106742
133
c
php-src
php-src-master/ext/hash/hash_joaat.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
2,588
26.83871
102
c
php-src
php-src-master/ext/hash/hash_md.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
11,013
28.767568
99
c
php-src
php-src-master/ext/hash/hash_murmur.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
7,607
32.663717
122
c