NEURON
modl.cpp File Reference
#include <../../nmodlconf.h>
#include <getopt.h>
#include "modl.h"

Go to the source code of this file.

Macros

#define NMODL_TEXT   1
 

Functions

int yyparse ()
 
int mkdir_p (const char *)
 
static void show_options (char **argv)
 
static void openfiles (char *given_filename, char *output_dir)
 
int main (int argc, char **argv)
 
static std::string str_replace (std::string str, const std::string &search_str, const std::string &replace_str)
 
void verbatim_adjust (char *q)
 

Variables

FILE * fin
 
FILE * fparout
 
FILE * fcout
 
char * modprefix
 
char * finname
 
int nmodl_text = 1
 
Listfiletxtlist
 
static char pgm_name [] = "nmodl"
 
char * RCS_version
 
char * RCS_date
 
static struct option long_options []
 

Macro Definition Documentation

◆ NMODL_TEXT

#define NMODL_TEXT   1

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 101 of file modl.cpp.

◆ mkdir_p()

int mkdir_p ( const char *  path)

Definition at line 457 of file io.cpp.

◆ openfiles()

static void openfiles ( char *  given_filename,
char *  output_dir 
)
static

Definition at line 291 of file modl.cpp.

◆ show_options()

static void show_options ( char **  argv)
static

Definition at line 89 of file modl.cpp.

◆ str_replace()

static std::string str_replace ( std::string  str,
const std::string &  search_str,
const std::string &  replace_str 
)
static

Definition at line 358 of file modl.cpp.

◆ yyparse()

int yyparse ( )

Variable Documentation

◆ fcout

FILE * fcout

Definition at line 49 of file modl.cpp.

◆ fparout

FILE * fparout

Definition at line 48 of file modl.cpp.

◆ long_options

struct option long_options[]
static
Initial value:
= {{"version", no_argument, 0, 'v'},
{"help", no_argument, 0, 'h'},
{"outdir", required_argument, 0, 'o'},
{0, 0, 0, 0}}

Definition at line 82 of file modl.cpp.

◆ pgm_name

char pgm_name[] = "nmodl"
static

Definition at line 80 of file modl.cpp.

◆ RCS_date

char* RCS_date
extern

Definition at line 5 of file version.cpp.

◆ RCS_version

char* RCS_version
extern

Definition at line 4 of file version.cpp.