Moved static constructor call of iocshRegisterCommon() from iocsh.cpp into

the output from the registerRecordDeviceDriver.pl script, so standalone
sequencer programs don't import all of iocCore unnecessarily.
This commit is contained in:
Andrew Johnson
2004-10-29 23:24:35 +00:00
parent 5c0f09c5d2
commit e700d00db0
2 changed files with 7 additions and 4 deletions
+2 -3
View File
@@ -891,11 +891,10 @@ static void localRegister (void)
} /* extern "C" */
/*
* Register commands on application startup
* Register local commands on application startup
*/
#include "iocshRegisterCommon.h"
class IocshRegister {
public:
IocshRegister() { localRegister(); iocshRegisterCommon(); }
IocshRegister() { localRegister(); }
};
static IocshRegister iocshRegisterObj;