Skip to content

Commit

Permalink
Avoid include files including other include files
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdrake committed Mar 16, 2015
1 parent db5cd63 commit aac235d
Show file tree
Hide file tree
Showing 15 changed files with 50 additions and 10 deletions.
4 changes: 4 additions & 0 deletions extension/boolexpr/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
*/


#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"


Expand Down
4 changes: 4 additions & 0 deletions extension/boolexpr/array2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
*/


#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"


Expand Down
4 changes: 4 additions & 0 deletions extension/boolexpr/binary.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
*/


#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"


Expand Down
3 changes: 3 additions & 0 deletions extension/boolexpr/boolexpr.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

#include <assert.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"

Expand Down
10 changes: 0 additions & 10 deletions extension/boolexpr/boolexpr.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ extern "C" {
#endif


/* bool, false, true */
#include <stdbool.h>

/* size_t */
#include <stddef.h>

/* NULL, malloc, realloc, free, labs */
#include <stdlib.h>


#define CHECK_NULL(y, x) \
do { \
if ((y = x) == NULL) \
Expand Down
4 changes: 4 additions & 0 deletions extension/boolexpr/bubble.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
*/


#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"


Expand Down
4 changes: 4 additions & 0 deletions extension/boolexpr/compose.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
*/


#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"


Expand Down
4 changes: 4 additions & 0 deletions extension/boolexpr/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
*/


#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"


Expand Down
4 changes: 4 additions & 0 deletions extension/boolexpr/flatten.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
*/


#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"


Expand Down
4 changes: 4 additions & 0 deletions extension/boolexpr/nnf.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
*/


#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"


Expand Down
4 changes: 4 additions & 0 deletions extension/boolexpr/set.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
*/


#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"


Expand Down
3 changes: 3 additions & 0 deletions extension/boolexpr/simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@


#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"

Expand Down
3 changes: 3 additions & 0 deletions extension/boolexpr/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@


#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"

Expand Down
4 changes: 4 additions & 0 deletions extension/boolexpr/vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
*/


#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#include "boolexpr.h"


Expand Down
1 change: 1 addition & 0 deletions pyeda/boolalg/exprnodemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <Python.h>

#include <stdbool.h>
#include "boolexpr.h"

#define NODE(x) (((ExprNode *) x)->ex)
Expand Down

0 comments on commit aac235d

Please sign in to comment.