Skip to content

Commit

Permalink
Add some comments to stop header reordering when formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pwdraper committed Jul 28, 2022
1 parent c661e4b commit 022a5cb
Show file tree
Hide file tree
Showing 28 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions argparse/argparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <config.h>

/* System includes */
#include <assert.h>
#include <errno.h>
#include <stdio.h>
Expand Down
2 changes: 2 additions & 0 deletions src/black_holes_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

/* Config parameters. */
#include <config.h>

/* Local includes */
#include "inline.h"

/* Import the right black holes definition */
Expand Down
2 changes: 2 additions & 0 deletions src/chemistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

/* Config parameters. */
#include <config.h>

/* Local includes. */
#include "chemistry_struct.h"

/* Import the right chemistry definition */
Expand Down
1 change: 1 addition & 0 deletions src/cooling/EAGLE/cooling_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
/* Config parameters. */
#include <config.h>

/* System includes. */
#include <hdf5.h>
#include <math.h>
#include <stdlib.h>
Expand Down
2 changes: 2 additions & 0 deletions src/cooling/EAGLE/cooling_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

/* Config parameters. */
#include <config.h>

/* Local includes. */
#include "cooling_struct.h"

/*! Number of different bins along the redhsift axis of the tables */
Expand Down
1 change: 1 addition & 0 deletions src/cooling/QLA_EAGLE/cooling_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
/* Config parameters. */
#include <config.h>

/* System includes. */
#include <hdf5.h>
#include <math.h>
#include <stdlib.h>
Expand Down
2 changes: 2 additions & 0 deletions src/cosmology.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

/* Config parameters. */
#include <config.h>

/* Local includes. */
#include "parser.h"
#include "physical_constants.h"
#include "timeline.h"
Expand Down
1 change: 1 addition & 0 deletions src/engine_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/* Config parameters. */
#include <config.h>

/* System includes. */
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
Expand Down
2 changes: 2 additions & 0 deletions src/line_of_sight.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

/* Config parameters. */
#include <config.h>

/* Local includes. */
#include "engine.h"
#include "io_properties.h"

Expand Down
1 change: 1 addition & 0 deletions src/memswap.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/* Config parameters. */
#include <config.h>

/* System includes. */
#include <stdint.h>

#ifdef HAVE_IMMINTRIN_H
Expand Down
1 change: 1 addition & 0 deletions src/mesh_gravity_patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/* Config parameters. */
#include <config.h>

/* System includes. */
#include <math.h>

/* This object's header. */
Expand Down
2 changes: 2 additions & 0 deletions src/neutrino/Default/neutrino_response.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

/* Config parameters. */
#include <config.h>

/* Local includes. */
#include "parser.h"

#ifdef HAVE_LIBGSL
Expand Down
2 changes: 2 additions & 0 deletions src/sink_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

/* Config parameters. */
#include <config.h>

/* Local includes. */
#include "inline.h"

/* Import the right black holes definition */
Expand Down
3 changes: 3 additions & 0 deletions tests/testAdiabaticIndex.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
*
******************************************************************************/
#include <config.h>

/* Local includes. */
#include "swift.h"

/* System includes. */
#include <fenv.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
3 changes: 3 additions & 0 deletions tests/testDistance.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
*
******************************************************************************/
#include <config.h>

/* Local includes. */
#include "swift.h"

/* System includes. */
#include <fenv.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 2 additions & 0 deletions tests/testErfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
******************************************************************************/

#include <config.h>

/* Local includes. */
#include "swift.h"

/* Standard includes */
Expand Down
2 changes: 2 additions & 0 deletions tests/testExp.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
******************************************************************************/

#include <config.h>

/* Local includes. */
#include "swift.h"

/* Standard includes */
Expand Down
1 change: 1 addition & 0 deletions tests/testHashmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/* Config parameters. */
#include <config.h>

/* System includes. */
#include <fenv.h>

/* Local headers. */
Expand Down
3 changes: 3 additions & 0 deletions tests/testHydroMPIrules.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
*
******************************************************************************/
#include <config.h>

/* Local includes. */
#include "swift.h"

/* System includes. */
#include <fenv.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
3 changes: 3 additions & 0 deletions tests/testKernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
*
******************************************************************************/
#include <config.h>

/* Local includes. */
#include "align.h"
#include "kernel_hydro.h"
#include "vector.h"

/* System includes. */
#include <fenv.h>
#include <stdlib.h>
#include <strings.h>
Expand Down
2 changes: 2 additions & 0 deletions tests/testKernelLongGrav.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
******************************************************************************/

#include <config.h>

/* Local includes. */
#include "exp10.h"
#include "swift.h"

Expand Down
2 changes: 2 additions & 0 deletions tests/testLog.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
******************************************************************************/

#include <config.h>

/* Local includes. */
#include "exp10.h"
#include "log.h"
#include "swift.h"
Expand Down
3 changes: 3 additions & 0 deletions tests/testMaths.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
******************************************************************************/

#include <config.h>

/* Local includes. */
#include "approx_math.h"
#include "vector.h"

/* System includes. */
#include <math.h>
#include <stdio.h>

Expand Down
1 change: 1 addition & 0 deletions tests/testRandom.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/* Config parameters. */
#include <config.h>

/* System includes. */
#include <fenv.h>

/* Local headers. */
Expand Down
1 change: 1 addition & 0 deletions tests/testRandomPoisson.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/* Config parameters. */
#include <config.h>

/* System includes. */
#include <fenv.h>

/* Local headers. */
Expand Down
1 change: 1 addition & 0 deletions tests/testRandomSpacing.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/* Config parameters. */
#include <config.h>

/* System includes. */
#include <fenv.h>

/* Local headers. */
Expand Down
3 changes: 3 additions & 0 deletions tests/testSymmetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
*
******************************************************************************/
#include <config.h>

/* Local includes. */
#include "swift.h"
#include "timestep_limiter_iact.h"

/* System includes. */
#include <fenv.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 2 additions & 0 deletions tests/testTimeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*
******************************************************************************/
#include <config.h>

/* Local includes. */
#include "timeline.h"
#include "tools.h"

Expand Down

0 comments on commit 022a5cb

Please sign in to comment.