diff options
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | TODO | 4 | ||||
-rw-r--r-- | jim.c | 15 |
3 files changed, 29 insertions, 3 deletions
@@ -1,3 +1,16 @@ +2005-04-08 16:07 patthoyts + + * jim-win32.c: Do not add cursorinfo if build target cannot cope. + +2005-04-08 16:06 patthoyts + + * jim.c, jimsh.c: Fix win32 build + +2005-04-07 09:27 antirez + + * ChangeLog, jimsh.c: Fixed a typo that prevented compilation with + JIM_ANSIC + 2005-04-07 08:52 antirez * ChangeLog, jim.c: The ** expr operator, thanks to Richard @@ -37,7 +37,11 @@ EXTENSIONS - Event loop - Files - Sockets +- Cryptography: hash functions, block ciphers, strim ciphers, PRNGs. - Tuplespace extension (http://wiki.tcl.tk/3947) (using sqlite as backend) +- Zlib +- Gdlib +- CGI (interface compatible with ncgi, but possibly written in C for speed) SPEED OPTIMIZATIONS @@ -2,7 +2,7 @@ * Copyright 2005 Salvatore Sanfilippo <antirez@invece.org> * Copyright 2005 Clemens Hintze <c.hintze@gmx.net> * - * $Id: jim.c,v 1.152 2005/04/08 14:06:00 patthoyts Exp $ + * $Id: jim.c,v 1.153 2005/04/09 08:23:40 antirez Exp $ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -478,6 +478,15 @@ void Jim_Panic(const char *fmt, ...) * Memory allocation * ---------------------------------------------------------------------------*/ +/* Macro used for memory debugging. + * In order for they to work you have to rename Jim_Alloc into _Jim_Alloc + * and similary for Jim_Realloc and Jim_Free */ +#if 0 +#define Jim_Alloc(s) (printf("%s %d: Jim_Alloc(%d)\n",__FILE__,__LINE__,s),_Jim_Alloc(s)) +#define Jim_Free(p) (printf("%s %d: Jim_Free(%p)\n",__FILE__,__LINE__,p),_Jim_Free(p)) +#define Jim_Realloc(p,s) (printf("%s %d: Jim_Realloc(%p,%d)\n",__FILE__,__LINE__,p,s),_Jim_Realloc(p,s)) +#endif + void *Jim_Alloc(int size) { void *p = malloc(size); @@ -2238,7 +2247,7 @@ int Jim_GetEnum(Jim_Interp *interp, Jim_Obj *objPtr, if (i+1 != count) Jim_AppendString(interp, Jim_GetResult(interp), ", ", -1); } - free(tablePtrSorted); + Jim_Free(tablePtrSorted); } return JIM_ERR; } @@ -11442,7 +11451,7 @@ int Jim_InteractivePrompt(Jim_Interp *interp) printf("Welcome to Jim version %d.%d, " "Copyright (c) 2005 Salvatore Sanfilippo\n", JIM_VERSION / 100, JIM_VERSION % 100); - printf("CVS ID: $Id: jim.c,v 1.152 2005/04/08 14:06:00 patthoyts Exp $\n"); + printf("CVS ID: $Id: jim.c,v 1.153 2005/04/09 08:23:40 antirez Exp $\n"); Jim_SetVariableStrWithStr(interp, "jim_interactive", "1"); while (1) { char buf[1024]; |