Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22968
Modified Files:
mal_module.mx mal_readline.mx
Log Message:
Show function/command/pattern, they are informative
Properly handle extended descriptions where the comment is empty.
Index: mal_module.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_module.mx,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- mal_module.mx 14 Sep 2007 07:13:28 -0000 1.61
+++ mal_module.mx 15 Sep 2007 08:11:34 -0000 1.62
@@ -915,6 +915,7 @@
*v='a';
msg[top++]= GDKstrdup(v);
}
+ msg[top] = 0;
if( s->def->help) {
char *w;
@@ -925,7 +926,7 @@
/*ignore */
} else *v++ = *w;
*v = 0;
- }
+ } else fnd = 1; /* ignore non-existing
comment */
*v++ ='\n';
*v=0;
} else if(
strncmp(fcnnme,s->name,strlen(fcnnme))==0 ||
Index: mal_readline.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_readline.mx,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- mal_readline.mx 14 Sep 2007 06:19:16 -0000 1.54
+++ mal_readline.mx 15 Sep 2007 08:11:34 -0000 1.55
@@ -229,13 +229,8 @@
putchar('\n');
while( (msg[top]= mal_command_generator(rl_line_buffer,top)) )
if( ++top== 1000) break;
- for(i=0;i<top; i++) {
- char *c= strchr(msg[i],' ');
- if(c)
- printf("%s\n",c+1);
- else
- printf("%s\n",msg[i]);
- }
+ for(i=0;i<top; i++)
+ printf("%s\n",msg[i]);
printf("%s%s",rl_prompt,rl_line_buffer);
for( top--;top>=0; top--)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins