consistent inclusion of config.h at top of files (fixes #2073)

From: Glenn Strauss <gstrauss@gluelogic.com>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3113 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/heads/lighttpd-1.4.x
Glenn Strauss 2016-03-19 15:14:35 +00:00 committed by Stefan Bühler
parent c92b1762ba
commit 8abd06a7ff
134 changed files with 248 additions and 67 deletions

1
NEWS
View File

@ -41,6 +41,7 @@ NEWS
* [autobuild] use AC_CANONICAL_HOST instead of AC_CANONICAL_TARGET (fixes #1866)
* [core] fix request_start in keep-alive requests to mark time when received first byte (fixes #2412)
* [core] truncate pidfile on exit (fixes #2695)
* consistent inclusion of config.h at top of files (fixes #2073)
- 1.4.39 - 2016-01-02
* [core] fix memset_s call (fixes #2698)

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "array.h"
#include "buffer.h"

View File

@ -1,9 +1,6 @@
#ifndef ARRAY_H
#define ARRAY_H
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "first.h"
#ifdef HAVE_PCRE_H
# include <pcre.h>

View File

@ -1,9 +1,7 @@
#ifndef _BASE_H_
#define _BASE_H_
#include "first.h"
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "settings.h"
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base64.h"
/* reverse mapping:

View File

@ -1,5 +1,6 @@
#ifndef _BASE64_H_
#define _BASE64_H_
#include "first.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "buffer.h"
#include <stdlib.h>

View File

@ -1,9 +1,6 @@
#ifndef _BUFFER_H_
#define _BUFFER_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "first.h"
#include "settings.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
/**
* the network chunk-API
*

View File

@ -1,5 +1,6 @@
#ifndef _CHUNK_H_
#define _CHUNK_H_
#include "first.h"
#include "buffer.h"
#include "array.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "buffer.h"
#include "array.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "server.h"
#include "log.h"
#include "stream.h"

View File

@ -1,5 +1,6 @@
#ifndef _CONFIG_PARSER_H_
#define _CONFIG_PARSER_H_
#include "first.h"
#include "array.h"
#include "buffer.h"

View File

@ -3,6 +3,7 @@
%name configparser
%include {
#include "first.h"
#include "configfile.h"
#include "buffer.h"
#include "array.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "connections.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "buffer.h"
#include "server.h"
#include "log.h"

View File

@ -1,5 +1,6 @@
#ifndef _CONNECTIONS_H_
#define _CONNECTIONS_H_
#include "first.h"
#include "server.h"
#include "fdevent.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "crc32.h"
#define CRC32C(c,d) (c=(c>>8)^crc_c[(c^(d))&0xFF])

View File

@ -1,9 +1,6 @@
#ifndef __crc32cr_table_h__
#define __crc32cr_table_h__
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "first.h"
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "array.h"
#include <string.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "array.h"
#include <string.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "array.h"
#include <string.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "array.h"
#include "fastcgi.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "array.h"
#include <stdio.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "array.h"
#include <string.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "buffer.h"
#include "etag.h"

View File

@ -1,5 +1,6 @@
#ifndef ETAG_H
#define ETAG_H
#include "first.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"

View File

@ -1,9 +1,6 @@
#ifndef _FDEVENT_H_
#define _FDEVENT_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "first.h"
#include "settings.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "fdevent.h"
#include "buffer.h"
#include "log.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "fdevent.h"
#include "buffer.h"
#include "log.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "fdevent.h"
#include "buffer.h"
#include "log.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "fdevent.h"
#include "buffer.h"
#include "log.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "fdevent.h"
#include "buffer.h"
#include "log.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "fdevent.h"
#include "buffer.h"
#include "log.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "fdevent.h"
#include "buffer.h"
#include "log.h"

12
src/first.h Normal file
View File

@ -0,0 +1,12 @@
#ifndef LI_FIRST_H
#define LI_FIRST_H
#ifdef HAVE_CONFIG_H
# include "config.h"
#else
# ifndef _GNU_SOURCE
# define _GNU_SOURCE
# endif
#endif
#endif

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "array.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "server.h"
#include "log.h"
#include "http_auth.h"

View File

@ -1,5 +1,6 @@
#ifndef _HTTP_AUTH_H_
#define _HTTP_AUTH_H_
#include "first.h"
#include "server.h"
#include "plugin.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
/**
* the HTTP chunk-API
*

View File

@ -1,5 +1,6 @@
#ifndef _HTTP_CHUNK_H_
#define _HTTP_CHUNK_H_
#include "first.h"
#include "server.h"
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "inet_ntop_cache.h"
#include "sys-socket.h"

View File

@ -1,5 +1,6 @@
#ifndef _INET_NTOP_CACHE_H_
#define _INET_NTOP_CACHE_H_
#include "first.h"
#include "base.h"
const char * inet_ntop_cache_get_ip(server *srv, sock_addr *addr);

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "joblist.h"
#include "log.h"

View File

@ -1,5 +1,6 @@
#ifndef _JOB_LIST_H_
#define _JOB_LIST_H_
#include "first.h"
#include "base.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "server.h"
#include "keyvalue.h"
#include "log.h"

View File

@ -1,9 +1,6 @@
#ifndef _KEY_VALUE_H_
#define _KEY_VALUE_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "first.h"
#ifdef HAVE_PCRE_H
# include <pcre.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
/*
** This file contains all sources (including headers) to the LEMON
** LALR(1) parser generator. The sources have been combined into a
@ -12,10 +14,6 @@
#include <ctype.h>
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif

View File

@ -3,6 +3,7 @@
*/
/* First off, code is include which follows the "include" declaration
** in the input file. */
#include "first.h"
#include <stdio.h>
%%
/* Next is all token values, in a form suitable for use by makeheaders.

View File

@ -1,3 +1,5 @@
#include "first.h"
/**
* angel process for lighttpd
*

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "array.h"

View File

@ -1,5 +1,6 @@
#ifndef _LOG_H_
#define _LOG_H_
#include "first.h"
#include "server.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
/* MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm
*/
@ -23,15 +25,12 @@ These notices must be retained in any copies of any part of this
documentation and/or software.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "md5.h"
#ifndef USE_OPENSSL
#include <string.h>
#include "md5.h"
/* Constants for MD5Transform routine.
*/

View File

@ -1,3 +1,7 @@
#ifndef LI_MD5_H
#define LI_MD5_H
#include "first.h"
/* MD5.H - header file for MD5C.C
*/
@ -22,6 +26,7 @@ without express or implied warranty of any kind.
These notices must be retained in any copies of any part of this
documentation and/or software.
*/
#include <limits.h>
#ifdef HAVE_STDINT_H
# include <stdint.h>
@ -44,3 +49,5 @@ typedef struct {
void li_MD5_Init (li_MD5_CTX *);
void li_MD5_Update (li_MD5_CTX *, const void *, unsigned int);
void li_MD5_Final (unsigned char [16], li_MD5_CTX *);
#endif

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "plugin.h"
#include "http_auth.h"
#include "log.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "server.h"
#include "stat_cache.h"
#include "keyvalue.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "buffer.h"
#include "server.h"
#include "log.h"

View File

@ -1,5 +1,6 @@
#ifndef _MOD_CACHE_H_
#define _MOD_CACHE_H_
#include "first.h"
#include "buffer.h"
#include "server.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "buffer.h"
#include "server.h"
#include "log.h"

View File

@ -1,9 +1,6 @@
#ifndef _MOD_CML_FUNCS_H_
#define _MOD_CML_FUNCS_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "first.h"
#ifdef HAVE_LUA_H
#include <lua.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "mod_cml.h"
#include "mod_cml_funcs.h"
#include "log.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "plugin.h"
#include "log.h"
#include "response.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"
@ -7,10 +9,6 @@
#include "inet_ntop_cache.h"
#include "configfile.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "buffer.h"
#include "server.h"
#include "keyvalue.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "mod_magnet_cache.h"
#include "stat_cache.h"

View File

@ -1,5 +1,6 @@
#ifndef _MOD_MAGNET_CACHE_H_
#define _MOD_MAGNET_CACHE_H_
#include "first.h"
#include "buffer.h"
#include "base.h"

View File

@ -1,13 +1,11 @@
#include "first.h"
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <strings.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_MYSQL
#include <mysql.h>
#endif

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "buffer.h"
#include "server.h"
#include "keyvalue.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "server.h"
#include "connections.h"
#include "response.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "buffer.h"
#include "server.h"
#include "keyvalue.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,5 +1,6 @@
#ifndef _MOD_SSI_H_
#define _MOD_SSI_H_
#include "first.h"
#include "base.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "buffer.h"
#include "log.h"
#include "mod_ssi.h"

View File

@ -1,5 +1,6 @@
#ifndef _MOD_SSI_EXPR_H_
#define _MOD_SSI_EXPR_H_
#include "first.h"
#include "buffer.h"

View File

@ -4,6 +4,7 @@
%name ssiexprparser
%include {
#include "first.h"
#include "mod_ssi_expr.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "server.h"
#include "connections.h"
#include "response.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"

View File

@ -1,3 +1,5 @@
#include "first.h"
#include "network.h"
#include "fdevent.h"
#include "log.h"

Some files were not shown because too many files have changed in this diff Show More