From 4d636df146d36086896ee1059bdf3fdbdf46986e Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Mon, 30 Aug 2004 13:39:03 +0000 Subject: [PATCH] extern C except for registerObj --- src/iocsh/iocsh.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/iocsh/iocsh.cpp b/src/iocsh/iocsh.cpp index ac74218cf..e2fd115f4 100644 --- a/src/iocsh/iocsh.cpp +++ b/src/iocsh/iocsh.cpp @@ -32,6 +32,8 @@ #define epicsExportSharedSymbols #include "iocsh.h" +extern "C" { + /* * File-local information */ @@ -66,12 +68,10 @@ struct iocshRedirect { /* * Set up command table mutex */ -extern "C" { static void iocshTableOnce (void *) { iocshTableMutex = epicsMutexMustCreate (); } -} /* * Lock the table mutex @@ -856,8 +856,6 @@ static void iocshCmdCallFunc(const iocshArgBuf *args) * so they show up in the help display */ -extern "C" { - /* comment */ static const iocshArg commentArg0 = { "newline-terminated comment",iocshArgArgv}; static const iocshArg *commentArgs[1] = {&commentArg0};