Skip to content

Commit

Permalink
Merge pull request #108 from paulray/placeholder
Browse files Browse the repository at this point in the history
Changed headers so that stdio.h is included before stdlib.h
  • Loading branch information
scottransom authored Nov 14, 2019
2 parents 608c59a + a595287 commit ef0e70b
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion include/makedata.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* Pulsar Data Generation Program */
/* by Scott Ransom */

#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "chkio.h"
Expand Down
2 changes: 1 addition & 1 deletion include/makeinf.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* Pulsar Data Set Info File Creator */
/* by Scott Ransom */

#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "chkio.h"
Expand Down
2 changes: 1 addition & 1 deletion include/orbint.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "vectors.h"

Expand Down
1 change: 1 addition & 0 deletions include/ransomfft.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion include/vectors.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include "fftw3.h"
#include "rawtype.h"

Expand Down
2 changes: 1 addition & 1 deletion src/cal2mjd.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

double slaCldj(int iy, int im, int id, int *j);
Expand Down
1 change: 1 addition & 0 deletions src/djcl.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "slamac.h"
Expand Down
2 changes: 1 addition & 1 deletion src/fitsfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
* Return 1 if file is a FITS file, else 0
*/

#include <stdio.h>
#include <stdlib.h>
#ifndef VMS
#include <unistd.h>
#endif
#include <stdio.h>
#include <fcntl.h>
#include <sys/file.h>
#include <errno.h>
Expand Down
1 change: 1 addition & 0 deletions src/fresnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
Copyright 1984, 1987, 1989 by Stephen L. Moshier
*/

#include <stdio.h>
#include<stdlib.h>
#include<math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/imio.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
* Return 1 if PC/DEC byte order, else 0
*/

#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include "imio.h"

static int scale = 1; /* If 0, skip scaling step */
Expand Down
2 changes: 1 addition & 1 deletion src/makewisdom.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "meminfo.h"
#include "fftw3.h"
Expand Down
2 changes: 1 addition & 1 deletion src/mjd2cal.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "slamac.h"
Expand Down
2 changes: 1 addition & 1 deletion src/patchdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/* by Scott M. Ransom */
/* 1 Mar 1999 */
/* */
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define WORKLEN 16384
Expand Down
2 changes: 1 addition & 1 deletion src/psrfits_dumparrays.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "stdlib.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "fitsio.h"

Expand Down
2 changes: 1 addition & 1 deletion src/shiftdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/* by Scott M. Ransom */
/* 1 Mar 1999 */
/* */
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/taperaw.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>

#define BLOCKLEN 49792

Expand Down
2 changes: 1 addition & 1 deletion src/toas2dat.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
Expand Down

0 comments on commit ef0e70b

Please sign in to comment.