Rearrange includes so that config.h is always the first file to be included

darcs-hash:20060811011835-ac50b-847fc790288e3bb3f3a0ee7734ff278d2dc65bef.gz
This commit is contained in:
axel 2006-08-11 11:18:35 +10:00
parent 8da54a1955
commit cd9102214b
17 changed files with 34 additions and 30 deletions

View file

@ -21,6 +21,8 @@
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
@ -37,8 +39,6 @@
#include <sys/time.h>
#include <time.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -3,6 +3,8 @@
Functions used for implementing the commandline builtin.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
@ -11,8 +13,6 @@ Functions used for implementing the commandline builtin.
#include <termios.h>
#include <signal.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -3,6 +3,8 @@
Functions used for implementing the complete builtin.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
@ -11,8 +13,6 @@ Functions used for implementing the complete builtin.
#include <termios.h>
#include <signal.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -5,13 +5,14 @@
various help files in the doc_src directory.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <wchar.h>
#include <sys/types.h>
#include "config.h"
#include "util.h"
#include "common.h"
#include "halloc_util.h"

View file

@ -1,6 +1,7 @@
/** \file builtin_jobs.c
Functions for executing the jobs builtin.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
@ -13,8 +14,6 @@
#include <string.h>
#include <wctype.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -3,6 +3,8 @@
Functions used for implementing the set builtin.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
@ -11,8 +13,6 @@ Functions used for implementing the set builtin.
#include <termios.h>
#include <signal.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -3,6 +3,8 @@
These functions are used for storing and retrieving tab-completion data, as well as for performing tab-completion.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
@ -20,7 +22,6 @@
#include <signal.h>
#include <wchar.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -2,6 +2,8 @@
The length command, used for determining the number of items in an
environment variable array.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>

View file

@ -3,6 +3,8 @@
Functions for handling event triggers
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
@ -11,8 +13,6 @@
#include <signal.h>
#include <string.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

4
exec.c
View file

@ -5,6 +5,8 @@
manual, though I the changes performed have been massive.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
@ -25,8 +27,6 @@
#include <siginfo.h>
#endif
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -5,6 +5,8 @@ parameter expansion.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
@ -26,8 +28,6 @@ parameter expansion.
#include <procfs.h>
#endif
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -1,6 +1,9 @@
/** \file function.c
Functions for storing and retrieving function information.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
@ -8,8 +11,6 @@
#include <termios.h>
#include <signal.h>
#include "config.h"
#include "wutil.h"
#include "fallback.h"
#include "util.h"

View file

@ -1,6 +1,8 @@
/** \file highlight.c
Functions for syntax highlighting
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
@ -11,8 +13,6 @@
#include <termios.h>
#include <signal.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -1,6 +1,8 @@
/** \file history.c
History functions, part of the user interface.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
@ -11,8 +13,6 @@
#include <unistd.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

4
kill.c
View file

@ -6,6 +6,8 @@
with the X clipboard.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
@ -17,8 +19,6 @@
#include <dirent.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -4,6 +4,8 @@ The fish parser. Contains functions for parsing code.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
@ -17,8 +19,6 @@ The fish parser. Contains functions for parsing code.
#include <dirent.h>
#include <signal.h>
#include "config.h"
#include "fallback.h"
#include "util.h"

View file

@ -1,6 +1,8 @@
/** \file sanity.c
Functions for performing sanity checks on the program state
*/
#include "config.h"
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
@ -13,8 +15,6 @@
#include <dirent.h>
#include "config.h"
#include "fallback.h"
#include "util.h"