NEURON
mswinprt.cpp File Reference
#include <../../nrnconf.h>
#include <windows.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "hoc.h"
#include "../mswin/extra/d2upath.cpp"
#include "gui-redirect.h"

Go to the source code of this file.

Macros

#define ncyg_fprintf   fprintf
 
#define HOCXDOS   "lib/nrnsys.sh"
 
#define SEMA1   "tmpdos1.tmp"
 
#define SEMA2   "tmpdos2.tmp"
 

Functions

void hoc_quit ()
 
void setneuronhome (const char *p)
 
void HandleOutput (char *s)
 
static long exception_filter (LPEXCEPTION_POINTERS p)
 
void hoc_set_unhandled_exception_filter ()
 
BOOL hoc_copyfile (const char *src, const char *dest)
 
void nrn_mswindll_stdio (FILE *i, FILE *o, FILE *e)
 
int ncyg_fprintf (FILE *stream, const char *strFmt,...)
 
void hoc_forward2back (char *s)
 
char * hoc_back2forward (char *s)
 
void hoc_win32_cleanup ()
 
void hoc_win_exec (void)
 
FILE * popen (char *s1, char *s2)
 
 pclose (FILE *p)
 
void hoc_check_intupt (int intupt)
 
int system (const char *s)
 
 hoc_win_normal_cursor ()
 
 hoc_win_wait_cursor ()
 
void hoc_winio_show (int b)
 
int getpid ()
 
void hoc_Plt ()
 
void hoc_Setcolor ()
 
void hoc_Lw ()
 

Variables

Object **(* nrnpy_gui_helper_ )(const char *name, Object *obj)
 HAVE_IV. More...
 
double(* nrnpy_object_to_double_ )(Object *)
 
char * neuron_home
 
char * neuron_home_dos
 
HWND hCurrWnd
 
static HCURSOR wait_cursor
 
static HCURSOR old_cursor
 
int bad_install_ok
 
FILE * hoc_redir_stdout
 
static FILE * dll_stdio_ [] = {(FILE*)0x0, (FILE*)0x20, (FILE*)0x40}
 

Macro Definition Documentation

◆ HOCXDOS

#define HOCXDOS   "lib/nrnsys.sh"

Definition at line 277 of file mswinprt.cpp.

◆ ncyg_fprintf

#define ncyg_fprintf   fprintf

Definition at line 154 of file mswinprt.cpp.

◆ SEMA1

#define SEMA1   "tmpdos1.tmp"

Definition at line 278 of file mswinprt.cpp.

◆ SEMA2

#define SEMA2   "tmpdos2.tmp"

Definition at line 279 of file mswinprt.cpp.

Function Documentation

◆ exception_filter()

static long exception_filter ( LPEXCEPTION_POINTERS  p)
static

Definition at line 112 of file mswinprt.cpp.

◆ getpid()

int getpid ( )

Definition at line 355 of file mswinprt.cpp.

◆ HandleOutput()

void HandleOutput ( char *  s)

Definition at line 109 of file mswinprt.cpp.

◆ hoc_back2forward()

char* hoc_back2forward ( char *  s)

Definition at line 193 of file mswinprt.cpp.

◆ hoc_check_intupt()

void hoc_check_intupt ( int  intupt)

Definition at line 244 of file mswinprt.cpp.

◆ hoc_copyfile()

BOOL hoc_copyfile ( const char *  src,
const char *  dest 
)

Definition at line 134 of file mswinprt.cpp.

◆ hoc_forward2back()

void hoc_forward2back ( char *  s)

Definition at line 184 of file mswinprt.cpp.

◆ hoc_Lw()

void hoc_Lw ( void  )

Definition at line 372 of file mswinprt.cpp.

◆ hoc_Plt()

void hoc_Plt ( void  )

Definition at line 370 of file mswinprt.cpp.

◆ hoc_quit()

void hoc_quit ( )

Definition at line 1164 of file hoc.cpp.

◆ hoc_set_unhandled_exception_filter()

void hoc_set_unhandled_exception_filter ( )

Definition at line 131 of file mswinprt.cpp.

◆ hoc_Setcolor()

void hoc_Setcolor ( void  )

Definition at line 371 of file mswinprt.cpp.

◆ hoc_win32_cleanup()

void hoc_win32_cleanup ( )

Definition at line 208 of file mswinprt.cpp.

◆ hoc_win_exec()

void hoc_win_exec ( void  )

Definition at line 222 of file mswinprt.cpp.

◆ hoc_win_normal_cursor()

hoc_win_normal_cursor ( )

Definition at line 320 of file mswinprt.cpp.

◆ hoc_win_wait_cursor()

hoc_win_wait_cursor ( )

Definition at line 328 of file mswinprt.cpp.

◆ hoc_winio_show()

void hoc_winio_show ( int  b)

Definition at line 342 of file mswinprt.cpp.

◆ ncyg_fprintf()

int ncyg_fprintf ( FILE *  stream,
const char *  strFmt,
  ... 
)

Definition at line 157 of file mswinprt.cpp.

◆ nrn_mswindll_stdio()

void nrn_mswindll_stdio ( FILE *  i,
FILE *  o,
FILE *  e 
)

Definition at line 140 of file mswinprt.cpp.

◆ pclose()

pclose ( FILE *  p)

Definition at line 240 of file mswinprt.cpp.

◆ popen()

FILE* popen ( char *  s1,
char *  s2 
)

Definition at line 235 of file mswinprt.cpp.

◆ setneuronhome()

void setneuronhome ( const char *  p)

Definition at line 39 of file mswinprt.cpp.

◆ system()

int system ( const char *  s)

Definition at line 281 of file mswinprt.cpp.

Variable Documentation

◆ bad_install_ok

int bad_install_ok

Definition at line 36 of file mswinprt.cpp.

◆ dll_stdio_

FILE* dll_stdio_[] = {(FILE*)0x0, (FILE*)0x20, (FILE*)0x40}
static

Definition at line 138 of file mswinprt.cpp.

◆ hCurrWnd

HWND hCurrWnd

◆ hoc_redir_stdout

FILE* hoc_redir_stdout

◆ neuron_home

char* neuron_home

Definition at line 268 of file hoc_init.cpp.

◆ neuron_home_dos

char* neuron_home_dos

Definition at line 204 of file code2.cpp.

◆ nrnpy_gui_helper_

Object**(* nrnpy_gui_helper_) (const char *name, Object *obj)

HAVE_IV.

Definition at line 13 of file xmenu.cpp.

◆ nrnpy_object_to_double_

double(* nrnpy_object_to_double_) (Object *)

Definition at line 14 of file xmenu.cpp.

◆ old_cursor

HCURSOR old_cursor
static

Definition at line 32 of file mswinprt.cpp.

◆ wait_cursor

HCURSOR wait_cursor
static

Definition at line 31 of file mswinprt.cpp.