Skip to content

Commit

Permalink
#2521 Move #include statement to the top of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed May 10, 2023
1 parent 6032e7b commit 324d3d0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
14 changes: 10 additions & 4 deletions src/basic/vx_cal/mjd_to_date.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
////////////////////////////////////////////////////////////////////////


using namespace std;


#include <iostream>
#include <unistd.h>
#include <stdlib.h>
Expand All @@ -22,14 +19,23 @@ using namespace std;
#include "vx_cal.h"


using namespace std;


////////////////////////////////////////////////////////////////////////


void mjd_to_date(int mjd, int & month, int & day, int & year)

{

int i, j, n, l, d, m, y;
int i;
int j;
int n;
int l;
int d;
int m;
int y;


l = mjd + 2468570;
Expand Down
14 changes: 10 additions & 4 deletions src/basic/vx_cal/unix_to_mdyhms.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
////////////////////////////////////////////////////////////////////////


using namespace std;


#include <iostream>
#include <unistd.h>
#include <string.h>
Expand All @@ -23,6 +20,9 @@ using namespace std;
#include "vx_cal.h"


using namespace std;


////////////////////////////////////////////////////////////////////////


Expand Down Expand Up @@ -131,7 +131,13 @@ void unix_to_mdyhms(unixtime u, int & month, int & day, int & year, int & hour,

{

unixtime i, j, n, l, d, m, y;
unixtime i;
unixtime j;
unixtime n;
unixtime l;
unixtime d;
unixtime m;
unixtime y;


n = u/86400;
Expand Down

0 comments on commit 324d3d0

Please sign in to comment.