Skip to content

Commit 654451d

Browse files
committed
Cleans up source
This primary purpose of this commit is to make some minor changes to the code to clean it up a bit. Notable changes are as follows: * The macro `__OPENMP__` is replaced by `_OPENMP`. `__OPENMP__` was an artifact from the old build system, which defined such a macro when the build was configured with OpenMP support. According to the [OpenMP specification](https://www.openmp.org/specifications/) Section [2.2](https://www.openmp.org/spec-html/5.1/openmpse10.html#x38-370002.2) "the `_OPENMP` macro name is defined to have the decimal value *yyyymm* where *yyyy* and *mm* are the year and month designations of the version of the OpenMP API that the implementation supports." As such, it should be the preferred way to check for OpenMP support during compilation. * The preprocessor condition `defined(__WITHPCRE__)` is replaced by `defined(USE_PCRE) && defined(HAVE_PCREPOSIX_H)`. `__WITHPCRE__` was an artifact from the old build system, which was defined during configuration if the build system user requested PCRE support. This functionality has been replaced by the macro name `USER_PCRE` to be consistent with the other feature availability checks done in the core CMake logic and the condition has been extended to not only check for the request (`USER_PCRE`), but also the availability of the necessary header file, namely `pcreposix.h` indicated by the macro name `HAVE_PCREPOSIX_H` being defined during CMake configuration.
1 parent 465b4be commit 654451d

38 files changed

Lines changed: 70 additions & 69 deletions

apps/cmpnbrs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
\version \verbatim $Id: m2mnbrs.c 17699 2014-09-27 18:05:31Z karypis $ \endverbatim
1010
*/
1111

12-
#include <GKlib.h>
12+
#include "GKlib.h"
1313

1414
/*************************************************************************/
1515
/*! Data structures for the code */

apps/csrcnv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
\version \verbatim $Id: csrcnv.c 15314 2013-10-05 16:50:50Z karypis $ \endverbatim
99
*/
1010

11-
#include <GKlib.h>
11+
#include "GKlib.h"
1212

1313
/*************************************************************************/
1414
/*! Data structures for the code */

apps/fis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
\version \verbatim $Id: fis.c 11075 2011-11-11 22:31:52Z karypis $ \endverbatim
88
*/
99

10-
#include <GKlib.h>
10+
#include "GKlib.h"
1111

1212
/*************************************************************************/
1313
/*! Data structures for the code */

apps/gkgraph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
\version \verbatim $Id: gkgraph.c 17700 2014-09-27 18:10:02Z karypis $ \endverbatim
88
*/
99

10-
#include <GKlib.h>
10+
#include "GKlib.h"
1111

1212

1313
/*************************************************************************/

apps/gkrw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
\version \verbatim $Id$ \endverbatim
88
*/
99

10-
#include <GKlib.h>
10+
#include "GKlib.h"
1111

1212
/*************************************************************************/
1313
/*! Data structures for the code */

apps/gksort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
\version\verbatim $Id: gksort.c 11058 2011-11-10 00:02:50Z karypis $ \endverbatim
88
*/
99

10-
#include <GKlib.h>
10+
#include "GKlib.h"
1111

1212
#define N 10000
1313

apps/gkuniq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
\author George
77
*/
88

9-
#include <GKlib.h>
9+
#include "GKlib.h"
1010

1111
/*************************************************************************/
1212
/*! Data structures for the code */

apps/grKx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
\version \verbatim $Id: grKx.c 17699 2014-09-27 18:05:31Z karypis $ \endverbatim
88
*/
99

10-
#include <GKlib.h>
10+
#include "GKlib.h"
1111

1212
/*************************************************************************/
1313
/*! Data structures for the code */

apps/m2mnbrs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
\version \verbatim $Id: m2mnbrs.c 17699 2014-09-27 18:05:31Z karypis $ \endverbatim
99
*/
1010

11-
#include <GKlib.h>
11+
#include "GKlib.h"
1212

1313
/*************************************************************************/
1414
/*! Data structures for the code */

apps/splatt2svd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
\author George
77
*/
88

9-
#include <GKlib.h>
9+
#include "GKlib.h"
1010

1111

1212
int main(int argc, char *argv[])

0 commit comments

Comments
 (0)