Skip to content

Commit

Permalink
Rearrange includes so that config.h is always the first file to be in…
Browse files Browse the repository at this point in the history
…cluded

darcs-hash:20060811011835-ac50b-847fc790288e3bb3f3a0ee7734ff278d2dc65bef.gz
  • Loading branch information
liljencrantz committed Aug 11, 2006
1 parent 8da54a1 commit cd91022
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 30 deletions.
4 changes: 2 additions & 2 deletions builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
*/

#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
Expand All @@ -37,8 +39,6 @@
#include <sys/time.h>
#include <time.h>

#include "config.h"

#include "fallback.h"
#include "util.h"

Expand Down
4 changes: 2 additions & 2 deletions builtin_commandline.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Functions used for implementing the commandline builtin.
*/
#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
Expand All @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions builtin_complete.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Functions used for implementing the complete builtin.
*/
#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
Expand All @@ -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"

Expand Down
3 changes: 2 additions & 1 deletion builtin_help.hdr
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions builtin_jobs.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** \file builtin_jobs.c
Functions for executing the jobs builtin.
*/
#include "config.h"

#include <stdlib.h>
#include <stdio.h>
Expand All @@ -13,8 +14,6 @@
#include <string.h>
#include <wctype.h>

#include "config.h"

#include "fallback.h"
#include "util.h"

Expand Down
4 changes: 2 additions & 2 deletions builtin_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Functions used for implementing the set builtin.
*/
#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
Expand All @@ -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"

Expand Down
3 changes: 2 additions & 1 deletion complete.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -20,7 +22,6 @@
#include <signal.h>
#include <wchar.h>

#include "config.h"

#include "fallback.h"
#include "util.h"
Expand Down
2 changes: 2 additions & 0 deletions count.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
4 changes: 2 additions & 2 deletions event.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Functions for handling event triggers
*/
#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
Expand All @@ -11,8 +13,6 @@
#include <signal.h>
#include <string.h>

#include "config.h"

#include "fallback.h"
#include "util.h"

Expand Down
4 changes: 2 additions & 2 deletions exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -25,8 +27,6 @@
#include <siginfo.h>
#endif

#include "config.h"

#include "fallback.h"
#include "util.h"

Expand Down
4 changes: 2 additions & 2 deletions expand.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ parameter expansion.
*/

#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
Expand All @@ -26,8 +28,6 @@ parameter expansion.
#include <procfs.h>
#endif

#include "config.h"

#include "fallback.h"
#include "util.h"

Expand Down
5 changes: 3 additions & 2 deletions function.c
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/** \file function.c
Functions for storing and retrieving function information.
*/

#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
#include <unistd.h>
#include <termios.h>
#include <signal.h>

#include "config.h"

#include "wutil.h"
#include "fallback.h"
#include "util.h"
Expand Down
4 changes: 2 additions & 2 deletions highlight.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/** \file highlight.c
Functions for syntax highlighting
*/
#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
Expand All @@ -11,8 +13,6 @@
#include <termios.h>
#include <signal.h>

#include "config.h"

#include "fallback.h"
#include "util.h"

Expand Down
4 changes: 2 additions & 2 deletions history.c
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -11,8 +13,6 @@
#include <unistd.h>


#include "config.h"

#include "fallback.h"
#include "util.h"

Expand Down
4 changes: 2 additions & 2 deletions kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
with the X clipboard.
*/

#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
Expand All @@ -17,8 +19,6 @@
#include <dirent.h>


#include "config.h"

#include "fallback.h"
#include "util.h"

Expand Down
4 changes: 2 additions & 2 deletions parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ The fish parser. Contains functions for parsing code.
*/

#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
Expand All @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions sanity.c
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -13,8 +15,6 @@
#include <dirent.h>


#include "config.h"

#include "fallback.h"
#include "util.h"

Expand Down

0 comments on commit cd91022

Please sign in to comment.