⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changes

📁 BCAST Implementation for NS2
💻
📖 第 1 页 / 共 5 页
字号:
             it corresponds to a known command file, and if so,             displays the full pathname of the file, along with the             remaining arguments.           cplfile.c             I added an optional pair of callback function/data             members to the new cpl_file_completions() configuration             structure. Where provided, this callback is asked             on a file-by-file basis, which files should be included             in the list of file completions. For example, a callback             is provided for listing only completions of executable             files.           cplmatch.c             When listing completions, the length of the type suffix             of each completion wasn't being taken into account             correctly when computing the column widths. Thus the             listing appeared ragged sometimes. This is now fixed.           pathutil.c             I added a function for prepending a string to a path,             and another for testing whether a pathname referred to             an executable file.28/01/2001 mcs@astro.caltech.edu           libtecla.h cplmatch.c man/cpl_complete_word.3             The use of a publically defined structure to configure             the cpl_file_completions() callback was flawed, so a new             approach has been designed, and the old method, albeit             still supported, is no longer documented in the man             pages. The definition of the CplFileArgs structure in             libtecla.h is now accompanied by comments warning people             not to modify it, since modifications could break             applications linked to shared versions of the tecla             library. The new method involves an opaque CplFileConf             object, instances of which are returned by a provided             constructor function, configured with provided accessor             functions, and when no longer needed, deleted with a             provided destructor function. This is documented in the             cpl_complete_word man page. The cpl_file_completions()             callback distinguishes what type of configuration             structure it has been sent by virtue of a code placed at             the beginning of the CplFileConf argument by its             constructor.04/01/2001 mcs@astro.caltech.edu (Release of version 1.1j)           getline.c             I added upper-case bindings for the default meta-letter             keysequences such as M-b. They thus continue to work             when the user has caps-lock on.           Makefile             I re-implemented the "install" target in terms of new             install_lib, install_inc and install_man targets. When             distributing the library with other packages, these new             targets allows for finer grained control of the             installation process.30/12/2000 mcs@astro.caltech.edu           getline.c man/gl_get_line.3             I realized that the recall-history action that I             implemented wasn't what Markus had asked me for. What he             actually wanted was for down-history to continue going             forwards through a previous history recall session if no             history recall session had been started while entering             the current line. I have thus removed the recall-history             action and modified the down-history action function             accordingly.24/12/2000 mcs@astro.caltech.edu           getline.c             I modified gl_get_line() to allow the previously returned             line to be passed in the start_line argument.           getline.c man/gl_get_line.3             I added a recall-history action function, bound to M^P.             This recalls the last recalled history line, regardless             of whether it was from the current or previous line.13/12/2000 mcs@astro.caltech.edu (Release of version 1.1i)           getline.c history.h history.c man/gl_get_line.3             I implemented the equivalent of the ksh Operate action. I             have named the tecla equivalent "repeat-history". This             causes the line that is to be edited to returned, and             arranges for the next most recent history line to be             preloaded on the next call to gl_get_line(). Repeated             invocations of this action thus result in successive             history lines being repeated - hence the             name. Implementing the ksh Operate action was suggested             by Markus Gyger. In ksh it is bound to ^O, but since ^O             is traditionally bound by the default terminal settings,             to stop-output, I have bound the tecla equivalent to M-o.01/12/2000 mcs@astro.caltech.edu (Release of version 1.1h)           getline.c keytab.c keytab.h man/gl_get_line.3             I added a digit-argument action, to allow repeat             counts for actions to be entered. As in both tcsh             and readline, this is bound by default to each of             M-0, M-1 through to M-9, the number being appended             to the current repeat count. Once one of these has been             pressed, the subsequent digits of the repeat count can be             typed with or without the meta key pressed. It is also             possible to bind digit-argument to other keys, with or             without a numeric final keystroke. See man page for             details.           getline.c man/gl_get_line.3             Markus noted that my choice of M-< for the default             binding of read-from-file, could be confusing, since             readline binds this to beginning-of-history. I have             thus rebound it to ^X^F (ie. like find-file in emacs).           getline.c history.c history.h man/gl_get_line.3             I have now implemented equivalents of the readline             beginning-of-history and end-of-history actions.             These are bound to M-< and M-> respectively.           history.c history.h             I Moved the definition of the GlHistory type, and             its subordinate types from history.h to history.c.             There is no good reason for any other module to             have access to the innards of this structure.27/11/2000 mcs@astro.caltech.edu (Release of version 1.1g)           getline.c man/gl_get_line.3             I added a "read-from-file" action function and bound it             by default to M-<. This causes gl_get_line() to             temporarily return input from the file who's name             precedes the cursor.             26/11/2000 mcs@astro.caltech.edu           getline.c keytab.c keytab.h man/gl_get_line.3             I have reworked some of the keybinding code again.             Now, within key binding strings, in addition to the             previously existing notation, you can now use M-a to             denote meta-a, and C-a to denote control-a. For example,             a key binding which triggers when the user presses the             meta key, the control key and the letter [             simultaneously, can now be denoted by M-C-[, or M-^[ or             \EC-[ or \E^[.             I also updated the man page to use M- instead of \E in             the list of default bindings, since this looks cleaner.           getline.c man/gl_get_line.3             I added a copy-region-as-kill action function and             gave it a default binding to M-w.22/11/2000 mcs@astro.caltech.edu           *.c             Markus Gyger sent me a copy of a previous version of             the library, with const qualifiers added in appropriate             places. I have done the same for the latest version.             Among other things, this gets rid of the warnings             that are generated if one tells the compiler to             const qualify literal strings.           getline.c getline.h glconf.c             I have moved the contents of glconf.c and the declaration             of the GetLine structure into getline.c. This is cleaner,             since now only functions in getline.c can mess with the             innards of GetLine objects. It also clears up some problems             with system header inclusion order under Solaris, and also             the possibility that this might result in inconsistent             system macro definitions, which in turn could cause different             declarations of the structure to be seen in different files.           hash.c             I wrote a wrapper function to go around strcmp(), such that             when hash.c is compiled with a C++ compiler, the pointer             to the wrapper function is a C++ function pointer.             This makes it compatible with comparison function pointer             recorded in the hash table.           cplmatch.c getline.c libtecla.h             Markus noted that the Sun C++ compiler wasn't able to             match up the declaration of cpl_complete_word() in             libtecla.h, where it is surrounded by a extern "C" {}             wrapper, with the definition of this function in             cplmatch.c. My suspicion is that the compiler looks not             only at the function name, but also at the function             arguments to see if two functions match, and that the             match_fn() argument, being a fully blown function pointer             declaration, got interpetted as that of a C function in             one case, and a C++ function in the other, thus             preventing a match.             To fix this I now define a CplMatchFn typedef in libtecla.h,             and use this to declare the match_fn callback.20/11/2000 (Changes suggested by Markus Gyger to support C++ compilers):           expand.c             Renamed a variable called "explicit" to "xplicit", to             avoid conflicts when compiling with C++ compilers.           *.c             Added explicit casts when converting from (void *) to             other pointer types. This isn't needed in C but it is             in C++.           getline.c             tputs() has a strange declaration under Solaris. I was             enabling this declaration when the SPARC feature-test             macro was set. Markus changed the test to hinge on the             __sun and __SVR4 macros.           direader.c glconf.c stringrp.c             I had omitted to include string.h in these two files.           Markus also suggested some other changes, which are still           under discussion. With the just above changes however, the           library compiles without complaint using g++.19/11/2000 mcs@astro.caltech.edu           getline.h getline.c keytab.c keytab.h glconf.c           man/gl_get_line.3             I added support for backslash escapes (include \e             for the keyboard escape key) and literal binary             characters to the characters allowed within key sequences             of key bindings.           getline.h getline.c keytab.c keytab.h glconf.c           man/gl_get_line.3             I introduced symbolic names for the arrow keys, and             modified the library to use the cursor key sequences             reported by terminfo/termcap in addition to the default             ANSI ones. Anything bound to the symbolically named arrow             keys also gets bound to the default and terminfo/termcap             cursor key sequences. Note that under Solaris             terminfo/termcap report the properties of hardware X             terminals when TERM is xterm instead of the terminal             emulator properties, and the cursor keys on these two             systems generate different key sequences. This is an             example of why extra default sequences are needed.           getline.h getline.c keytab.c             For some reason I was using \e to represent the escape             character. This is supported by gcc, which thus doesn't             emit a warning except with the -pedantic flag, but isn't             part of standard C. I now use a macro to define escape             as \033 in getline.h, and this is now used wherever the             escape character is needed.17/11/2000 mcs@astro.caltech.edu (Release of version 1.1d)           getline.c, man/gl_get_line(3), html/gl_get_line.html             In tcsh ^D is bound to a function which does different             things depending on where the cursor is within the input             line. I have implemented its equivalent in the tecla             library. When invoked at the end of the line this action             function displays possible completions. When invoked on             an empty line it causes gl_get_line() to return NULL,             thus signalling end of input. When invoked within a line             it invokes forward-delete-char, as before. The new action             function is called del-char-or-list-or-eof.           getline.c, man/gl_get_line(3), html/gl_get_line.html             I found that the complete-word and expand-f

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -