From 6f312ac705ab7263dcacd1fdc192c51a29727ef6 Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Mon, 19 Feb 2001 16:15:29 +0000 Subject: [PATCH] Provide help message about comment lines. --- src/iocsh/ioccrf.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/iocsh/ioccrf.cpp b/src/iocsh/ioccrf.cpp index a1731ab9d..b75878b49 100644 --- a/src/iocsh/ioccrf.cpp +++ b/src/iocsh/ioccrf.cpp @@ -480,6 +480,15 @@ static void helpCallFunc(const ioccrfArgBuf *) { } +/* comment */ +static const ioccrfArg commentArg0 = { "newline-terminated comment",ioccrfArgInt}; +static const ioccrfArg *commentArgs[1] = {&commentArg0}; +static const ioccrfFuncDef commentFuncDef = + {"#",1,commentArgs}; +static void commentCallFunc(const ioccrfArgBuf *) +{ +} + /* exit */ static const ioccrfFuncDef exitFuncDef = {"exit",0,0}; @@ -490,6 +499,7 @@ static void exitCallFunc(const ioccrfArgBuf *) static void localRegister (void) { ioccrfRegister(&helpFuncDef,helpCallFunc); + ioccrfRegister(&commentFuncDef,helpCallFunc); ioccrfRegister(&exitFuncDef,exitCallFunc); }