mainfunc.C File Reference

#include "memusage.h"
#include "converse.h"
#include "common.h"
#include "BackEnd.h"
#include "InfoStream.h"
#include "Broadcasts.h"
#include "NamdState.h"
#include "Node.h"
#include <unistd.h>
#include <sys/stat.h>
#include "ConfigList.h"
#include "ScriptTcl.h"

Go to the source code of this file.

Defines

#define CHDIR   chdir
#define GETCWD   getcwd
#define PATHSEP   '/'
#define PATHSEPSTR   "/"
#define CWDSIZE   1024

Functions

void after_backend_init (int argc, char **argv)
int main (int argc, char **argv)


Define Documentation

#define CHDIR   chdir

Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.

Definition at line 24 of file mainfunc.C.

Referenced by after_backend_init().

#define CWDSIZE   1024

Referenced by after_backend_init().

#define GETCWD   getcwd

Definition at line 25 of file mainfunc.C.

Referenced by after_backend_init().

#define PATHSEP   '/'

Definition at line 26 of file mainfunc.C.

Referenced by after_backend_init().

#define PATHSEPSTR   "/"

Definition at line 27 of file mainfunc.C.

Referenced by after_backend_init().


Function Documentation

void after_backend_init ( int  argc,
char **  argv 
)

int main ( int  argc,
char **  argv 
)

Definition at line 42 of file mainfunc.C.

References after_backend_init(), BackEnd::init(), and ScriptTcl::tclsh().

00042                                 {
00043 #ifdef NAMD_TCL
00044   if ( argc > 2 && ! strcmp(argv[1],"+tclsh") ) {
00045     // pass all remaining arguments to script
00046     return ScriptTcl::tclsh(argc-2,argv+2);
00047   }
00048 #endif
00049   BackEnd::init(argc,argv);
00050   after_backend_init(argc, argv);
00051   return 0;
00052 }


Generated on Sat Sep 23 01:17:17 2017 for NAMD by  doxygen 1.4.7