diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-09-12 13:33:51 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-09-12 16:58:56 +1000 |
commit | d9c7cb8ee1548b7b94ca9758ae6501cd9a1e0ee6 (patch) | |
tree | 11c7f1bfb943313d05423884425dae6ecf18e7d2 | |
parent | 39f8b5dedf4b713ce58cfa4bdd84d473d30fbeba (diff) | |
download | jimtcl-d9c7cb8ee1548b7b94ca9758ae6501cd9a1e0ee6.zip jimtcl-d9c7cb8ee1548b7b94ca9758ae6501cd9a1e0ee6.tar.gz jimtcl-d9c7cb8ee1548b7b94ca9758ae6501cd9a1e0ee6.tar.bz2 |
Remove all trailing whitespace in source
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | jim-aio.c | 18 | ||||
-rw-r--r-- | jim-array.c | 8 | ||||
-rw-r--r-- | jim-eventloop.c | 12 | ||||
-rw-r--r-- | jim-eventloop.h | 10 | ||||
-rw-r--r-- | jim-file.c | 10 | ||||
-rw-r--r-- | jim-format.c | 12 | ||||
-rw-r--r-- | jim-load.c | 2 | ||||
-rw-r--r-- | jim-pack.c | 12 | ||||
-rw-r--r-- | jim-posix.c | 8 | ||||
-rw-r--r-- | jim-readdir.c | 6 | ||||
-rw-r--r-- | jim-regexp.c | 10 | ||||
-rw-r--r-- | jim-signal.c | 2 | ||||
-rw-r--r-- | jim-subcmd.h | 8 | ||||
-rw-r--r-- | jim-syslog.c | 4 | ||||
-rw-r--r-- | jim.c | 10 | ||||
-rw-r--r-- | jim.h | 24 | ||||
-rw-r--r-- | jimregexp.c | 14 | ||||
-rw-r--r-- | linenoise.c | 4 | ||||
-rw-r--r-- | linenoise.h | 6 | ||||
-rw-r--r-- | utf8.h | 10 |
20 files changed, 95 insertions, 95 deletions
@@ -3,23 +3,23 @@ * * Copyright 2005 Salvatore Sanfilippo <antirez@invece.org> * Copyright 2005 Clemens Hintze <c.hintze@gmx.net> - * Copyright 2005 patthoyts - Pat Thoyts <patthoyts@users.sf.net> + * Copyright 2005 patthoyts - Pat Thoyts <patthoyts@users.sf.net> * Copyright 2008 oharboe - Øyvind Harboe - oyvind.harboe@zylin.com * Copyright 2008 Andrew Lunn <andrew@lunn.ch> * Copyright 2008 Duane Ellis <openocd@duaneellis.com> * Copyright 2008 Uwe Klein <uklein@klein-messgeraete.de> - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A @@ -32,7 +32,7 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. @@ -162,7 +162,7 @@ static int JimParseIPv6Address(Jim_Interp *interp, const char *hostport, union s memset(&req, '\0', sizeof(req)); req.ai_family = PF_INET6; - + if (getaddrinfo(sthost, NULL, &req, &ai)) { Jim_SetResultFormatted(interp, "Not a valid address: %s", hostport); ret = JIM_ERR; @@ -215,7 +215,7 @@ static int JimParseIpAddress(Jim_Interp *interp, const char *hostport, union soc struct addrinfo *ai; memset(&req, '\0', sizeof(req)); req.ai_family = PF_INET; - + if (getaddrinfo(sthost, NULL, &req, &ai)) { ret = JIM_ERR; } @@ -975,7 +975,7 @@ static int JimAioSubCmdProc(Jim_Interp *interp, int argc, Jim_Obj *const *argv) return Jim_CallSubCmd(interp, Jim_ParseSubCmd(interp, aio_command_table, argc, argv), argc, argv); } -static int JimAioOpenCommand(Jim_Interp *interp, int argc, +static int JimAioOpenCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { FILE *fp; @@ -1054,7 +1054,7 @@ static int JimAioOpenCommand(Jim_Interp *interp, int argc, /** * Creates a channel for fd. - * + * * hdlfmt is a sprintf format for the filehandle. Anything with %ld at the end will do. * mode is usual "r+", but may be another fdopen() mode as required. * diff --git a/jim-array.c b/jim-array.c index 1c601e4..89a86f0 100644 --- a/jim-array.c +++ b/jim-array.c @@ -1,5 +1,5 @@ -/* +/* * Implements the array command for jim * * (c) 2008 Steve Bennett <steveb@workware.net.au> @@ -7,14 +7,14 @@ * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A @@ -27,7 +27,7 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. diff --git a/jim-eventloop.c b/jim-eventloop.c index c59cb4f..f2a5fd0 100644 --- a/jim-eventloop.c +++ b/jim-eventloop.c @@ -3,23 +3,23 @@ * * Copyright 2005 Salvatore Sanfilippo <antirez@invece.org> * Copyright 2005 Clemens Hintze <c.hintze@gmx.net> - * Copyright 2005 patthoyts - Pat Thoyts <patthoyts@users.sf.net> + * Copyright 2005 patthoyts - Pat Thoyts <patthoyts@users.sf.net> * Copyright 2008 oharboe - Øyvind Harboe - oyvind.harboe@zylin.com * Copyright 2008 Andrew Lunn <andrew@lunn.ch> * Copyright 2008 Duane Ellis <openocd@duaneellis.com> * Copyright 2008 Uwe Klein <uklein@klein-messgeraete.de> - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A @@ -32,7 +32,7 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. @@ -316,7 +316,7 @@ jim_wide Jim_DeleteTimeHandler(Jim_Interp *interp, jim_wide id) long cur_sec, cur_ms; JimGetTime(&cur_sec, &cur_ms); - + remain = (te->when_sec - cur_sec) * 1000; remain += (te->when_ms - cur_ms); remain = (remain < 0) ? 0 : remain; diff --git a/jim-eventloop.h b/jim-eventloop.h index 30210df..04fe979 100644 --- a/jim-eventloop.h +++ b/jim-eventloop.h @@ -2,23 +2,23 @@ * * Copyright 2005 Salvatore Sanfilippo <antirez@invece.org> * Copyright 2005 Clemens Hintze <c.hintze@gmx.net> - * Copyright 2005 patthoyts - Pat Thoyts <patthoyts@users.sf.net> + * Copyright 2005 patthoyts - Pat Thoyts <patthoyts@users.sf.net> * Copyright 2008 oharboe - Øyvind Harboe - oyvind.harboe@zylin.com * Copyright 2008 Andrew Lunn <andrew@lunn.ch> * Copyright 2008 Duane Ellis <openocd@duaneellis.com> * Copyright 2008 Uwe Klein <uklein@klein-messgeraete.de> - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A @@ -31,7 +31,7 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. @@ -1,19 +1,19 @@ -/* +/* * Implements the file command for jim * * (c) 2008 Steve Bennett <steveb@workware.net.au> - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A @@ -26,7 +26,7 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. diff --git a/jim-format.c b/jim-format.c index acce494..c9cde89 100644 --- a/jim-format.c +++ b/jim-format.c @@ -1,19 +1,19 @@ -/* +/* * Implements the internals of the format command for jim * * The FreeBSD license - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A @@ -26,7 +26,7 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. @@ -279,7 +279,7 @@ Jim_Obj *Jim_FormatString(Jim_Interp *interp, Jim_Obj *fmtObjPtr, int objc, Jim_ /* Each valid conversion will set: * formatted_buf - the result to be added - * formatted_chars - the length of formatted_buf in characters + * formatted_chars - the length of formatted_buf in characters * formatted_bytes - the length of formatted_buf in bytes */ switch (ch) { @@ -21,7 +21,7 @@ /** * Note that Jim_LoadLibrary() requires a path to an existing file. - * + * * If it is necessary to search JIM_LIBPATH, use Jim_PackageRequire() instead. */ int Jim_LoadLibrary(Jim_Interp *interp, const char *pathName) @@ -33,7 +33,7 @@ static int JimTestBitLittleEndian(const unsigned char *bitvec, int b) /** * Sign extends the given value, 'n' of width 'width' bits. - * + * * For example, sign extending 0x80 with a width of 8, produces -128 */ static jim_wide JimSignExtend(jim_wide n, int width) @@ -52,7 +52,7 @@ static jim_wide JimSignExtend(jim_wide n, int width) /** * Big endian integer extraction. - * + * * Considers 'bitvect' as a big endian bit stream. * Returns an integer of the given width (in bits) * starting at the given position (in bits). @@ -85,7 +85,7 @@ static jim_wide JimBitIntBigEndian(const unsigned char *bitvec, int pos, int wid /** * Little endian integer extraction. - * + * * Like JimBitIntBigEndian() but considers 'bitvect' as a little endian bit stream. */ static jim_wide JimBitIntLittleEndian(const unsigned char *bitvec, int pos, int width) @@ -113,7 +113,7 @@ static jim_wide JimBitIntLittleEndian(const unsigned char *bitvec, int pos, int /** * Big endian bit set. - * + * * Considers 'bitvect' as a big endian bit stream and sets * bit 'b' to 'bit' */ @@ -130,7 +130,7 @@ static void JimSetBitBigEndian(unsigned char *bitvec, int b, int bit) /** * Little endian bit set. - * + * * Considers 'bitvect' as a little endian bit stream and sets * bit 'b' to 'bit' */ @@ -147,7 +147,7 @@ static void JimSetBitLittleEndian(unsigned char *bitvec, int b, int bit) /** * Big endian integer packing. - * + * * Considers 'bitvect' as a big endian bit stream. * Packs integer 'value' of the given width (in bits) * starting at the given position (in bits). diff --git a/jim-posix.c b/jim-posix.c index 2015f5f..0cf3604 100644 --- a/jim-posix.c +++ b/jim-posix.c @@ -68,18 +68,18 @@ static int Jim_PosixForkCommand(Jim_Interp *interp, int argc, Jim_Obj *const *ar * If -nohang is specified, and the process is still alive, returns * * {0 none 0} - * + * * If the process does not exist or has already been waited for, returns: * - * {-1 error <error-description>} + * {-1 error <error-description>} * * If the process exited normally, returns: * - * {<pid> exit <exit-status>} + * {<pid> exit <exit-status>} * * If the process terminated on a signal, returns: * - * {<pid> signal <signal-number>} + * {<pid> signal <signal-number>} * * Otherwise (core dump, stopped, continued, ...), returns: * diff --git a/jim-readdir.c b/jim-readdir.c index 3127efe..67fc956 100644 --- a/jim-readdir.c +++ b/jim-readdir.c @@ -7,14 +7,14 @@ * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A @@ -27,7 +27,7 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. diff --git a/jim-regexp.c b/jim-regexp.c index 8e497a2..2ccd996 100644 --- a/jim-regexp.c +++ b/jim-regexp.c @@ -1,4 +1,4 @@ -/* +/* * Implements the regexp and regsub commands for Jim * * (c) 2008 Steve Bennett <steveb@workware.net.au> @@ -8,14 +8,14 @@ * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A @@ -28,7 +28,7 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. @@ -526,7 +526,7 @@ int Jim_RegsubCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv) p++; n--; } - + regexec_flags |= REG_NOTBOL; } while (n); diff --git a/jim-signal.c b/jim-signal.c index 7520aac..6a2a2be 100644 --- a/jim-signal.c +++ b/jim-signal.c @@ -1,5 +1,5 @@ -/* +/* * jim-signal.c * */ diff --git a/jim-subcmd.h b/jim-subcmd.h index b834698..3a672eb 100644 --- a/jim-subcmd.h +++ b/jim-subcmd.h @@ -35,7 +35,7 @@ typedef struct { /** * Looks up the appropriate subcommand in the given command table and return * the command function which implements the subcommand. - * NULL will be returned and an appropriate error will be set if the subcommand or + * NULL will be returned and an appropriate error will be set if the subcommand or * arguments are invalid. * * Typical usage is: @@ -62,7 +62,7 @@ int Jim_SubCmdProc(Jim_Interp *interp, int argc, Jim_Obj *const *argv); /** * Invokes the given subcmd with the given args as returned * by Jim_ParseSubCmd() - * + * * If ct is NULL, returns JIM_ERR, leaving any message. * Otherwise invokes ct->function * @@ -73,13 +73,13 @@ int Jim_CallSubCmd(Jim_Interp *interp, const jim_subcmd_type *ct, int argc, Jim_ /** * Standard processing for a command. - * + * * This does the '-help' and '-usage' check and the number of args checks. * for a top level command against a single 'jim_subcmd_type' structure. * * Additionally, if command_table->function is set, it should point to a sub command table * and '-subhelp ?subcmd?', '-subusage' and '-subcommands' are then also recognised. - * + * * Returns 0 if user requested usage, -1 on arg error, 1 if OK to process. */ int diff --git a/jim-syslog.c b/jim-syslog.c index 189309a..4e14910 100644 --- a/jim-syslog.c +++ b/jim-syslog.c @@ -72,7 +72,7 @@ static void Jim_SyslogCmdDelete(Jim_Interp *interp, void *privData) /* Syslog_Log - * implements syslog tcl command. General format: syslog ?options? level text * options -facility -ident -options - * + * * syslog ?-facility cron|daemon|...? ?-ident string? ?-options int? ?debug|info|...? text */ int Jim_SyslogCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv) @@ -173,7 +173,7 @@ int Jim_SyslogCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv) int Jim_syslogInit(Jim_Interp *interp) { SyslogInfo *info; - + if (Jim_PackageProvide(interp, "syslog", "1.0", JIM_ERRMSG)) return JIM_ERR; @@ -1296,7 +1296,7 @@ static int JimParseEol(struct JimParserCtx *pc) ** - Backslash escapes quote and bracket ** - [commands brackets] are counted/nested ** - command rules apply within [brackets], not quoting rules (i.e. quotes have their own rules) -** +** ** [command expression] ** - Count open and closing brackets ** - Backslash escapes quote, bracket and brace @@ -1309,7 +1309,7 @@ static int JimParseEol(struct JimParserCtx *pc) /** * Parses a braced expression starting at pc->p. - * + * * Positions the parser at the end of the braced expression, * sets pc->tend and possibly pc->missing. */ @@ -1358,7 +1358,7 @@ static void JimParseSubBrace(struct JimParserCtx *pc) /** * Parses a quoted expression starting at pc->p. - * + * * Positions the parser at the end of the quoted expression, * sets pc->tend and possibly pc->missing. * @@ -1416,7 +1416,7 @@ static int JimParseSubQuote(struct JimParserCtx *pc) /** * Parses a [command] expression starting at pc->p. - * + * * Positions the parser at the end of the command expression, * sets pc->tend and possibly pc->missing. */ @@ -9759,7 +9759,7 @@ static int JimSubstOneToken(Jim_Interp *interp, const ScriptToken *token, Jim_Ob } break; default: - JimPanic((1, + JimPanic((1, "default token type (%d) reached " "in Jim_SubstObj().", token->type)); objPtr = NULL; break; @@ -2,23 +2,23 @@ * * Copyright 2005 Salvatore Sanfilippo <antirez@invece.org> * Copyright 2005 Clemens Hintze <c.hintze@gmx.net> - * Copyright 2005 patthoyts - Pat Thoyts <patthoyts@users.sf.net> + * Copyright 2005 patthoyts - Pat Thoyts <patthoyts@users.sf.net> * Copyright 2008 oharboe - Øyvind Harboe - oyvind.harboe@zylin.com * Copyright 2008 Andrew Lunn <andrew@lunn.ch> * Copyright 2008 Duane Ellis <openocd@duaneellis.com> * Copyright 2008 Uwe Klein <uklein@klein-messgeraete.de> - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A @@ -31,12 +31,12 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. * - *--- Inline Header File Documentation --- + *--- Inline Header File Documentation --- * [By Duane Ellis, openocd@duaneellis.com, 8/18/8] * * Belief is "Jim" would greatly benifit if Jim Internals where @@ -411,7 +411,7 @@ typedef void (Jim_FreeInternalRepProc)(struct Jim_Interp *interp, typedef void (Jim_DupInternalRepProc)(struct Jim_Interp *interp, struct Jim_Obj *srcPtr, Jim_Obj *dupPtr); typedef void (Jim_UpdateStringProc)(struct Jim_Obj *objPtr); - + typedef struct Jim_ObjType { const char *name; /* The name of the type. */ Jim_FreeInternalRepProc *freeIntRepProc; @@ -533,7 +533,7 @@ typedef struct Jim_Interp { callframe is created. This id is used for the 'ID' field contained in the Jim_CallFrame structure. */ - int local; /* If 'local' is in effect, newly defined procs keep a reference to the old defn */ + int local; /* If 'local' is in effect, newly defined procs keep a reference to the old defn */ Jim_Obj *liveList; /* Linked list of all the live objects. */ Jim_Obj *freeList; /* Linked list of all the unused objects. */ Jim_Obj *currentScriptObj; /* Script currently in execution. */ @@ -740,12 +740,12 @@ JIM_EXPORT void Jim_SetResultFormatted(Jim_Interp *interp, const char *format, . /* commands */ JIM_EXPORT void Jim_RegisterCoreCommands (Jim_Interp *interp); -JIM_EXPORT int Jim_CreateCommand (Jim_Interp *interp, +JIM_EXPORT int Jim_CreateCommand (Jim_Interp *interp, const char *cmdName, Jim_CmdProc cmdProc, void *privData, Jim_DelCmdProc delProc); JIM_EXPORT int Jim_DeleteCommand (Jim_Interp *interp, const char *cmdName); -JIM_EXPORT int Jim_RenameCommand (Jim_Interp *interp, +JIM_EXPORT int Jim_RenameCommand (Jim_Interp *interp, const char *oldName, const char *newName); JIM_EXPORT Jim_Cmd * Jim_GetCommand (Jim_Interp *interp, Jim_Obj *objPtr, int flags); @@ -846,7 +846,7 @@ JIM_EXPORT void Jim_SetDouble(Jim_Interp *interp, Jim_Obj *objPtr, JIM_EXPORT Jim_Obj * Jim_NewDoubleObj(Jim_Interp *interp, double doubleValue); /* shared strings */ -JIM_EXPORT const char * Jim_GetSharedString (Jim_Interp *interp, +JIM_EXPORT const char * Jim_GetSharedString (Jim_Interp *interp, const char *str); JIM_EXPORT void Jim_ReleaseSharedString (Jim_Interp *interp, const char *str); @@ -860,7 +860,7 @@ JIM_EXPORT int Jim_ScriptIsComplete (const char *s, int len, char *stateCharPtr); /** * Find a matching name in the array of the given length. - * + * * NULL entries are ignored. * * Returns the matching index if found, or -1 if not. diff --git a/jimregexp.c b/jimregexp.c index 4b30efa..c652ad4 100644 --- a/jimregexp.c +++ b/jimregexp.c @@ -524,7 +524,7 @@ static int regpiece(regex_t *preg, int *flagp) /** * Add all characters in the inclusive range between lower and upper. - * + * * Handles a swapped range (upper < lower). */ static void reg_addrange(regex_t *preg, int lower, int upper) @@ -550,7 +550,7 @@ static void reg_addrange_str(regex_t *preg, const char *str) /** * Extracts the next unicode char from utf8. - * + * * If 'upper' is set, converts the char to uppercase. */ static int reg_utf8_tounicode_case(const char *s, int *uc, int upper) @@ -564,7 +564,7 @@ static int reg_utf8_tounicode_case(const char *s, int *uc, int upper) /** * Converts a hex digit to decimal. - * + * * Returns -1 for an invalid hex digit. */ static int hexdigitval(int c) @@ -604,7 +604,7 @@ static int parse_hex(const char *s, int n, int *uc) /** * Call for chars after a backlash to decode the escape sequence. - * + * * Stores the result in *ch. * * Returns the number of bytes consumed. @@ -1150,7 +1150,7 @@ static int prefix_cmp(const int *prog, int proglen, const char *string, int noca /** * Searchs for 'c' in the range 'range'. - * + * * Returns 1 if found, or 0 if not. */ static int reg_range_find(const int *range, int c) @@ -1167,7 +1167,7 @@ static int reg_range_find(const int *range, int c) /** * Search for the character 'c' in the utf-8 string 'string'. - * + * * If 'nocase' is set, the 'string' is assumed to be uppercase * and 'c' is converted to uppercase before matching. * @@ -1193,7 +1193,7 @@ static const char *str_find(const char *string, int c, int nocase) /** * Returns true if 'ch' is an end-of-line char. - * + * * In REG_NEWLINE mode, \n is considered EOL in * addition to \0 */ diff --git a/linenoise.c b/linenoise.c index e0cc7a8..66ae0a6 100644 --- a/linenoise.c +++ b/linenoise.c @@ -366,7 +366,7 @@ static int has_room(struct current *current, int bytes) /** * Removes the char at 'pos'. - * + * * Returns 1 if the line needs to be refreshed, 2 if not * and 0 if nothing was removed */ @@ -401,7 +401,7 @@ static int remove_char(struct current *current, int pos) /** * Insert 'ch' at position 'pos' - * + * * Returns 1 if the line needs to be refreshed, 2 if not * and 0 if nothing was inserted (no room) */ diff --git a/linenoise.h b/linenoise.h index 4ac7f18..35ac7ce 100644 --- a/linenoise.h +++ b/linenoise.h @@ -9,18 +9,18 @@ * Copyright (c) 2010, Pieter Noordhuis <pcnoordhuis at gmail dot com> * * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: - * + * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -12,7 +12,7 @@ /** * Converts the given unicode codepoint (0 - 0xffff) to utf-8 * and stores the result at 'p'. - * + * * Returns the number of utf-8 characters (1-3). */ int utf8_fromunicode(char *p, unsigned short uc); @@ -32,7 +32,7 @@ int utf8_fromunicode(char *p, unsigned short uc); #elif !defined(JIM_BOOTSTRAP) /** * Returns the length of the utf-8 sequence starting with 'c'. - * + * * Returns 1-4, or -1 if this is not a valid start byte. * * Note that charlen=4 is not supported by the rest of the API. @@ -40,7 +40,7 @@ int utf8_fromunicode(char *p, unsigned short uc); int utf8_charlen(int c); /** - * Returns the number of characters in the utf-8 + * Returns the number of characters in the utf-8 * string of the given byte length. * * Any bytes which are not part of an valid utf-8 @@ -54,7 +54,7 @@ int utf8_strlen(const char *str, int bytelen); /** * Returns the byte index of the given character in the utf-8 string. - * + * * The string *must* be null terminated. * * This will return the byte length of a utf-8 string @@ -65,7 +65,7 @@ int utf8_index(const char *str, int charindex); /** * Returns the unicode codepoint corresponding to the * utf-8 sequence 'str'. - * + * * Stores the result in *uc and returns the number of bytes * consumed. * |