Skip to content

Commit

Permalink
Fix header guard names
Browse files Browse the repository at this point in the history
No functional changes introduced with this commit.
  • Loading branch information
kusalananda committed Oct 20, 2023
1 parent c5c730c commit db92673
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 31 deletions.
6 changes: 3 additions & 3 deletions src/bayes.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __BAYES_H__
#define __BAYES_H__
#ifndef BAYES_H_
#define BAYES_H_

#ifdef HAVE_CONFIG_H
# include "config.h"
Expand Down Expand Up @@ -1831,4 +1831,4 @@ extern MrBFlt myStateInfo[7]; /* likelihood/pr
extern MrBFlt partnerStateInfo[7]; /* likelihood/prior/heat/ran/moveInfo vals of partner */
#endif

#endif /* __BAYES_H__ */
#endif /* BAYES_H_ */
6 changes: 3 additions & 3 deletions src/best.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __BEST_H__
#define __BEST_H__
#ifndef BEST_H_
#define BEST_H_

/* typedefs used by Fredrik's code, derived from BEST code */

Expand All @@ -26,4 +26,4 @@ void ShowUpperTriangMatrix (double *values, int squareSize);

/* NOTE: To add and set up more move functions, a struct needs to be added to SetUpMoveTypes in model.c */

#endif /* __BEST_H__ */
#endif /* BEST_H_ */
6 changes: 3 additions & 3 deletions src/command.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __COMMAND_H__
#define __COMMAND_H__
#ifndef COMMAND_H_
#define COMMAND_H_

int AddString (char ***list, int len, char *token);
BitsLong Expecting (int y);
Expand Down Expand Up @@ -30,4 +30,4 @@ char WhichNuc (int x);
char WhichRes (int x);
char WhichStand (int x);

#endif /* __COMMAND_H__ */
#endif /* COMMAND_H_ */
6 changes: 3 additions & 3 deletions src/likelihood.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __LIKELIHOOD_H__
#define __LIKELIHOOD_H__
#ifndef LIKELIHOOD_H_
#define LIKELIHOOD_H_

//#define TIMING_ANALIZ
#if defined (TIMING_ANALIZ)
Expand Down Expand Up @@ -161,4 +161,4 @@ int TiProbs_JukesCantor (TreeNode *p, int division, int chain);
int TiProbs_Std (TreeNode *p, int division, int chain);
int TiProbs_Res (TreeNode *p, int division, int chain);

#endif /* __LIKELIHOOD_H__ */
#endif /* LIKELIHOOD_H_ */
7 changes: 3 additions & 4 deletions src/mbbeagle.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MBBEAGLE_H__
#define __MBBEAGLE_H__
#ifndef MBBEAGLE_H_
#define MBBEAGLE_H_

void BeaglePrintResources (void);
void BeaglePrintFlags (long inFlags);
Expand Down Expand Up @@ -36,5 +36,4 @@ int TreeLikelihood_BeagleMultiPartition (int* divisions, int divisionCount, i

//extern char *beagleGetVersion (void);

#endif /* __MBBEAGLE_H__ */

#endif /* MBBEAGLE_H_ */
6 changes: 3 additions & 3 deletions src/mcmc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MCMC_H__
#define __MCMC_H__
#ifndef MCMC_H_
#define MCMC_H_

int AddToPrintString (char *tempStr);
void AutotuneDirichlet (MrBFlt acceptanceRate, MrBFlt targetRate, int batch, MrBFlt *alphaPi, MrBFlt minTuning, MrBFlt maxTuning);
Expand Down Expand Up @@ -32,4 +32,4 @@ int SafeSprintf (char **target, int *targetLen, char *fmt, ...);
int SetFilePositions (int samplePos);
MrBFlt TreeLength (Param *param, int chain);

#endif /* __MCMC_H__ */
#endif /* MCMC_H_ */
6 changes: 3 additions & 3 deletions src/model.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MODEL_H__
#define __MODEL_H__
#ifndef MODEL_H_
#define MODEL_H_

int AreDoublesEqual (MrBFlt x, MrBFlt y, MrBFlt tol);
int ChangeNumRuns (int from, int to);
Expand Down Expand Up @@ -57,4 +57,4 @@ int UpdateCppEvolLengths (Param *param, TreeNode *p, int chain);
int UpdateTK02EvolLengths (Param *param, Tree *t, int chain);
int UpdateIndBrachLengths (Param *param, Tree *t, int chain);

#endif /* __MODEL_H__ */
#endif /* MODEL_H_ */
6 changes: 3 additions & 3 deletions src/proposal.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __PROPOSAL_H__
#define __PROPOSAL_H__
#ifndef PROPOSAL_H_
#define PROPOSAL_H_

int Move_Aamodel (Param *param, int chain, RandLong *seed, MrBFlt *lnPriorRatio, MrBFlt *lnProposalRatio, MrBFlt *mvp);
int Move_AddBranch (Param *param, int chain, RandLong *seed, MrBFlt *lnPriorRatio, MrBFlt *lnProposalRatio, MrBFlt *mvp);
Expand Down Expand Up @@ -93,4 +93,4 @@ int Move_TreeLen (Param *param, int chain, RandLong *seed, MrBFlt *lnPriorRa
int Move_WNVar (Param *param, int chain, RandLong *seed, MrBFlt *lnPriorRatio, MrBFlt *lnProposalRatio, MrBFlt *mvp);
int Move_WNBranchRate (Param *param, int chain, RandLong *seed, MrBFlt *lnPriorRatio, MrBFlt *lnProposalRatio, MrBFlt *mvp);

#endif /* __PROPOSAL_H__ */
#endif /* PROPOSAL_H_ */
6 changes: 3 additions & 3 deletions src/sumpt.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __SUMPT_H__
#define __SUMPT_H__
#ifndef SUMPT_H_
#define SUMPT_H_

/* struct to hold info about a .p file */
typedef struct
Expand Down Expand Up @@ -48,4 +48,4 @@ void ResetTranslateTable (void);
int ShowConTree (FILE *fp, PolyTree *t, int screenWidth, int showSupport);
void ShowParts (FILE *fp, BitsLong *p, int nTaxaToShow);

#endif /* __SUMPT_H__ */
#endif /* SUMPT_H_ */
6 changes: 3 additions & 3 deletions src/utils.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __UTILS_H__
#define __UTILS_H__
#ifndef UTILS_H_
#define UTILS_H_

/* M_PI and M_PI_2 not part of standard C */
#ifndef M_PI
Expand Down Expand Up @@ -289,4 +289,4 @@ MrBFlt LogNormalPoint (MrBFlt x, MrBFlt mu, MrBFlt sigma);
/* qsort utility function */
int cmpMrBFlt(const void *a, const void *b);

#endif /* __UTILS_H__ */
#endif /* UTILS_H_ */

0 comments on commit db92673

Please sign in to comment.