Powered by Apache

CVS log for nsh/complete.c

[BACK] Up to [local] / nsh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.3 / (download) - annotate - [select for diffs], Mon Mar 2 20:50:50 2009 UTC (3 years, 2 months ago) by chris
Branch: MAIN
CVS Tags: HEAD
Diff to previous 1.2 (colored)

Remove clause 3,4 from NetBSD copyrights

Revision 1.2 / (download) - annotate - [select for diffs], Sat Feb 16 22:57:20 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.1 (colored)

Dump StringList based makeargv and revert back to 4.4BSD makeargv, but
with cursor_argc/cursor_argo tracking added (for completion)

The newer makeargv was painful to read, and didn't handle fgets supplied
lines properly.  It did have the advantage of dynamically allocating
space for new arguments through the use of sl_add.  While this was nice,
it really isn't necessary.  Arguments are always parsed from a char line[].
So, we just set the max arguments to sizeof(line)/2 which is impossible
to exceed (an argument must be at least one character, and then it must
have another charater, space or \t to delineate.)  This ties makeargv()
to line[], which, surprise, is already the case.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Feb 14 01:00:59 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN

-SIGINT longjmp back to command() loop
-Command completion framework based on ftp client's completion feature
-Import StringList library
-Import new StringList based makeargv() function with cursor argument
 locating trick

Now we need more command completions, only handles menu and interface name
completions at the moment.  We also need context sensitive help/usage
to pop up for uncompleted command arguments.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>