Skip to content

Commit

Permalink
Merge branch 'master' into meaningful-types
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdonline authored Sep 27, 2023
2 parents c106dce + 8985d2b commit f092099
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
5 changes: 3 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ Installation

.. tab-item:: macOS

The recommended installation is to:
The recommended installation is to open a Terminal (Press `` + `Space` and type "terminal")
and type:

.. code::
Expand All @@ -104,7 +105,7 @@ Installation

.. tab-item:: Linux

The recommended installation is to:
The recommended installation is to open a terminal and type:

.. code::
Expand Down
4 changes: 2 additions & 2 deletions docs/install/install_instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Windows platforms.

#### Mac OS

Since version 7.8.1 we are providing Python wheels and NEURON can be installed using `pip` as:
Since version 7.8.1 we are providing Python wheels and NEURON can be installed using `pip` by opening a Terminal (Press `` + `Space` and type "terminal") and typing:

```
pip3 install neuron
Expand Down Expand Up @@ -107,7 +107,7 @@ architecture.

#### Linux

Like Mac OS, since 7.8.1 release python wheels are provided and you can use `pip` to install NEURON as:
Like Mac OS, since 7.8.1 release python wheels are provided and you can use `pip` to install NEURON by opening a terminal and typing:

```
pip3 install neuron
Expand Down
2 changes: 1 addition & 1 deletion src/nmodl/modl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extern int mkdir_p(const char*);

extern int vectorize;
extern int numlist;
extern char* nmodl_version_;
extern const char* nmodl_version_;
extern int usederivstatearray;

/*SUPPRESS 763*/
Expand Down
6 changes: 5 additions & 1 deletion src/nmodl/noccout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "parse1.hpp"
#include "symbol.h"

extern char* nmodl_version_;
extern const char* nmodl_version_;

#define P(arg) fputs(arg, fcout)
List *procfunc, *initfunc, *modelfunc, *termfunc, *initlist, *firstlist;
Expand Down Expand Up @@ -85,10 +85,12 @@ void c_out() {
P("#undef PI\n");
P("#define nil 0\n");
P("#define _pval pval\n"); // due to some old models using _pval
P("// clang-format on\n");
P("#include \"md1redef.h\"\n");
P("#include \"section_fwd.hpp\"\n");
P("#include \"nrniv_mf.h\"\n");
P("#include \"md2redef.h\"\n");
P("// clang-format off\n");
P("#include \"neuron/cache/mechanism_range.hpp\"\n");
P("#include <vector>\n");

Expand Down Expand Up @@ -481,10 +483,12 @@ void c_out_vectorize() {
P("#undef PI\n");
P("#define nil 0\n");
P("#define _pval pval\n"); // due to some old models using _pval
P("// clang-format off\n");
P("#include \"md1redef.h\"\n");
P("#include \"section_fwd.hpp\"\n");
P("#include \"nrniv_mf.h\"\n");
P("#include \"md2redef.h\"\n");
P("// clang-format on\n");
P("#include \"neuron/cache/mechanism_range.hpp\"\n");
printlist(defs_list);
printlist(firstlist);
Expand Down
3 changes: 3 additions & 0 deletions src/nmodl/nocpout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ directly by hoc.
#include "parse1.hpp"

#include <algorithm>
#include <iterator> // std::back_inserter
#include <stdlib.h>
#include <string>
#include <vector>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#define GETWD(buf) getcwd(buf, NRN_BUFSIZE)

int vectorize = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/oc/fileio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void hoc_sprint1(char** ppbuf, int argn) { /* convert args to right type for con
}

#if defined(WIN32)
static FILE* oc_popen(char* cmd, char* type) {
static FILE* oc_popen(char const* const cmd, char const* const type) {
FILE* fp;
char buf[1024];
assert(strlen(cmd) + 20 < 1024);
Expand Down
2 changes: 2 additions & 0 deletions src/oc/wrap_sprintf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include <cstdio>
#include <utility> // std::forward

namespace neuron {
/**
* @brief Redirect sprintf to snprintf if the buffer size can be deduced.
Expand Down

0 comments on commit f092099

Please sign in to comment.