Skip to content

Commit

Permalink
Move header file to .hpp instead of .h (#2755)
Browse files Browse the repository at this point in the history
  • Loading branch information
alkino authored Feb 22, 2024
1 parent 32c8894 commit 8dcb742
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/coreneuron/network/tqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void BinQ::remove(TQItem* q) {
}
}

//#include "coreneuron/nrniv/sptree.h"
//#include "coreneuron/nrniv/sptree.hpp"

/*
* The following code implements the basic operations on
Expand Down
2 changes: 1 addition & 1 deletion src/nrncvode/cvodeobj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extern int hoc_return_type_code;
#include "nrndaspk.h"
#include "nrniv_mf.h"
#include "nrnpy.h"
#include "tqueue.h"
#include "tqueue.hpp"
#include "mymath.h"
#include "htlist.h"
#include <nrnmutdec.h>
Expand Down
2 changes: 1 addition & 1 deletion src/nrncvode/hocevent.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <objcmd.h>
#include <pool.h>
#include <pool.hpp>
#include <netcon.h>
#include <nrnoc2iv.h>
#include <mymath.h>
Expand Down
2 changes: 1 addition & 1 deletion src/nrncvode/netcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "neuron/container/data_handle.hpp"
#include "nrnmpi.h"
#include "nrnneosm.h"
#include "pool.h"
#include "pool.hpp"

#include <InterViews/observe.h>

Expand Down
4 changes: 2 additions & 2 deletions src/nrncvode/netcvode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#include "parse.hpp"
#include "cvodeobj.h"
#include "hoclist.h"
#include "pool.h"
#include "tqueue.h"
#include "pool.hpp"
#include "tqueue.hpp"
#include "ocobserv.h"
#include "nrnneosm.h"
#include "datapath.h"
Expand Down
2 changes: 1 addition & 1 deletion src/nrncvode/netcvode.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "cvodeobj.h"
#include "neuron/container/data_handle.hpp"
#include "tqueue.h"
#include "tqueue.hpp"

#include <cmath>
#include <vector>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/nrncvode/sptree.h → src/nrncvode/sptree.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** sptree.h: The following type declarations provide the binary tree
** sptree.hpp: The following type declarations provide the binary tree
** representation of event-sets or priority queues needed by splay trees
**
** assumes that data and datb will be provided by the application
Expand Down
8 changes: 4 additions & 4 deletions src/nrncvode/tqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include <stdarg.h>
#include <section.h>

#include "tqueue.h"
#include "pool.h"
#include "tqueue.hpp"
#include "pool.hpp"

#include "classreg.h"
#include "nrnoc2iv.h"
Expand Down Expand Up @@ -127,7 +127,7 @@ of struct _spblk, we are really using TQItem
#define uplink parent_
#define cnt cnt_
#define key t_
#include <sptree.h>
#include <sptree.hpp>

// extern double dt;
#define nt_dt nrn_threads->_dt
Expand Down Expand Up @@ -280,7 +280,7 @@ void TQueue::statistics() {
Printf("calls to find=%lu\n", nfind);
Printf("comparisons=%d\n", sptree_->enqcmps);
#else
Printf("Turn on COLLECT_TQueue_STATISTICS_ in tqueue.h\n");
Printf("Turn on COLLECT_TQueue_STATISTICS_ in tqueue.hpp\n");
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion src/nrncvode/tqueue.h → src/nrncvode/tqueue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <assert.h>

#include <nrnmutdec.h>
#include <pool.h>
#include <pool.hpp>

class TQItem;
using TQItemPool = MutexPool<TQItem>;
Expand Down
2 changes: 1 addition & 1 deletion src/nrniv/bbsavestate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ callback to bbss_early when needed.

#include "netcon.h"
#include "nrniv_mf.h"
#include "tqueue.h"
#include "tqueue.hpp"
#include "vrecitem.h"

// on mingw, OUT became defined
Expand Down
2 changes: 1 addition & 1 deletion src/nrniv/savstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "ndatclas.h"
#include "nrniv_mf.h"

#include "tqueue.h"
#include "tqueue.hpp"
#include "netcon.h"
#include "vrecitem.h"
#include "utils/enumerate.h"
Expand Down

0 comments on commit 8dcb742

Please sign in to comment.