23 for (cp = buf; *cp !=
'\0'; ++cp) {
26 }
else if (*cp ==
'\r') {
40 static char fullPath[256];
42 OSErr err = HGetVol ((0), &vRefNum, &dirID);
44 myPB.dirInfo.ioNamePtr = dirName;
45 myPB.dirInfo.ioVRefNum = vRefNum;
46 myPB.dirInfo.ioDrParID = dirID;
47 myPB.dirInfo.ioFDirIndex= -1;
49 myPB.dirInfo.ioDrDirID = myPB.dirInfo.ioDrParID;
50 err = PBGetCatInfoSync(&myPB);
52 dirName[dirName[0]+1]=
'\0';
53 strcpy(prePath, &dirName[1]);
55 strcat(prePath, fullPath);
56 strcpy(fullPath, prePath);
58 }
while (myPB.dirInfo.ioDrDirID > 2);
69 if (strcmp(s,
"NEURONHOME") == 0) {
72 if (strcmp(s,
"NRNDEMO") == 0) {
74 strcat(buf,
":demo:");
77 printf(
"getenv: don't know |%s|\n", s);
87 extern void set_intset();
89 if (EventAvail(keyDownMask, &e)) {
91 if (e.what == keyDown) {
92 char c = e.message&charCodeMask;
143 plt(
int mode,
double x,
double y) {}
void plprint(const char *s)
void setneuronhome(const char *p)
#define TRY_GUI_REDIRECT_DOUBLE(name, obj)
FILE * popen(char *s1, char *s2)
plt(int mode, double x, double y)
char * getenv(const char *s)
double(* nrnpy_object_to_double_)(Object *)
int oc_print_from_dll(char *)
int hoc_copyfile(const char *src, const char *dest)
void debugfile(const char *,...)
void hoc_check_intupt(int intupt)