mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-02 11:19:22 +02:00
Compare commits
88 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b9777ed993 | |||
| 38c7f335ae | |||
| cc37ad3856 | |||
| faf40861fa | |||
| 3e96c3d241 | |||
| 569850724e | |||
| d99df423c5 | |||
| baaa7e9ec7 | |||
| 92b8b2d307 | |||
| d25c16e2f2 | |||
| f28dbcea37 | |||
| 2f80667a28 | |||
| f1caea5d83 | |||
| f12d983dea | |||
| 7069fe5415 | |||
| cbcbdf421a | |||
| 83162468b3 | |||
| b8b6511fc1 | |||
| fa06a517b5 | |||
| 298b440930 | |||
| 3b5f929b18 | |||
| 0c935dd1e5 | |||
| ba59ddbd36 | |||
| 923e43b837 | |||
| 009d84a34f | |||
| c9b303e83a | |||
| f8c8ee5223 | |||
| b31c3c32e3 | |||
| ba94bdc0c4 | |||
| c276ec4627 | |||
| 85be35f33e | |||
| 4a1314cb9c | |||
| be0e87e7d1 | |||
| 841de7e214 | |||
| a223182c26 | |||
| 9498828e29 | |||
| 18694f1b69 | |||
| 3bd2a8a606 | |||
| 0d6f835683 | |||
| 54e09e7198 | |||
| fb4194e4e0 | |||
| d04a020a8a | |||
| 6650a69454 | |||
| 5a783ebd29 | |||
| ac80999985 | |||
| 7465c6375f | |||
| f4f79b84a5 | |||
| 767d8c1a1a | |||
| 5aec481097 | |||
| 1d63539cc7 | |||
| f75612fd99 | |||
| 57e16a3394 | |||
| 3e53c700a2 | |||
| 65591001e4 | |||
| 16435480f0 | |||
| 2e2301437c | |||
| 0e7f88e73e | |||
| e0874f8cbc | |||
| 705ada1aff | |||
| f48aa160fd | |||
| 0436922965 | |||
| fcaaae6b3f | |||
| 938ee834d3 | |||
| 6039c7f053 | |||
| 17a13437c9 | |||
| 9e3be26872 | |||
| 63ec85b970 | |||
| 2faa29f896 | |||
| bd4593ffb1 | |||
| e240c2da79 | |||
| 48e697e4b6 | |||
| f95534c3d4 | |||
| 2dedb45260 | |||
| 64922b9014 | |||
| 520e1e41f3 | |||
| 2561504d74 | |||
| 054e169de5 | |||
| 6920c72d4d | |||
| 2a4779dc51 | |||
| b7627630fa | |||
| 09e786e7a7 | |||
| 13d5aeef56 | |||
| 5f8a14b9de | |||
| 25281634cd | |||
| d6357e8f93 | |||
| e5f2be6159 | |||
| 06af25a72a | |||
| a1e2571e73 |
+6
-7
@@ -17,7 +17,7 @@ env:
|
||||
vi_cv_dll_name_perl=/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE/libperl.dylib
|
||||
vi_cv_dll_name_python=/System/Library/Frameworks/Python.framework/Versions/2.7/Python
|
||||
vi_cv_dll_name_python3=/usr/local/Frameworks/Python.framework/Versions/3.5/Python
|
||||
VIM=src/MacVim/build/Release/MacVim.app/Contents/MacOS/Vim
|
||||
VIMCMD=src/MacVim/build/Release/MacVim.app/Contents/MacOS/Vim
|
||||
"CONFOPT='--with-features=huge --enable-multibyte --enable-netbeans --with-tlib=ncurses --enable-cscope --enable-perlinterp=dynamic --enable-pythoninterp=dynamic --enable-python3interp=dynamic --enable-rubyinterp=dynamic --enable-luainterp=dynamic --with-lua-prefix=/usr/local --enable-gui=macvim'"
|
||||
|
||||
sudo: false
|
||||
@@ -35,12 +35,11 @@ script:
|
||||
- grep -q -- "-DDYNAMIC_PYTHON_DLL=\\\\\"$vi_cv_dll_name_python\\\\\"" src/auto/config.mk
|
||||
- grep -q -- "-DDYNAMIC_PYTHON3_DLL=\\\\\"$vi_cv_dll_name_python3\\\\\"" src/auto/config.mk
|
||||
- make -j$NPROC
|
||||
- rm -f result; $VIM -g -c "redir>result" -c version -c "redir END" -c q; sleep 1; cat result; grep -q -w "MacVim GUI" result
|
||||
- rm -f result; $VIM -g -c "redir>result" -c "lua print(\"Test\")" -c "redir END" -c q; sleep 1; cat result; echo; grep -q -w Test result
|
||||
- rm -f result; $VIM -g -c "redir>result" -c "perl VIM::Msg(\"Test\")" -c "redir END" -c q; sleep 1; cat result; echo; grep -q -w Test result
|
||||
- rm -f result; $VIM -g -c "redir>result" -c "py print(\"Test\")" -c "redir END" -c q; sleep 1; cat result; echo; grep -q -w Test result
|
||||
- rm -f result; $VIM -g -c "redir>result" -c "py3 print(\"Test\")" -c "redir END" -c q; sleep 1; cat result; echo; grep -q -w Test result
|
||||
- rm -f result; $VIM -g -c "redir>result" -c "ruby puts(\"Test\")" -c "redir END" -c q; sleep 1; cat result; echo; grep -q -w Test result
|
||||
- rm -f result; $VIMCMD -g -f -c "redir>result" -c "lua print(\"Test\")" -c "redir END" -c q; cat result; echo; grep -q -w Test result
|
||||
- rm -f result; $VIMCMD -g -f -c "redir>result" -c "perl VIM::Msg(\"Test\")" -c "redir END" -c q; cat result; echo; grep -q -w Test result
|
||||
- rm -f result; $VIMCMD -g -f -c "redir>result" -c "py print(\"Test\")" -c "redir END" -c q; cat result; echo; grep -q -w Test result
|
||||
- rm -f result; $VIMCMD -g -f -c "redir>result" -c "py3 print(\"Test\")" -c "redir END" -c q; cat result; echo; grep -q -w Test result
|
||||
- rm -f result; $VIMCMD -g -f -c "redir>result" -c "ruby puts(\"Test\")" -c "redir END" -c q; cat result; echo; grep -q -w Test result
|
||||
- make test
|
||||
|
||||
before_deploy:
|
||||
|
||||
@@ -13,6 +13,7 @@ SRC_ALL = \
|
||||
src/ascii.h \
|
||||
src/blowfish.c \
|
||||
src/buffer.c \
|
||||
src/channel.c \
|
||||
src/charset.c \
|
||||
src/crypt.c \
|
||||
src/crypt_zip.c \
|
||||
@@ -39,6 +40,7 @@ SRC_ALL = \
|
||||
src/gui_beval.h \
|
||||
src/hardcopy.c \
|
||||
src/hashtab.c \
|
||||
src/json.c \
|
||||
src/keymap.h \
|
||||
src/macros.h \
|
||||
src/main.c \
|
||||
@@ -113,6 +115,7 @@ SRC_ALL = \
|
||||
src/proto.h \
|
||||
src/proto/blowfish.pro \
|
||||
src/proto/buffer.pro \
|
||||
src/proto/channel.pro \
|
||||
src/proto/charset.pro \
|
||||
src/proto/crypt.pro \
|
||||
src/proto/crypt_zip.pro \
|
||||
@@ -132,6 +135,7 @@ SRC_ALL = \
|
||||
src/proto/gui_beval.pro \
|
||||
src/proto/hardcopy.pro \
|
||||
src/proto/hashtab.pro \
|
||||
src/proto/json.pro \
|
||||
src/proto/main.pro \
|
||||
src/proto/mark.pro \
|
||||
src/proto/mbyte.pro \
|
||||
|
||||
+689
-378
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,7 @@ DOCS = \
|
||||
arabic.txt \
|
||||
autocmd.txt \
|
||||
change.txt \
|
||||
channel.txt \
|
||||
cmdline.txt \
|
||||
debug.txt \
|
||||
debugger.txt \
|
||||
@@ -151,6 +152,7 @@ HTMLS = \
|
||||
arabic.html \
|
||||
autocmd.html \
|
||||
change.html \
|
||||
channel.html \
|
||||
cmdline.html \
|
||||
debug.html \
|
||||
debugger.html \
|
||||
|
||||
@@ -0,0 +1,218 @@
|
||||
*channel.txt* For Vim version 7.4. Last change: 2016 Jan 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
|
||||
Inter-process communication *channel*
|
||||
|
||||
DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT
|
||||
|
||||
Vim uses channels to communicate with other processes.
|
||||
A channel uses a socket. *socket-interface*
|
||||
|
||||
Vim current supports up to 10 simultanious channels.
|
||||
The Netbeans interface also uses a channel. |netbeans|
|
||||
|
||||
1. Demo |channel-demo|
|
||||
2. Opening a channel |channel-open|
|
||||
3. Using a JSON channel |channel-use|
|
||||
4. Vim commands |channel-commands|
|
||||
5. Using a raw channel |channel-use|
|
||||
6. Job control |job-control|
|
||||
|
||||
{Vi does not have any of these features}
|
||||
{only available when compiled with the |+channel| feature}
|
||||
|
||||
==============================================================================
|
||||
1. Demo *channel-demo*
|
||||
|
||||
This requires Python. The demo program can be found in
|
||||
$VIMRUNTIME/tools/demoserver.py
|
||||
Run it in one terminal. We will call this T1.
|
||||
|
||||
Run Vim in another terminal. Connect to the demo server with: >
|
||||
let handle = connect('localhost:8765', 'json')
|
||||
|
||||
In T1 you should see:
|
||||
=== socket opened === ~
|
||||
|
||||
You can now send a message to the server: >
|
||||
echo sendexpr(handle, 'hello!')
|
||||
|
||||
The message is received in T1 and a response is sent back to Vim.
|
||||
You can see the raw messages in T1. What Vim sends is:
|
||||
[1,"hello!"] ~
|
||||
And the response is:
|
||||
[1,"got it"] ~
|
||||
The number will increase every time you send a message.
|
||||
|
||||
The server can send a command to Vim. Type this on T1 (literally, including
|
||||
the quotes): >
|
||||
NOT IMPLEMENTED YET
|
||||
["ex","echo 'hi there'"]
|
||||
And you should see the message in Vim.
|
||||
|
||||
To handle asynchronous communication a callback needs to be used: >
|
||||
func MyHandler(handle, msg)
|
||||
echo "from the handler: " . a:msg
|
||||
endfunc
|
||||
call sendexpr(handle, 'hello!', "MyHandler")
|
||||
|
||||
Instead of giving a callback with every send call, it can also be specified
|
||||
when opening the channel: >
|
||||
call disconnect(handle)
|
||||
let handle = connect('localhost:8765', 'json', "MyHandler")
|
||||
call sendexpr(handle, 'hello!', 0)
|
||||
|
||||
==============================================================================
|
||||
2. Opening a channel *channel-open*
|
||||
|
||||
To open a channel:
|
||||
let handle = connect({address}, {mode}, {callback})
|
||||
|
||||
{address} has the form "hostname:port". E.g., "localhost:8765".
|
||||
|
||||
{mode} can be: *channel-mode*
|
||||
"json" - Use JSON, see below; most convenient way
|
||||
"raw" - Use raw messages
|
||||
|
||||
*channel-callback*
|
||||
{callback} is a function that is called when a message is received that is not
|
||||
handled otherwise. It gets two arguments: the channel handle and the received
|
||||
message. Example: >
|
||||
func Handle(handle, msg)
|
||||
echo 'Received: ' . a:msg
|
||||
endfunc
|
||||
let handle = connect("localhost:8765", 'json', "Handle")
|
||||
|
||||
When {mode} is "json" the "msg" argument is the body of the received message,
|
||||
converted to Vim types.
|
||||
When {mode} is "raw" the "msg" argument is the whole message as a string.
|
||||
|
||||
When {mode} is "json" the {callback} is optional. When omitted it is only
|
||||
possible to receive a message after sending one.
|
||||
|
||||
The handler can be added or changed later: >
|
||||
call sethandler(handle, {callback})
|
||||
When {callback} is empty (zero or an empty string) the handler is removed.
|
||||
|
||||
Once done with the channel, disconnect it like this: >
|
||||
call disconnect(handle)
|
||||
|
||||
==============================================================================
|
||||
3. Using a JSON channel *channel-use*
|
||||
|
||||
If {mode} is "json" then a message can be sent synchronously like this: >
|
||||
let response = sendexpr(handle, {expr})
|
||||
This awaits a response from the other side.
|
||||
|
||||
To send a message, without handling a response: >
|
||||
call sendexpr(handle, {expr}, 0)
|
||||
|
||||
To send a message and letting the response handled by a specific function,
|
||||
asynchronously: >
|
||||
call sendexpr(handle, {expr}, {callback})
|
||||
|
||||
The {expr} is converted to JSON and wrapped in an array. An example of the
|
||||
message that the receiver will get when {expr} is the string "hello":
|
||||
[12,"hello"] ~
|
||||
|
||||
The format of the JSON sent is:
|
||||
[{number},{expr}]
|
||||
|
||||
In which {number} is different every time. It must be used in the response
|
||||
(if any):
|
||||
|
||||
[{number},{response}]
|
||||
|
||||
This way Vim knows which sent message matches with which received message and
|
||||
can call the right handler. Also when the messages arrive out of order.
|
||||
|
||||
The sender must always send valid JSON to Vim. Vim can check for the end of
|
||||
the message by parsing the JSON. It will only accept the message if the end
|
||||
was received.
|
||||
|
||||
When the process wants to send a message to Vim without first receiving a
|
||||
message, it must use the number zero:
|
||||
[0,{response}]
|
||||
|
||||
Then channel handler will then get {response} converted to Vim types. If the
|
||||
channel does not have a handler the message is dropped.
|
||||
|
||||
On read error or disconnect() the string "DETACH" is sent, if still possible.
|
||||
The channel will then be inactive.
|
||||
|
||||
==============================================================================
|
||||
4. Vim commands *channel-commands*
|
||||
|
||||
NOT IMPLEMENTED YET
|
||||
|
||||
With a "json" channel the process can send commands to Vim that will be
|
||||
handled by Vim internally, it does not require a handler for the channel.
|
||||
|
||||
Possible commands are:
|
||||
["ex", {Ex command}]
|
||||
["normal", {Normal mode command}]
|
||||
["eval", {number}, {expression}]
|
||||
["expr", {expression}]
|
||||
|
||||
With all of these: Be careful what these commands do! You can easily
|
||||
interfere with what the user is doing. To avoid trouble use |mode()| to check
|
||||
that the editor is in the expected state. E.g., to send keys that must be
|
||||
inserted as text, not executed as a command: >
|
||||
["ex","if mode() == 'i' | call feedkeys('ClassName') | endif"]
|
||||
|
||||
The "ex" command is executed as any Ex command. There is no response for
|
||||
completion or error. You could use functions in an |autoload| script.
|
||||
You can also invoke |feedkeys()| to insert anything.
|
||||
|
||||
The "normal" command is executed like with |:normal|.
|
||||
|
||||
The "eval" command will result in sending back the result of the expression:
|
||||
[{number}, {result}]
|
||||
Here {number} is the same as what was in the request.
|
||||
|
||||
The "expr" command is similar, but does not send back any response.
|
||||
Example:
|
||||
["expr","setline('$', ['one', 'two', 'three'])"]
|
||||
|
||||
==============================================================================
|
||||
5. Using a raw channel *channel-raw*
|
||||
|
||||
If {mode} is "raw" then a message can be send like this: >
|
||||
let response = sendraw(handle, {string})
|
||||
The {string} is sent as-is. The response will be what can be read from the
|
||||
channel right away. Since Vim doesn't know how to recognize the end of the
|
||||
message you need to take care of it yourself.
|
||||
|
||||
To send a message, without expecting a response: >
|
||||
call sendraw(handle, {string}, 0)
|
||||
The process can send back a response, the channel handler will be called with
|
||||
it.
|
||||
|
||||
To send a message and letting the response handled by a specific function,
|
||||
asynchronously: >
|
||||
call sendraw(handle, {string}, {callback})
|
||||
|
||||
This {string} can also be JSON, use |jsonencode()| to create it and
|
||||
|jsondecode()| to handle a received JSON message.
|
||||
|
||||
==============================================================================
|
||||
6. Job control *job-control*
|
||||
|
||||
NOT IMPLEMENTED YET
|
||||
|
||||
To start another process: >
|
||||
call startjob({command})
|
||||
|
||||
This does not wait for {command} to exit.
|
||||
|
||||
TODO:
|
||||
|
||||
let handle = startjob({command}, 's') # uses stdin/stdout
|
||||
let handle = startjob({command}, '', {address}) # uses socket
|
||||
let handle = startjob({command}, 'd', {address}) # start if connect fails
|
||||
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
+43
-10
@@ -1,4 +1,4 @@
|
||||
*develop.txt* For Vim version 7.4. Last change: 2014 Mar 27
|
||||
*develop.txt* For Vim version 7.4. Last change: 2016 Jan 19
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -166,12 +166,27 @@ This list is not complete. Look in the source code for more examples.
|
||||
MAKING CHANGES *style-changes*
|
||||
|
||||
The basic steps to make changes to the code:
|
||||
1. Adjust the documentation. Doing this first gives you an impression of how
|
||||
1. Get the code from github. That makes it easier to keep your changed
|
||||
version in sync with the main code base (it may be a while before your
|
||||
changes will be included). You do need to spend some time learning git,
|
||||
it's not the most user friendly tool.
|
||||
2. Adjust the documentation. Doing this first gives you an impression of how
|
||||
your changes affect the user.
|
||||
2. Make the source code changes.
|
||||
3. Check ../doc/todo.txt if the change affects any listed item.
|
||||
4. Make a patch with "diff -c" against the unmodified code and docs.
|
||||
5. Make a note about what changed and include it with the patch.
|
||||
3. Make the source code changes.
|
||||
4. Check ../doc/todo.txt if the change affects any listed item.
|
||||
5. Make a patch with "git diff". You can also create a pull request on
|
||||
github, but it's the diff that matters.
|
||||
6. Make a note about what changed, preferably mentioning the problem and the
|
||||
solution. Send an email to the vim-dev maillist with an explanation and
|
||||
include the diff. Or create a pull request on github.
|
||||
|
||||
|
||||
C COMPILER *style-compiler*
|
||||
|
||||
The minimal C compiler version supported is C89, also known as ANSI C.
|
||||
Later standards don't add much and C89 is the widest supported.
|
||||
|
||||
One restriction that this implies: no // comments, only /* comments */.
|
||||
|
||||
|
||||
USE OF COMMON FUNCTIONS *style-functions*
|
||||
@@ -197,7 +212,7 @@ NAMES *style-names*
|
||||
|
||||
Function names can not be more than 31 characters long (because of VMS).
|
||||
|
||||
Don't use "delete" as a variable name, C++ doesn't like it.
|
||||
Don't use "delete" or "this" as a variable name, C++ doesn't like it.
|
||||
|
||||
Because of the requirement that Vim runs on as many systems as possible, we
|
||||
need to avoid using names that are already defined by the system. This is a
|
||||
@@ -288,6 +303,24 @@ OK: do
|
||||
a = 1;
|
||||
while (cond);
|
||||
|
||||
Wrong: if (cond) {
|
||||
cmd;
|
||||
cmd;
|
||||
} else {
|
||||
cmd;
|
||||
cmd;
|
||||
}
|
||||
|
||||
OK: if (cond)
|
||||
{
|
||||
cmd;
|
||||
cmd;
|
||||
}
|
||||
else
|
||||
{
|
||||
cmd;
|
||||
cmd;
|
||||
}
|
||||
|
||||
Functions start with:
|
||||
|
||||
@@ -299,9 +332,9 @@ OK: /*
|
||||
* Return value explanation.
|
||||
*/
|
||||
int
|
||||
function_name(arg1, arg2)
|
||||
int arg1; /* short comment about arg1 */
|
||||
int arg2; /* short comment about arg2 */
|
||||
function_name(
|
||||
int arg1, /* short comment about arg1 */
|
||||
int arg2) /* short comment about arg2 */
|
||||
{
|
||||
int local; /* comment about local */
|
||||
|
||||
|
||||
+133
-16
@@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 7.4. Last change: 2016 Jan 17
|
||||
*eval.txt* For Vim version 7.4. Last change: 2016 Jan 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -103,6 +103,9 @@ When mixing Number and Float the Number is converted to Float. Otherwise
|
||||
there is no automatic conversion of Float. You can use str2float() for String
|
||||
to Float, printf() for Float to String and float2nr() for Float to Number.
|
||||
|
||||
*E891* *E892* *E893* *E894*
|
||||
When expecting a Float a Number can also be used, but nothing else.
|
||||
|
||||
*E706* *sticky-type-checking*
|
||||
You will get an error if you try to change the type of a variable. You need
|
||||
to |:unlet| it first to avoid this error. String and Number are considered
|
||||
@@ -1406,6 +1409,13 @@ v:exception The value of the exception most recently caught and not
|
||||
:endtry
|
||||
< Output: "caught oops".
|
||||
|
||||
*v:false* *false-variable*
|
||||
v:false A Number with value zero. Used to put "false" in JSON. See
|
||||
|jsonencode()|.
|
||||
When used as a string this evaluates to "false". >
|
||||
echo v:false
|
||||
< false ~
|
||||
|
||||
*v:fcs_reason* *fcs_reason-variable*
|
||||
v:fcs_reason The reason why the |FileChangedShell| event was triggered.
|
||||
Can be used in an autocommand to decide what to do and/or what
|
||||
@@ -1482,7 +1492,7 @@ v:foldstart Used for 'foldtext': first line of closed fold.
|
||||
v:hlsearch Variable that indicates whether search highlighting is on.
|
||||
Setting it makes sense only if 'hlsearch' is enabled which
|
||||
requires |+extra_search|. Setting this variable to zero acts
|
||||
the like |:nohlsearch| command, setting it to one acts like >
|
||||
like the |:nohlsearch| command, setting it to one acts like >
|
||||
let &hlsearch = &hlsearch
|
||||
< Note that the value is restored when returning from a
|
||||
function. |function-search-undo|.
|
||||
@@ -1539,6 +1549,22 @@ v:mouse_col Column number for a mouse click obtained with |getchar()|.
|
||||
This is the screen column number, like with |virtcol()|. The
|
||||
value is zero when there was no mouse button click.
|
||||
|
||||
*v:none* *none-variable*
|
||||
v:none An empty String. Used to put an empty item in JSON. See
|
||||
|jsonencode()|.
|
||||
When used as a number this evaluates to zero.
|
||||
When used as a string this evaluates to "none". >
|
||||
echo v:none
|
||||
< none ~
|
||||
|
||||
*v:null* *null-variable*
|
||||
v:null An empty String. Used to put "null" in JSON. See
|
||||
|jsonencode()|.
|
||||
When used as a number this evaluates to zero.
|
||||
When used as a string this evaluates to "null". >
|
||||
echo v:null
|
||||
< null ~
|
||||
|
||||
*v:oldfiles* *oldfiles-variable*
|
||||
v:oldfiles List of file names that is loaded from the |viminfo| file on
|
||||
startup. These are the files that Vim remembers marks for.
|
||||
@@ -1704,6 +1730,12 @@ v:throwpoint The point where the exception most recently caught and not
|
||||
:endtry
|
||||
< Output: "Exception from test.vim, line 2"
|
||||
|
||||
*v:true* *true-variable*
|
||||
v:true A Number with value one. Used to put "true" in JSON. See
|
||||
|jsonencode()|.
|
||||
When used as a string this evaluates to "true". >
|
||||
echo v:true
|
||||
< true ~
|
||||
*v:val* *val-variable*
|
||||
v:val Value of the current item of a |List| or |Dictionary|. Only
|
||||
valid while evaluating the expression used with |map()| and
|
||||
@@ -1788,6 +1820,8 @@ complete_add( {expr}) Number add completion match
|
||||
complete_check() Number check for key typed during completion
|
||||
confirm( {msg} [, {choices} [, {default} [, {type}]]])
|
||||
Number number of choice picked by user
|
||||
connect( {address}, {mode} [, {callback}])
|
||||
Number open a channel
|
||||
copy( {expr}) any make a shallow copy of {expr}
|
||||
cos( {expr}) Float cosine of {expr}
|
||||
cosh( {expr}) Float hyperbolic cosine of {expr}
|
||||
@@ -1910,6 +1944,8 @@ isdirectory( {directory}) Number TRUE if {directory} is a directory
|
||||
islocked( {expr}) Number TRUE if {expr} is locked
|
||||
items( {dict}) List key-value pairs in {dict}
|
||||
join( {list} [, {sep}]) String join {list} items into one String
|
||||
jsondecode( {string}) any decode JSON
|
||||
jsonencode( {expr}) String encode JSON
|
||||
keys( {dict}) List keys in {dict}
|
||||
len( {expr}) Number the length of {expr}
|
||||
libcall( {lib}, {func}, {arg}) String call {func} in library {lib} with {arg}
|
||||
@@ -1993,6 +2029,10 @@ searchpairpos( {start}, {middle}, {end} [, {flags} [, {skip} [...]]])
|
||||
List search for other end of start/end pair
|
||||
searchpos( {pattern} [, {flags} [, {stopline} [, {timeout}]]])
|
||||
List search for {pattern}
|
||||
sendexpr( {handle}, {expr} [, {callback}])
|
||||
any send {expr} over JSON channel {handle}
|
||||
sendraw( {handle}, {string} [, {callback}])
|
||||
any send {string} over raw channel {handle}
|
||||
server2client( {clientid}, {string})
|
||||
Number send reply string
|
||||
serverlist() String get a list of available servers
|
||||
@@ -2626,6 +2666,18 @@ confirm({msg} [, {choices} [, {default} [, {type}]]])
|
||||
don't fit, a vertical layout is used anyway. For some systems
|
||||
the horizontal layout is always used.
|
||||
|
||||
connect({address}, {mode} [, {callback}]) *connect()*
|
||||
Open a channel to {address}. See |channel|.
|
||||
|
||||
{address} has the form "hostname:port", e.g.,
|
||||
"localhost:8765".
|
||||
|
||||
{mode} is either "json" or "raw". See |channel-mode| for the
|
||||
meaning.
|
||||
|
||||
{callback} is a function that handles received messages on the
|
||||
channel. See |channel-callback|.
|
||||
|
||||
*copy()*
|
||||
copy({expr}) Make a copy of {expr}. For Numbers and Strings this isn't
|
||||
different from using {expr} directly.
|
||||
@@ -2808,6 +2860,7 @@ empty({expr}) *empty()*
|
||||
Return the Number 1 if {expr} is empty, zero otherwise.
|
||||
A |List| or |Dictionary| is empty when it does not have any
|
||||
items. A Number is empty when its value is zero.
|
||||
|v:false|, |v:none| and |v:null| are empty, |v:true| is not.
|
||||
For a long |List| this is much faster than comparing the
|
||||
length with zero.
|
||||
|
||||
@@ -3099,6 +3152,11 @@ feedkeys({string} [, {mode}]) *feedkeys()*
|
||||
if coming from a mapping. This matters for undo,
|
||||
opening folds, etc.
|
||||
'i' Insert the string instead of appending (see above).
|
||||
'x' Execute commands until typeahead is empty. This is
|
||||
similar to using ":normal!". You can call feedkeys()
|
||||
several times without 'x' and then one time with 'x'
|
||||
(possibly with an empty {string}) to execute all the
|
||||
typeahead.
|
||||
Return value is always 0.
|
||||
|
||||
filereadable({file}) *filereadable()*
|
||||
@@ -3596,7 +3654,8 @@ getftype({fname}) *getftype()*
|
||||
getftype("/home")
|
||||
< Note that a type such as "link" will only be returned on
|
||||
systems that support it. On some systems only "dir" and
|
||||
"file" are returned.
|
||||
"file" are returned. On MS-Windows a symbolic link to a
|
||||
directory returns "dir" instead of "link".
|
||||
|
||||
*getline()*
|
||||
getline({lnum} [, {end}])
|
||||
@@ -3820,7 +3879,9 @@ glob2regpat({expr}) *glob2regpat()*
|
||||
if filename =~ glob2regpat('Make*.mak')
|
||||
< This is equivalent to: >
|
||||
if filename =~ '^Make.*\.mak$'
|
||||
<
|
||||
< When {expr} is an empty string the result is "^$", match an
|
||||
empty string.
|
||||
|
||||
*globpath()*
|
||||
globpath({path}, {expr} [, {nosuf} [, {list} [, {allinks}]]])
|
||||
Perform glob() on all directories in {path} and concatenate
|
||||
@@ -4206,6 +4267,48 @@ join({list} [, {sep}]) *join()*
|
||||
converted into a string like with |string()|.
|
||||
The opposite function is |split()|.
|
||||
|
||||
jsondecode({string}) *jsondecode()*
|
||||
This parses a JSON formatted string and returns the equivalent
|
||||
in Vim values. See |jsonencode()| for the relation between
|
||||
JSON and Vim values.
|
||||
The decoding is permissive:
|
||||
- A trailing comma in an array and object is ignored.
|
||||
- An empty item in an array, two commas with nothing or white
|
||||
space in between, results in v:none.
|
||||
- When an object member name is not a string it is converted
|
||||
to a string. E.g. the number 123 is used as the string
|
||||
"123".
|
||||
- More floating point numbers are recognized, e.g. "1." for
|
||||
"1.0".
|
||||
The result must be a valid Vim type:
|
||||
- An empty object member name is not allowed.
|
||||
- Duplicate object member names are not allowed.
|
||||
|
||||
jsonencode({expr}) *jsonencode()*
|
||||
Encode {expr} as JSON and return this as a string.
|
||||
The encoding is specified in:
|
||||
https://tools.ietf.org/html/rfc7159.html
|
||||
Vim values are converted as follows:
|
||||
Number decimal number
|
||||
Float floating point number
|
||||
String in double quotes (possibly null)
|
||||
Funcref not possible, error
|
||||
List as an array (possibly null); when
|
||||
used recursively: []
|
||||
Dict as an object (possibly null); when
|
||||
used recursively: {}
|
||||
v:false "false"
|
||||
v:true "true"
|
||||
v:none nothing
|
||||
v:null "null"
|
||||
Note that using v:none is permitted, although the JSON
|
||||
standard does not allow empty items. This can be useful for
|
||||
omitting items in an array:
|
||||
[0,,,,,5] ~
|
||||
This is much more efficient than:
|
||||
[0,null,null,null,null,5] ~
|
||||
But a strict JSON parser will not accept it.
|
||||
|
||||
keys({dict}) *keys()*
|
||||
Return a |List| with all the keys of {dict}. The |List| is in
|
||||
arbitrary order.
|
||||
@@ -5510,6 +5613,23 @@ searchpos({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *searchpos()*
|
||||
< In this example "submatch" is 2 when a lowercase letter is
|
||||
found |/\l|, 3 when an uppercase letter is found |/\u|.
|
||||
|
||||
sendexpr({handle}, {expr} [, {callback}]) *sendexpr()*
|
||||
Send {expr} over JSON channel {handle}. See |channel-use|.
|
||||
|
||||
When {callback} is given returns immediately. Without
|
||||
{callback} waits for a JSON response and returns the decoded
|
||||
expression. When there is an error or timeout returns an
|
||||
empty string.
|
||||
|
||||
When {callback} is zero no response is expected.
|
||||
Otherwise {callback} must be a Funcref or the name of a
|
||||
function. It is called when the response is received. See
|
||||
|channel-callback|.
|
||||
|
||||
sendraw({handle}, {string} [, {callback}]) *sendraw()*
|
||||
Send {string} over raw channel {handle}. See |channel-raw|.
|
||||
Works like |sendexpr()|, but does not decode the response.
|
||||
|
||||
server2client( {clientid}, {string}) *server2client()*
|
||||
Send a reply string to {clientid}. The most recent {clientid}
|
||||
that sent a string can be retrieved with expand("<client>").
|
||||
@@ -5812,18 +5932,8 @@ shellescape({string} [, {special}]) *shellescape()*
|
||||
shiftwidth() *shiftwidth()*
|
||||
Returns the effective value of 'shiftwidth'. This is the
|
||||
'shiftwidth' value unless it is zero, in which case it is the
|
||||
'tabstop' value. To be backwards compatible in indent
|
||||
plugins, use this: >
|
||||
if exists('*shiftwidth')
|
||||
func s:sw()
|
||||
return shiftwidth()
|
||||
endfunc
|
||||
else
|
||||
func s:sw()
|
||||
return &sw
|
||||
endfunc
|
||||
endif
|
||||
< And then use s:sw() instead of &sw.
|
||||
'tabstop' value. This function was introduced with patch
|
||||
7.3.694 in 2012, everybody should have it by now.
|
||||
|
||||
|
||||
simplify({filename}) *simplify()*
|
||||
@@ -5888,6 +5998,9 @@ sort({list} [, {func} [, {dict}]]) *sort()* *E702*
|
||||
sorted numerical. This is like 'n' but a string containing
|
||||
digits will be used as the number they represent.
|
||||
|
||||
When {func} is given and it is 'f' then all items will be
|
||||
sorted numerical. All values must be a Number or a Float.
|
||||
|
||||
When {func} is a |Funcref| or a function name, this function
|
||||
is called to compare items. The function is invoked with two
|
||||
items as argument and must return zero if they are equal, 1 or
|
||||
@@ -6564,6 +6677,8 @@ type({expr}) The result is a Number, depending on the type of {expr}:
|
||||
List: 3
|
||||
Dictionary: 4
|
||||
Float: 5
|
||||
Boolean: 6 (v:false and v:true)
|
||||
None 7 (v:null and v:none)
|
||||
To avoid the magic numbers it should be used this way: >
|
||||
:if type(myvar) == type(0)
|
||||
:if type(myvar) == type("")
|
||||
@@ -6571,6 +6686,8 @@ type({expr}) The result is a Number, depending on the type of {expr}:
|
||||
:if type(myvar) == type([])
|
||||
:if type(myvar) == type({})
|
||||
:if type(myvar) == type(0.0)
|
||||
:if type(myvar) == type(v:false)
|
||||
:if type(myvar) == type(v:none
|
||||
|
||||
undofile({name}) *undofile()*
|
||||
Return the name of the undo file that would be used for a file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_mzsch.txt* For Vim version 7.4. Last change: 2016 Jan 16
|
||||
*if_mzsch.txt* For Vim version 7.4. Last change: 2016 Jan 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Sergey Khorev
|
||||
@@ -265,7 +265,7 @@ directly from Scheme. For instance: >
|
||||
<
|
||||
|
||||
==============================================================================
|
||||
7. Dynamic loading *mzscheme-dynamic* *E815*
|
||||
7. Dynamic loading *mzscheme-dynamic* *E815*
|
||||
|
||||
On MS-Windows the MzScheme libraries can be loaded dynamically. The |:version|
|
||||
output then includes |+mzscheme/dyn|.
|
||||
@@ -294,7 +294,7 @@ to set the environment variable as the following: >
|
||||
PLTCONFIGDIR=C:\Racket63\etc
|
||||
<
|
||||
==============================================================================
|
||||
8. MzScheme setup *mzscheme-setup*
|
||||
8. MzScheme setup *mzscheme-setup* *E895*
|
||||
|
||||
Vim requires "racket/base" module for if_mzsch core (fallback to "scheme/base"
|
||||
if it doesn't exist), "r5rs" module for test and "raco ctool" command for
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*index.txt* For Vim version 7.4. Last change: 2016 Jan 10
|
||||
*index.txt* For Vim version 7.4. Last change: 2016 Jan 19
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1541,14 +1541,14 @@ tag command action ~
|
||||
|:tabdo| :tabdo execute command in each tab page
|
||||
|:tabedit| :tabe[dit] edit a file in a new tab page
|
||||
|:tabfind| :tabf[ind] find file in 'path', edit it in a new tab page
|
||||
|:tabfirst| :tabfir[st] got to first tab page
|
||||
|:tablast| :tabl[ast] got to last tab page
|
||||
|:tabfirst| :tabfir[st] go to first tab page
|
||||
|:tablast| :tabl[ast] go to last tab page
|
||||
|:tabmove| :tabm[ove] move tab page to other position
|
||||
|:tabnew| :tabnew edit a file in a new tab page
|
||||
|:tabnext| :tabn[ext] go to next tab page
|
||||
|:tabonly| :tabo[nly] close all tab pages except the current one
|
||||
|:tabprevious| :tabp[revious] go to previous tab page
|
||||
|:tabrewind| :tabr[ewind] got to first tab page
|
||||
|:tabrewind| :tabr[ewind] go to first tab page
|
||||
|:tabs| :tabs list the tab pages and what they contain
|
||||
|:tab| :tab create new tab when opening new window
|
||||
|:tag| :ta[g] jump to tag
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
*netbeans.txt* For Vim version 7.4. Last change: 2015 Mar 14
|
||||
*netbeans.txt* For Vim version 7.4. Last change: 2016 Jan 27
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
||||
|
||||
|
||||
*socket-interface* *netbeans* *netbeans-support*
|
||||
*netbeans* *netbeans-support*
|
||||
|
||||
Vim NetBeans Protocol: a socket interface for Vim integration into an IDE.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*quickfix.txt* For Vim version 7.4. Last change: 2015 Dec 31
|
||||
*quickfix.txt* For Vim version 7.4. Last change: 2016 Jan 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -217,9 +217,9 @@ command with 'l'.
|
||||
:cex[pr][!] {expr} Create a quickfix list using the result of {expr} and
|
||||
jump to the first error.
|
||||
If {expr} is a String, then each new-line terminated
|
||||
line in the String is processed using the value
|
||||
of 'errorformat' (buffer-local value if it was set)
|
||||
and the result is added to the quickfix list.
|
||||
line in the String is processed using the global value
|
||||
of 'errorformat' and the result is added to the
|
||||
quickfix list.
|
||||
If {expr} is a List, then each String item in the list
|
||||
is processed and added to the quickfix list. Non
|
||||
String items in the List are ignored.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 7.4. Last change: 2016 Jan 19
|
||||
*syntax.txt* For Vim version 7.4. Last change: 2016 Jan 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -3458,7 +3458,7 @@ SYNTAX ISKEYWORD SETTING *:syn-iskeyword*
|
||||
If no argument is given, the current value will be output.
|
||||
|
||||
Setting this option influences what |/\k| matches in syntax patterns
|
||||
and also determines where |:syn-keywords| will be checked for a new
|
||||
and also determines where |:syn-keyword| will be checked for a new
|
||||
match.
|
||||
|
||||
It is recommended when writing syntax files, to use this command
|
||||
|
||||
+32
-2
@@ -1195,6 +1195,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
+browse various.txt /*+browse*
|
||||
+builtin_terms various.txt /*+builtin_terms*
|
||||
+byte_offset various.txt /*+byte_offset*
|
||||
+channel various.txt /*+channel*
|
||||
+cindent various.txt /*+cindent*
|
||||
+clientserver various.txt /*+clientserver*
|
||||
+clipboard various.txt /*+clipboard*
|
||||
@@ -2971,6 +2972,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
:syn-files syntax.txt /*:syn-files*
|
||||
:syn-fold syntax.txt /*:syn-fold*
|
||||
:syn-include syntax.txt /*:syn-include*
|
||||
:syn-iskeyword syntax.txt /*:syn-iskeyword*
|
||||
:syn-keepend syntax.txt /*:syn-keepend*
|
||||
:syn-keyword syntax.txt /*:syn-keyword*
|
||||
:syn-lc syntax.txt /*:syn-lc*
|
||||
@@ -4466,6 +4468,11 @@ E888 pattern.txt /*E888*
|
||||
E889 map.txt /*E889*
|
||||
E89 message.txt /*E89*
|
||||
E890 syntax.txt /*E890*
|
||||
E891 eval.txt /*E891*
|
||||
E892 eval.txt /*E892*
|
||||
E893 eval.txt /*E893*
|
||||
E894 eval.txt /*E894*
|
||||
E895 if_mzsch.txt /*E895*
|
||||
E90 message.txt /*E90*
|
||||
E91 options.txt /*E91*
|
||||
E92 message.txt /*E92*
|
||||
@@ -5216,6 +5223,15 @@ changelog.vim syntax.txt /*changelog.vim*
|
||||
changenr() eval.txt /*changenr()*
|
||||
changetick eval.txt /*changetick*
|
||||
changing change.txt /*changing*
|
||||
channel channel.txt /*channel*
|
||||
channel-callback channel.txt /*channel-callback*
|
||||
channel-commands channel.txt /*channel-commands*
|
||||
channel-demo channel.txt /*channel-demo*
|
||||
channel-mode channel.txt /*channel-mode*
|
||||
channel-open channel.txt /*channel-open*
|
||||
channel-raw channel.txt /*channel-raw*
|
||||
channel-use channel.txt /*channel-use*
|
||||
channel.txt channel.txt /*channel.txt*
|
||||
char-variable eval.txt /*char-variable*
|
||||
char2nr() eval.txt /*char2nr()*
|
||||
characterwise motion.txt /*characterwise*
|
||||
@@ -5350,6 +5366,7 @@ complex-repeat repeat.txt /*complex-repeat*
|
||||
compress pi_gzip.txt /*compress*
|
||||
conceal syntax.txt /*conceal*
|
||||
confirm() eval.txt /*confirm()*
|
||||
connect() eval.txt /*connect()*
|
||||
connection-refused message.txt /*connection-refused*
|
||||
console-menus gui.txt /*console-menus*
|
||||
control intro.txt /*control*
|
||||
@@ -5781,6 +5798,7 @@ extension-removal cmdline.txt /*extension-removal*
|
||||
extensions-improvements todo.txt /*extensions-improvements*
|
||||
external-editor gui_mac.txt /*external-editor*
|
||||
f motion.txt /*f*
|
||||
false-variable eval.txt /*false-variable*
|
||||
faq intro.txt /*faq*
|
||||
farsi farsi.txt /*farsi*
|
||||
farsi-fonts farsi.txt /*farsi-fonts*
|
||||
@@ -6838,8 +6856,11 @@ java-indenting indent.txt /*java-indenting*
|
||||
java.vim syntax.txt /*java.vim*
|
||||
javascript-cinoptions indent.txt /*javascript-cinoptions*
|
||||
javascript-indenting indent.txt /*javascript-indenting*
|
||||
job-control channel.txt /*job-control*
|
||||
join() eval.txt /*join()*
|
||||
jsbterm-mouse options.txt /*jsbterm-mouse*
|
||||
jsondecode() eval.txt /*jsondecode()*
|
||||
jsonencode() eval.txt /*jsonencode()*
|
||||
jtags tagsrch.txt /*jtags*
|
||||
jump-motions motion.txt /*jump-motions*
|
||||
jumplist motion.txt /*jumplist*
|
||||
@@ -7523,6 +7544,7 @@ no-eval-feature eval.txt /*no-eval-feature*
|
||||
no_buffers_menu gui.txt /*no_buffers_menu*
|
||||
non-greedy pattern.txt /*non-greedy*
|
||||
non-zero-arg eval.txt /*non-zero-arg*
|
||||
none-variable eval.txt /*none-variable*
|
||||
normal-index index.txt /*normal-index*
|
||||
not-compatible usr_01.txt /*not-compatible*
|
||||
not-edited editing.txt /*not-edited*
|
||||
@@ -7530,6 +7552,7 @@ notation intro.txt /*notation*
|
||||
notepad gui_w32.txt /*notepad*
|
||||
nr2char() eval.txt /*nr2char()*
|
||||
nroff.vim syntax.txt /*nroff.vim*
|
||||
null-variable eval.txt /*null-variable*
|
||||
number_relativenumber options.txt /*number_relativenumber*
|
||||
numbered-function eval.txt /*numbered-function*
|
||||
o insert.txt /*o*
|
||||
@@ -7978,6 +8001,8 @@ sed.vim syntax.txt /*sed.vim*
|
||||
self eval.txt /*self*
|
||||
send-money sponsor.txt /*send-money*
|
||||
send-to-menu gui_w32.txt /*send-to-menu*
|
||||
sendexpr() eval.txt /*sendexpr()*
|
||||
sendraw() eval.txt /*sendraw()*
|
||||
sendto gui_w32.txt /*sendto*
|
||||
sentence motion.txt /*sentence*
|
||||
server-functions usr_41.txt /*server-functions*
|
||||
@@ -8038,7 +8063,7 @@ sniff if_sniff.txt /*sniff*
|
||||
sniff-commands if_sniff.txt /*sniff-commands*
|
||||
sniff-compiling if_sniff.txt /*sniff-compiling*
|
||||
sniff-intro if_sniff.txt /*sniff-intro*
|
||||
socket-interface netbeans.txt /*socket-interface*
|
||||
socket-interface channel.txt /*socket-interface*
|
||||
sort() eval.txt /*sort()*
|
||||
sorting change.txt /*sorting*
|
||||
soundfold() eval.txt /*soundfold()*
|
||||
@@ -8228,6 +8253,7 @@ strstr() eval.txt /*strstr()*
|
||||
strtrans() eval.txt /*strtrans()*
|
||||
strwidth() eval.txt /*strwidth()*
|
||||
style-changes develop.txt /*style-changes*
|
||||
style-compiler develop.txt /*style-compiler*
|
||||
style-examples develop.txt /*style-examples*
|
||||
style-functions develop.txt /*style-functions*
|
||||
style-names develop.txt /*style-names*
|
||||
@@ -8589,7 +8615,6 @@ timestamps editing.txt /*timestamps*
|
||||
tips tips.txt /*tips*
|
||||
tips.txt tips.txt /*tips.txt*
|
||||
todo todo.txt /*todo*
|
||||
todo.txt todo.txt /*todo.txt*
|
||||
toggle options.txt /*toggle*
|
||||
toggle-revins version4.txt /*toggle-revins*
|
||||
tolower() eval.txt /*tolower()*
|
||||
@@ -8597,6 +8622,7 @@ toolbar-icon gui.txt /*toolbar-icon*
|
||||
toupper() eval.txt /*toupper()*
|
||||
tr() eval.txt /*tr()*
|
||||
trojan-horse starting.txt /*trojan-horse*
|
||||
true-variable eval.txt /*true-variable*
|
||||
trunc() eval.txt /*trunc()*
|
||||
try-conditionals eval.txt /*try-conditionals*
|
||||
try-echoerr eval.txt /*try-echoerr*
|
||||
@@ -8706,6 +8732,7 @@ v:dying eval.txt /*v:dying*
|
||||
v:errmsg eval.txt /*v:errmsg*
|
||||
v:errors eval.txt /*v:errors*
|
||||
v:exception eval.txt /*v:exception*
|
||||
v:false eval.txt /*v:false*
|
||||
v:fcs_choice eval.txt /*v:fcs_choice*
|
||||
v:fcs_reason eval.txt /*v:fcs_reason*
|
||||
v:fname_diff eval.txt /*v:fname_diff*
|
||||
@@ -8725,6 +8752,8 @@ v:lnum eval.txt /*v:lnum*
|
||||
v:mouse_col eval.txt /*v:mouse_col*
|
||||
v:mouse_lnum eval.txt /*v:mouse_lnum*
|
||||
v:mouse_win eval.txt /*v:mouse_win*
|
||||
v:none eval.txt /*v:none*
|
||||
v:null eval.txt /*v:null*
|
||||
v:oldfiles eval.txt /*v:oldfiles*
|
||||
v:operator eval.txt /*v:operator*
|
||||
v:option_new eval.txt /*v:option_new*
|
||||
@@ -8746,6 +8775,7 @@ v:swapname eval.txt /*v:swapname*
|
||||
v:termresponse eval.txt /*v:termresponse*
|
||||
v:this_session eval.txt /*v:this_session*
|
||||
v:throwpoint eval.txt /*v:throwpoint*
|
||||
v:true eval.txt /*v:true*
|
||||
v:val eval.txt /*v:val*
|
||||
v:var eval.txt /*v:var*
|
||||
v:version eval.txt /*v:version*
|
||||
|
||||
+92
-41
@@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.4. Last change: 2016 Jan 17
|
||||
todo.txt* For Vim version 7.4. Last change: 2016 Jan 27
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -75,6 +75,27 @@ Regexp problems:
|
||||
- The pattern "\1" with the old engine gives E65, with the new engine it
|
||||
matches the empty string. (Dominique Pelle, 2015 Oct 2, Nov 24)
|
||||
- Search for \\~ causes error E874.
|
||||
- "\%1l^#.*" does not match on a line starting with "#". The zero-width match
|
||||
clears the start-of-line flag.
|
||||
|
||||
+channel:
|
||||
- cleanup on exit? in mch_getout() and getout().
|
||||
- more contents in channel.txt
|
||||
|
||||
C89: remove __ARGS in more places
|
||||
- /tmp/noargs.vim
|
||||
- /tmp/eliminate__ARGS.vim
|
||||
- Script: Hirohito Higashi, Jan 25, 2nd one.
|
||||
- Assume HAVE_STDARG_H is always defined.
|
||||
|
||||
This difference is unexpected:
|
||||
echo v:true == 1
|
||||
1
|
||||
echo [v:true] == [1]
|
||||
0
|
||||
It's because tv_equal() works different.
|
||||
|
||||
Do we need to roll-back patch 1165, that put libintl-8.dll before libintl.dll?
|
||||
|
||||
Need to try out instructions in INSSTALLpc.txt about how to install all
|
||||
interfaces and how to build Vim with them.
|
||||
@@ -90,6 +111,20 @@ work. (ZyX, 2013 Sep 28) With examples: (Malcolm Rowe, 2015 Dec 24)
|
||||
|
||||
Problem using ":try" inside ":execute". (ZyX, 2013 Sep 15)
|
||||
|
||||
jsonencode(): should convert to utf-8. (Nikolai Pavlov, 2016 Jan 23)
|
||||
What if there is an invalid character?
|
||||
|
||||
Should jsonencode()/jsondecode() restrict recursiveness?
|
||||
Or avoid recursiveness.
|
||||
|
||||
Use vim.vim syntax highlighting for help file examples, but without ":" in
|
||||
'iskeyword' for syntax.
|
||||
|
||||
Patch to make "%:h:h" return "." instead of the full path.
|
||||
(Coot, 2016 Jan 24, #592)
|
||||
|
||||
Remove SPACE_IN_FILENAME ? What could possibly go wrong?
|
||||
|
||||
Installation of .desktop files does not work everywhere.
|
||||
It's now fixed, but the target directory probably isn't right.
|
||||
Add configure check?
|
||||
@@ -103,6 +138,18 @@ Access to uninitialized memory in match_backref() regexp_nda.c:4882
|
||||
":cd C:\Windows\System32\drivers\etc*" does not work, even though the
|
||||
directory exists. (Sergio Gallelli, 2013 Dec 29)
|
||||
|
||||
Win32: patch to use 64 bit stat() if possible. (Ken Takata, 2014 May 12)
|
||||
More tests May 14. Update May 29. Update Aug 10.
|
||||
Now part of large file patches. (Ken Takata, 2016 Jan 19, second one)
|
||||
Updated patches with ordering: Jan 20.
|
||||
And another update: Jan 24
|
||||
|
||||
7 Add a watchpoint in the debug mode: An expression that breaks execution
|
||||
when evaluating to non-zero. Add the "watchadd expr" command, stop when
|
||||
the value of the expression changes. ":watchdel" deletes an item,
|
||||
":watchlist" lists the items. (Charles Campbell)
|
||||
Patch by Christian Brabandt, 2016 Jan 27.
|
||||
|
||||
Using ":windo" to set options in all windows has the side effect that it
|
||||
changes the window layout and the current window. Make a variant that saves
|
||||
and restores. Use in the matchparen plugin.
|
||||
@@ -118,10 +165,14 @@ Gvim: when both Tab and CTRL-I are mapped, use CTRL-I not for Tab.
|
||||
Unexpected delay when using CTRL-O u. It's not timeoutlen.
|
||||
(Gary Johnson, 2015 Aug 28)
|
||||
|
||||
Patch to support 64 bit ints for Number. (Ken Takata, 2016 Jan 21)
|
||||
|
||||
Instead of separately uploading patches to the ftp site, we can get them from
|
||||
github with a URL like this:
|
||||
https://github.com/vim/vim/compare/v7.4.920%5E...v7.4.920.diff
|
||||
Diff for version.c contains more context, can't skip a patch.
|
||||
|
||||
Duplication of completion suggestions for ":!hom". Issue 539.
|
||||
>
|
||||
When t_Co is changed from termresponse, the OptionSet autocmmand event isn't
|
||||
triggered. Use the code from the end of set_num_option() in
|
||||
@@ -129,6 +180,13 @@ set_color_count().
|
||||
|
||||
Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
|
||||
|
||||
Comparing nested structures with "==" uses a different comperator than when
|
||||
comparing individual items.
|
||||
Also, "'' == 0" evaluates to true, which isn't nice.
|
||||
Add "===" to have a strict comparison (type and value match).
|
||||
Add "==*" (?) to have a value match, but no automatic conversion, and v:true
|
||||
equals 1 and 1.0, v:false equals 0 and 0.0.?
|
||||
|
||||
Plugin to use Vim in MANPAGER. Konfekt, PR #491
|
||||
|
||||
Using uninitialized memory. (Dominique Pelle, 2015 Nov 4)
|
||||
@@ -152,8 +210,11 @@ Can we cache the syntax attributes, so that updates for 'relativenumber' and
|
||||
Build with Python on Mac does not always use the right library.
|
||||
(Kazunobu Kuriyama, 2015 Mar 28)
|
||||
|
||||
Patch to support Python 'None' value in pyeval(). (Damien, 2015 Nov 21)
|
||||
Need a Vim equivalent of None and a way to test for it.
|
||||
Need a Vim equivalent of Python's None and a way to test for it.
|
||||
Use v:none. var == v:none
|
||||
|
||||
Patch to add arguments to argc() and argv(). (Yegappan Lakshmanan, 2016 Jan
|
||||
24) Also need a way to get the global arg list? Update later on Jan 24
|
||||
|
||||
To support Thai (and other languages) word boundaries, include the ICU
|
||||
library: http://userguide.icu-project.org/boundaryanalysis
|
||||
@@ -161,10 +222,6 @@ library: http://userguide.icu-project.org/boundaryanalysis
|
||||
When complete() first argument is before where insert started and 'backspace'
|
||||
is Vi compatible, the completion fails. (Hirohito Higashi, 2015 Feb 19)
|
||||
|
||||
Patch to fix bug in searchpair(). (Christian Brabandt, 2016 Jan 11)
|
||||
Problem reported by David Fishburn, using searchpair() with synID() used in
|
||||
the skip expression.
|
||||
|
||||
Test 44 fails when [[=A=]] is changed to [[=À=]]. Caused by getcmdline() not
|
||||
handling the 0x80 as a second byte correctly? (Dominique Pelle, 2015 Jun 10)
|
||||
|
||||
@@ -174,14 +231,6 @@ Goes away when disabling the swap file. (might1, Feb 16)
|
||||
MS-Windows: Crash opening very long file name starting with "\\".
|
||||
(Christian Brock, 2012 Jun 29)
|
||||
|
||||
Patch to add ":syn iskeyword". (Christian Brabandt, 2015 Nov 10)
|
||||
|
||||
Patch to use PLATFORM to determine target architecture. (Taro Muraoka, 2015
|
||||
Nov 29)
|
||||
|
||||
If libiconv.dll is not found search for libiconv2.dll. (Yasuhiro Matsumoto,
|
||||
2015 Oct 7)
|
||||
|
||||
Using an external diff is inefficient. Not all systems have a good diff
|
||||
program available (esp. MS-Windows). Would be nice to have in internal diff
|
||||
implementation. Can then also use this for displaying changes within a line.
|
||||
@@ -199,9 +248,6 @@ effects for when set by the user, on init and when reset to default.
|
||||
The argument for "-S" is not taken literally, the ":so" command expands
|
||||
wildcards. Add a ":nowild" command modifier? (ZyX, 2015 March 4)
|
||||
|
||||
Patch to support sorting on floating point number. (Alex Jakushev, 2010 Oct
|
||||
30)
|
||||
|
||||
Proposal to make options.txt easier to read. (Arnaud Decara, 2015 Aug 5)
|
||||
Update Aug 14.
|
||||
|
||||
@@ -219,7 +265,7 @@ Sep 10)
|
||||
Patch to be able to use hex numbers with :digraph. (Lcd, 2015 Sep 6)
|
||||
Update Sep 7. Update by Christian Brabandt, 2015 Sep 8.
|
||||
|
||||
Patch to improve I/O for Perl. (Damine, 2015 Jan 9)
|
||||
Patch to improve I/O for Perl. (Damien, 2015 Jan 9, update Jan 22 2nd one)
|
||||
|
||||
Patch to set antialiasing style on Windows. (Ondrej Balaz, 2013 Mar 14)
|
||||
Needs a different check for CLEARTYPE_QUALITY.
|
||||
@@ -256,6 +302,9 @@ same thing. Remarks on issue 543 (Roland Puntaier).
|
||||
Patch to add grepfile(). (Scott Prager, 2015 May 26)
|
||||
Work in progress.
|
||||
|
||||
Would be useful to have a treemap() or deepmap() function. Like map() but
|
||||
when an item is a list or dict would recurse into it.
|
||||
|
||||
Patch for global-local options consistency. (Arnaud Decara, 2015 Jul 22)
|
||||
Is this right?
|
||||
|
||||
@@ -321,13 +370,11 @@ Adding "~" to 'cdpath' doesn't work for completion? (Davido, 2013 Aug 19)
|
||||
Should be easy to highlight all matches with 'incsearch'. Idea by Itchyny,
|
||||
2015 Feb 6.
|
||||
|
||||
Plugins need to make a lot of effort, lots of mappings, to know what happened
|
||||
before pressing the key that triggers a plugin action. How about keeping the
|
||||
last N pressed keys, so that they do not need to be mapped?
|
||||
|
||||
Wrong scrolling when using incsearch. Patch by Christian Brabandt, 2014 Dec 4.
|
||||
Is this a good solution?
|
||||
|
||||
Patch to add /pattern/ to :oldfiles. Pull #575.
|
||||
|
||||
Patch to allow setting w:quickfix_title via setqflist() and setloclist()
|
||||
functions. (Christian Brabandt, 2013 May 8, update May 21)
|
||||
Patch to add getlocstack() / setlocstack(). (Christian Brabandt, 2013 May 14)
|
||||
@@ -410,9 +457,6 @@ Patch to make FocusGained and FocusLost work in modern terminals. (Hayaki
|
||||
Saito, 2013 Apr 24) Has a problem (email 2015 Jan 7).
|
||||
Update 2015 Jan 10.
|
||||
|
||||
Win32: patch to use 64 bit stat() if possible. (Ken Takata, 2014 May 12)
|
||||
More tests May 14. Update May 29. Update Aug 10.
|
||||
|
||||
Idea: For a window in the middle (has window above and below it), use
|
||||
right-mouse-drag on the status line to move a window up/down without changing
|
||||
its height? It's like dragging the status bar above it at the same time.
|
||||
@@ -438,11 +482,13 @@ Problem with upwards search on Windows (works OK on Linux). (Brett Stahlman,
|
||||
2014 Jun 8)
|
||||
|
||||
Include a plugin manager with Vim? Neobundle seems to be the best currently.
|
||||
Also Vundle: https://github.com/gmarik/vundle
|
||||
Long message about this from ZyX, 2014 Mar 23. And following replies.
|
||||
Also see http://vim-wiki.mawercer.de/wiki/topic/vim%20plugin%20managment.html
|
||||
User view:
|
||||
- Support multiple sources, basically any http:// URL. Be able to look into
|
||||
the files before deciding to install.
|
||||
- Support multiple sources, basically any http:// URL. Or a central place that
|
||||
will work for everybody (github? redirects from vim.org?).
|
||||
Be able to look into the files before deciding to install.
|
||||
- Be able to try out a plugin and remove it again with (almost) no traces.
|
||||
- Each plugin needs a "manifest" file that has the version, dependencies
|
||||
(including Vim version and features), conflicts, list of files, etc.
|
||||
@@ -1113,6 +1159,12 @@ Gui menu edit/paste in block mode insert only inserts in one line (Bjorn
|
||||
Winckler, 2011 May 11)
|
||||
Requires a map mode for Insert mode started from blockwise Visual mode.
|
||||
|
||||
Use json format for new items in .viminfo:
|
||||
|["info","any info"]
|
||||
|["text","text text text"
|
||||
|"continuation line"]
|
||||
|["hist",242342342,{"arg":"value"}]
|
||||
|
||||
Writing nested List and Dict in viminfo gives error message and can't be read
|
||||
back. (Yukihiro Nakadaira, 2010 Nov 13)
|
||||
|
||||
@@ -2130,10 +2182,17 @@ Add an option for a minimal text length before inserting a line break for
|
||||
(Kartik Agaram)
|
||||
|
||||
|
||||
At next release:
|
||||
- Build a huge version by default.
|
||||
- Improve plugin handling: Automatic updates, handle dependencies?
|
||||
E.g. Vundle: https://github.com/gmarik/vundle
|
||||
Better plugin support (not plugin manager, see elsewhere for that):
|
||||
- Avoid use of feedkeys, add eval functions where needed:
|
||||
- manipulating the Visual selection?
|
||||
- Add createmark(): add a mark like mM, but return a unique ID. Need some way
|
||||
to clean them up again... Use a name + the script ID.
|
||||
Add createmark( , 'c') to track inserts/deletes before the column.
|
||||
- Plugins need to make a lot of effort, lots of mappings, to know what
|
||||
happened before pressing the key that triggers a plugin action. How about
|
||||
keeping the last N pressed keys, so that they do not need to be mapped?
|
||||
- equivalent of netbeans_beval_cb(). With an autocommand?
|
||||
- Add something to enable debugging when a remote message is received.
|
||||
|
||||
|
||||
More patches:
|
||||
@@ -3482,10 +3541,7 @@ Syntax highlighting:
|
||||
one is contained in. Like "keepend" but specified on the contained item,
|
||||
instead of the containing item.
|
||||
8 cpp.vim: In C++ it's allowed to use {} inside ().
|
||||
8 Some syntax files set 'iskeyword'. When switching to another filetype
|
||||
this isn't reset. Add a special keyword definition for the syntax rules?
|
||||
When this is done, use vim.vim syntax highlighting for help file examples,
|
||||
but without ":" in 'iskeyword' for syntax.
|
||||
8 Some syntax files set 'iskeyword', they should use "syn iskeyword".
|
||||
Also need a separate 'iskeyword' for the command line, e.g., in a help
|
||||
window ":e /asdf/asdf/" CTRL-W works different.
|
||||
8 Add specific syntax item to match with parens/braces that don't have a
|
||||
@@ -5213,13 +5269,8 @@ Registers:
|
||||
|
||||
|
||||
Debug mode:
|
||||
7 Add something to enable debugging when a remote message is received.
|
||||
8 Add breakpoints for setting an option
|
||||
8 Add breakpoints for assigning to a variable.
|
||||
7 Add a watchpoint in the debug mode: An expression that breaks execution
|
||||
when evaluating to non-zero. Add the "watchadd expr" command, stop when
|
||||
the value of the expression changes. ":watchdel" deletes an item,
|
||||
":watchlist" lists the items. (Charles Campbell)
|
||||
7 Store the history from debug mode in viminfo.
|
||||
7 Make the debug mode history available with histget() et al.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_41.txt* For Vim version 7.4. Last change: 2015 Nov 30
|
||||
*usr_41.txt* For Vim version 7.4. Last change: 2016 Jan 28
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -893,6 +893,14 @@ Testing: *test-functions*
|
||||
assert_false() assert that an expression is false
|
||||
assert_true() assert that an expression is true
|
||||
|
||||
Inter-process communication:
|
||||
connect() open a channel
|
||||
disconnect() close a channel
|
||||
sendexpr() send a JSON message over a channel
|
||||
sendraw() send a raw message over a channel
|
||||
jsonencode() encode an expression to a JSON string
|
||||
jsondecode() decode a JSON string to Vim types
|
||||
|
||||
Various: *various-functions*
|
||||
mode() get current editing mode
|
||||
visualmode() last visual mode used
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*various.txt* For Vim version 7.4. Last change: 2016 Jan 10
|
||||
*various.txt* For Vim version 7.4. Last change: 2016 Jan 27
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -319,6 +319,7 @@ N *+builtin_terms* some terminals builtin |builtin-terms|
|
||||
B *++builtin_terms* maximal terminals builtin |builtin-terms|
|
||||
N *+byte_offset* support for 'o' flag in 'statusline' option, "go"
|
||||
and ":goto" commands.
|
||||
m *+channel* inter process communication |channel|
|
||||
N *+cindent* |'cindent'|, C indenting
|
||||
N *+clientserver* Unix and Win32: Remote invocation |clientserver|
|
||||
*+clipboard* |clipboard| support
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
" Vim indent file
|
||||
" Language: Fortran 2008 (and older: Fortran 2003, 95, 90, and 77)
|
||||
" Version: 0.42
|
||||
" Last Change: 2015 Nov. 30
|
||||
" Version: 0.44
|
||||
" Last Change: 2016 Jan. 26
|
||||
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
|
||||
" Usage: For instructions, do :help fortran-indent from Vim
|
||||
" Credits:
|
||||
" Useful suggestions were made by: Albert Oliver Serra.
|
||||
" Useful suggestions were made by: Albert Oliver Serra and Takuya Fujiwara.
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -92,10 +92,10 @@ function FortranGetIndent(lnum)
|
||||
"Indent do loops only if they are all guaranteed to be of do/end do type
|
||||
if exists("b:fortran_do_enddo") || exists("g:fortran_do_enddo")
|
||||
if prevstat =~? '^\s*\(\d\+\s\)\=\s*\(\a\w*\s*:\)\=\s*do\>'
|
||||
let ind = ind + &sw
|
||||
let ind = ind + shiftwidth()
|
||||
endif
|
||||
if getline(v:lnum) =~? '^\s*\(\d\+\s\)\=\s*end\s*do\>'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -105,14 +105,14 @@ function FortranGetIndent(lnum)
|
||||
\ ||prevstat=~? '^\s*\(type\|interface\|associate\|enum\)\>'
|
||||
\ ||prevstat=~?'^\s*\(\d\+\s\)\=\s*\(\a\w*\s*:\)\=\s*\(forall\|where\|block\)\>'
|
||||
\ ||prevstat=~? '^\s*\(\d\+\s\)\=\s*\(\a\w*\s*:\)\=\s*if\>'
|
||||
let ind = ind + &sw
|
||||
let ind = ind + shiftwidth()
|
||||
" Remove unwanted indent after logical and arithmetic ifs
|
||||
if prevstat =~? '\<if\>' && prevstat !~? '\<then\>'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
" Remove unwanted indent after type( statements
|
||||
if prevstat =~? '^\s*type\s*('
|
||||
let ind = ind - &sw
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -125,12 +125,12 @@ function FortranGetIndent(lnum)
|
||||
\ ||prevstat =~? '^\s*'.prefix.'subroutine\>'
|
||||
\ ||prevstat =~? '^\s*'.prefix.type.'function\>'
|
||||
\ ||prevstat =~? '^\s*'.type.prefix.'function\>'
|
||||
let ind = ind + &sw
|
||||
let ind = ind + shiftwidth()
|
||||
endif
|
||||
if getline(v:lnum) =~? '^\s*contains\>'
|
||||
\ ||getline(v:lnum)=~? '^\s*end\s*'
|
||||
\ .'\(function\|subroutine\|module\|program\)\>'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -141,23 +141,23 @@ function FortranGetIndent(lnum)
|
||||
\. '\(else\|else\s*if\|else\s*where\|case\|'
|
||||
\. 'end\s*\(if\|where\|select\|interface\|'
|
||||
\. 'type\|forall\|associate\|enum\|block\)\)\>'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - shiftwidth()
|
||||
" Fix indent for case statement immediately after select
|
||||
if prevstat =~? '\<select\s\+\(case\|type\)\>'
|
||||
let ind = ind + &sw
|
||||
let ind = ind + shiftwidth()
|
||||
endif
|
||||
endif
|
||||
|
||||
"First continuation line
|
||||
if prevstat =~ '&\s*$' && prev2stat !~ '&\s*$'
|
||||
let ind = ind + &sw
|
||||
let ind = ind + shiftwidth()
|
||||
endif
|
||||
if prevstat =~ '&\s*$' && prevstat =~ '\<else\s*if\>'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
"Line after last continuation line
|
||||
if prevstat !~ '&\s*$' && prev2stat =~ '&\s*$' && prevstat !~? '\<then\>'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
|
||||
return ind
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: Vim script
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2014 Dec 12
|
||||
" Last Change: 2016 Jan 24
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -58,19 +58,19 @@ function GetVimIndentIntern()
|
||||
if exists("g:vim_indent_cont")
|
||||
let ind = ind + g:vim_indent_cont
|
||||
else
|
||||
let ind = ind + &sw * 3
|
||||
let ind = ind + shiftwidth() * 3
|
||||
endif
|
||||
elseif prev_text =~ '^\s*aug\%[roup]' && prev_text !~ '^\s*aug\%[roup]\s*!\=\s\+END'
|
||||
let ind = ind + &sw
|
||||
let ind = ind + shiftwidth()
|
||||
else
|
||||
" A line starting with :au does not increment/decrement indent.
|
||||
if prev_text !~ '^\s*au\%[tocmd]'
|
||||
let i = match(prev_text, '\(^\||\)\s*\(if\|wh\%[ile]\|for\|try\|cat\%[ch]\|fina\%[lly]\|fu\%[nction]\|el\%[seif]\)\>')
|
||||
if i >= 0
|
||||
let ind += &sw
|
||||
let ind += shiftwidth()
|
||||
if strpart(prev_text, i, 1) == '|' && has('syntax_items')
|
||||
\ && synIDattr(synID(lnum, i, 1), "name") =~ '\(Comment\|String\)$'
|
||||
let ind -= &sw
|
||||
let ind -= shiftwidth()
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
@@ -82,7 +82,7 @@ function GetVimIndentIntern()
|
||||
let i = match(prev_text, '[^\\]|\s*\(ene\@!\)')
|
||||
if i > 0 && prev_text !~ '^\s*au\%[tocmd]'
|
||||
if !has('syntax_items') || synIDattr(synID(lnum, i + 2, 1), "name") !~ '\(Comment\|String\)$'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -90,7 +90,7 @@ function GetVimIndentIntern()
|
||||
" Subtract a 'shiftwidth' on a :endif, :endwhile, :catch, :finally, :endtry,
|
||||
" :endfun, :else and :augroup END.
|
||||
if cur_text =~ '^\s*\(ene\@!\|cat\|fina\|el\|aug\%[roup]\s*!\=\s\+[eE][nN][dD]\)'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
|
||||
return ind
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: Zimbu
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2012 Sep 08
|
||||
" Last Change: 2016 Jan 25
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -74,9 +74,9 @@ func GetZimbuIndent(lnum)
|
||||
\ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
|
||||
\ . " =~ '\\(Comment\\|String\\|Char\\)$'")
|
||||
if pp > 0
|
||||
return indent(prevLnum) + &sw
|
||||
return indent(prevLnum) + shiftwidth()
|
||||
endif
|
||||
return indent(prevLnum) + &sw * 2
|
||||
return indent(prevLnum) + shiftwidth() * 2
|
||||
endif
|
||||
if plnumstart == p
|
||||
return indent(prevLnum)
|
||||
@@ -102,13 +102,13 @@ func GetZimbuIndent(lnum)
|
||||
endif
|
||||
|
||||
if prevline =~ '^\s*\(IF\|\|ELSEIF\|ELSE\|GENERATE_IF\|\|GENERATE_ELSEIF\|GENERATE_ELSE\|WHILE\|REPEAT\|TRY\|CATCH\|FINALLY\|FOR\|DO\|SWITCH\|CASE\|DEFAULT\|FUNC\|VIRTUAL\|ABSTRACT\|DEFINE\|REPLACE\|FINAL\|PROC\|MAIN\|NEW\|ENUM\|CLASS\|INTERFACE\|BITS\|MODULE\|SHARED\)\>'
|
||||
let plindent += &sw
|
||||
let plindent += shiftwidth()
|
||||
endif
|
||||
if thisline =~ '^\s*\(}\|ELSEIF\>\|ELSE\>\|CATCH\|FINALLY\|GENERATE_ELSEIF\>\|GENERATE_ELSE\>\|UNTIL\>\)'
|
||||
let plindent -= &sw
|
||||
let plindent -= shiftwidth()
|
||||
endif
|
||||
if thisline =~ '^\s*\(CASE\>\|DEFAULT\>\)' && prevline !~ '^\s*SWITCH\>'
|
||||
let plindent -= &sw
|
||||
let plindent -= shiftwidth()
|
||||
endif
|
||||
|
||||
" line up continued comment that started after some code
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: DCL (Digital Command Language - vms)
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 7
|
||||
" Last Change: Jan 20, 2016
|
||||
" Version: 8
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_DCL
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
@@ -13,10 +13,10 @@ elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
if version < 600
|
||||
set iskeyword=$,@,48-57,_
|
||||
else
|
||||
if !has("patch-7.4.1141")
|
||||
setlocal iskeyword=$,@,48-57,_
|
||||
else
|
||||
syn iskeyword $,@,48-57,_
|
||||
endif
|
||||
|
||||
syn case ignore
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Lisp
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 06, 2014
|
||||
" Version: 23
|
||||
" Last Change: Jan 20, 2016
|
||||
" Version: 24
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_LISP
|
||||
"
|
||||
" Thanks to F Xavier Noria for a list of 978 Common Lisp symbols taken from HyperSpec
|
||||
@@ -16,8 +16,10 @@ endif
|
||||
|
||||
if exists("g:lisp_isk")
|
||||
exe "setl isk=".g:lisp_isk
|
||||
else
|
||||
elseif !has("patch-7.4.1141")
|
||||
setl isk=38,42,43,45,47-58,60-62,64-90,97-122,_
|
||||
else
|
||||
syn iskeyword 38,42,43,45,47-58,60-62,64-90,97-122,_
|
||||
endif
|
||||
|
||||
if exists("g:lispsyntax_ignorecase") || exists("g:lispsyntax_clisp")
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Maple V (based on release 4)
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 11
|
||||
" Last Change: Jan 20, 2016
|
||||
" Version: 12
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_MAPLE
|
||||
"
|
||||
" Package Function Selection: {{{1
|
||||
@@ -30,10 +30,10 @@ elseif exists("b:current_syntax")
|
||||
endif
|
||||
|
||||
" Iskeyword Effects: {{{1
|
||||
if version < 600
|
||||
set iskeyword=$,48-57,_,a-z,@-Z
|
||||
if !has("patch-7.4.1141")
|
||||
setl isk=$,48-57,_,a-z,@-Z
|
||||
else
|
||||
setlocal iskeyword=$,48-57,_,a-z,@-Z
|
||||
syn iskeyword $,48-57,_,a-z,@-Z
|
||||
endif
|
||||
|
||||
" Package Selection: {{{1
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
" Maintainer: Yakov Lerner <iler.ml@gmail.com>
|
||||
" Latest Revision: 2008-06-29
|
||||
" Changes: 2008-06-29 support for RFC3339 tuimestamps James Vega
|
||||
" 2016 Jan 19: messagesDate changed by Bram
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
@@ -13,7 +14,7 @@ set cpo&vim
|
||||
|
||||
syn match messagesBegin display '^' nextgroup=messagesDate,messagesDateRFC3339
|
||||
|
||||
syn match messagesDate contained display '\a\a\a [ 0-9]\d *'
|
||||
syn match messagesDate contained display '[[:lower:][:upper:]][[:lower:][:upper:]][[:lower:][:upper:]] [ 0-9]\d *'
|
||||
\ nextgroup=messagesHour
|
||||
|
||||
syn match messagesHour contained display '\d\d:\d\d:\d\d\s*'
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: TeX
|
||||
" Maintainer: Charles E. Campbell <NdrchipO@ScampbellPfamily.AbizM>
|
||||
" Last Change: Oct 20, 2015
|
||||
" Version: 90
|
||||
" Last Change: Jan 20, 2016
|
||||
" Version: 91
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX
|
||||
"
|
||||
" Notes: {{{1
|
||||
@@ -129,8 +129,10 @@ endif
|
||||
" g:tex_isk
|
||||
if exists("g:tex_isk")
|
||||
exe "setlocal isk=".g:tex_isk
|
||||
elseif !has("patch-7.4.1141")
|
||||
setl isk=48-57,a-z,A-Z,192-255
|
||||
else
|
||||
setlocal isk=48-57,a-z,A-Z,192-255
|
||||
syn iskeyword 48-57,a-z,A-Z,192-255
|
||||
endif
|
||||
if b:tex_stylish
|
||||
setlocal isk+=@-@
|
||||
|
||||
+34
-27
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim 7.4 script
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: January 04, 2016
|
||||
" Version: 7.4-39
|
||||
" Last Change: January 20, 2016
|
||||
" Version: 7.4-40
|
||||
" Automatically generated keyword lists: {{{1
|
||||
|
||||
" Quit when a syntax file was already loaded {{{2
|
||||
@@ -18,38 +18,39 @@ syn keyword vimTodo contained COMBAK FIXME TODO XXX
|
||||
syn cluster vimCommentGroup contains=vimTodo,@Spell
|
||||
|
||||
" regular vim commands {{{2
|
||||
syn keyword vimCommand contained a arga[dd] argl[ocal] ba[ll] bn[ext] breakd[el] bufdo cabc[lear] cat[ch] ce[nter] cgetb[uffer] che[ckpath] cmapc[lear] cnf com cope[n] cs de delep delf di difft[his] dj[ump] dr[op] ec elsei[f] endf[unction] exi[t] filetype fix[del] for gr[ep] h[elp] hid[e] ij[ump] isp[lit] keepalt lad la[st] lcl[ose] lex[pr] lgete[xpr] ll lne lnf[ile] loc[kmarks] lr[ewind] lv[imgrep] marks mk mkv[imrc] mz[scheme] new noswap[file] o[pen] ped[it] pp[op] profd[el] ptf[irst] ptN[ext] py python3 re redr[aw] rew[ind] rubyf[ile] sa[rgument] sbn[ext] scripte[ncoding] setf[iletype] sh[ell] sim[alt] sm[ap] sni[ff] sor[t] spelli[nfo] spr[evious] start st[op] sunmenu syn ta tabf[ind] tabnew tabr[ewind] tcld[o] tj[ump] tN tr tu[nmenu] undoj[oin] uns[ilent] ve[rsion] vimgrepa[dd] vs[plit] winc[md] wN[ext] ws[verb] x[it] xnoremenu
|
||||
syn keyword vimCommand contained ab argd ar[gs] bd[elete] bN[ext] breakl[ist] b[uffer] cad cb[uffer] cex[pr] cgete[xpr] checkt[ime] cn cNf comc[lear] co[py] cscope debug d[elete] delf[unction] diffg[et] diffu[pdate] dl ds[earch] echoe[rr] em[enu] en[dif] exu[sage] fin fo[ld] fu grepa[dd] helpc[lose] his[tory] il[ist] iuna[bbrev] keepj[umps] laddb[uffer] lat lcs lf lg[etfile] lla[st] lnew[er] lNf[ile] lockv[ar] ls lvimgrepa[dd] mat[ch] mk[exrc] mo n n[ext] nu[mber] opt[ions] pe[rl] pr prof[ile] ptj[ump] ptp[revious] py3 q r[ead] redraws[tatus] ri[ght] rundo sav[eas] sbN[ext] scrip[tnames] setg[lobal] si sl sme sno[magic] so[urce] spellr[epall] sre[wind] startg[replace] stopi[nsert] sus[pend] sync tab tabfir[st] tabn[ext] tabs tclf[ile] tl[ast] tn[ext] tr[ewind] u undol[ist] up[date] vert[ical] vi[sual] w windo wp[revious] wundo xmapc[lear] xunme
|
||||
syn keyword vimCommand contained abc[lear] argd[elete] argu[ment] bel[owright] bo[tright] br[ewind] buffers caddb[uffer] cc cf cg[etfile] cl cN cnf[ile] comp[iler] cpf[ile] cstag debugg[reedy] deletel dell diffo[ff] dig dli[st] dsp[lit] echom[sg] en endt[ry] f fina[lly] foldc[lose] fun gui helpf[ind] i imapc[lear] j[oin] kee[pmarks] lad[dexpr] later lcscope lfdo lgr[ep] lli[st] lne[xt] lo lol[der] lt[ag] lw[indow] menut mks[ession] mod[e] nbc[lose] nmapc[lear] o ownsyntax perld[o] pre[serve] promptf[ind] ptl[ast] ptr[ewind] py3do qa[ll] rec[over] reg[isters] rightb[elow] ru[ntime] sba[ll] sbp[revious] scs setl[ocal] sig sla[st] smenu snoreme spe spellu[ndo] st star[tinsert] sts[elect] sv[iew] syncbind tabc[lose] tabl[ast] tabN[ext] ta[g] te[aroff] tm tN[ext] try un unh[ide] v vi viu[sage] wa[ll] winp[os] wq wv[iminfo] xme xunmenu
|
||||
syn keyword vimCommand contained abo[veleft] argdo as[cii] bf[irst] bp[revious] bro[wse] bun[load] cad[dexpr] ccl[ose] cfdo c[hange] cla[st] cnew[er] cNf[ile] con cp[revious] cuna[bbrev] del deletep delm[arks] diffp[atch] dig[raphs] do e echon endf endw[hile] f[ile] fin[d] folddoc[losed] fu[nction] gvim helpg[rep] ia in ju[mps] keepp[atterns] laddf[ile] lb[uffer] ld[o] lf[ile] lgrepa[dd] lmak[e] lN[ext] loadk lop[en] lua ma menut[ranslate] mksp[ell] m[ove] nb[key] noa ol[dfiles] p po[p] prev[ious] promptr[epl] ptn pts[elect] pydo q[uit] red res[ize] ru rv[iminfo] sbf[irst] sbr[ewind] scscope sf[ind] sign sl[eep] sn[ext] snoremenu spelld[ump] spellw[rong] sta[g] startr[eplace] sun[hide] sw[apname] syntime tabd[o] tabm[ove] tabo[nly] tags tf[irst] tm[enu] to[pleft] ts[elect] una[bbreviate] unl ve vie[w] vmapc[lear] wh[ile] win[size] wqa[ll] x xmenu xwininfo
|
||||
syn keyword vimCommand contained al[l] arge[dit] au bl[ast] brea[k] bu bw[ipeout] caddf[ile] cd cf[ile] changes cl[ist] cn[ext] col[der] conf[irm] cq[uit] cw[indow] delc[ommand] deletl delp diffpu[t] dir doau ea e[dit] endfo[r] ene[w] files fini[sh] foldd[oopen] g h helpt[ags] iabc[lear] intro k l lan lc[d] le[ft] lfir[st] lh[elpgrep] lmapc[lear] lnf loadkeymap lpf[ile] luado mak[e] mes mkv mz nbs[tart] noautocmd omapc[lear] pc[lose] popu p[rint] ps[earch] ptN pu[t] pyf[ile] quita[ll] redi[r] ret[ab] rub[y] sal[l] sbl[ast] sb[uffer] se[t] sfir[st] sil[ent] sm[agic] sN[ext] so spe[llgood] sp[lit] star stj[ump] sunme sy t tabe[dit] tabN tabp[revious] tc[l] th[row] tn tp[revious] tu u[ndo] unlo[ckvar] verb[ose] vim[grep] vne[w] win wn[ext] w[rite] xa[ll] xnoreme y[ank]
|
||||
syn keyword vimCommand contained ar argg[lobal] bad[d] bm[odified] breaka[dd] buf c cal[l] cdo cfir[st] chd[ir] clo[se] cN[ext] colo[rscheme] con[tinue] cr[ewind] d delel deletp dep diffs[plit] di[splay] dp earlier el[se] endfun ex filet fir[st] foldo[pen] go[to] ha[rdcopy] hi if is[earch] keepa la lan[guage] lch[dir] lefta[bove] lgetb[uffer] l[ist] lN lNf lo[adview] lp[revious] luafile ma[rk] messages mkvie[w] mzf[ile] ne noh[lsearch] on[ly] pe popu[p] pro pta[g] ptn[ext] pw[d] py[thon] r red[o] retu[rn] rubyd[o] san[dbox] sbm[odified] scrip
|
||||
syn keyword vimCommand contained a argd argu[ment] bf[irst] brea[k] buf cabc[lear] cc cfdo changes clo[se] cN[ext] colo[rscheme] con[tinue] cr[ewind] d delel deletp dep diffpu[t] dir doau ea e[dit] endfo[r] ene[w] files fini[sh] foldd[oopen] g h helpt[ags] iabc[lear] intro k l lan lc[d] le[ft] lfir[st] lh[elpgrep] lmapc[lear] lnf loadkeymap lpf[ile] luado mak[e] mes mkv mz nbs[tart] noautocmd o ownsyntax perld[o] pre[serve] promptf[ind] ptl[ast] ptr[ewind] py3do qa[ll] rec[over] reg[isters] rightb[elow] ru[ntime] sba[ll] sbp[revious] sci scr[iptnames] setl[ocal] sgi sh[ell] sIe sil[ent] sir sm[ap] sno[magic] sp spellu[ndo] sre[wind] srp star[tinsert] sun[hide] sy ta tabfir[st] tabN[ext] tags th[row] tN tr[ewind] un unl verb[ose] vimgrepa[dd] w winp[os] wqa[ll] xa[ll] xnoremenu
|
||||
syn keyword vimCommand contained ab argd[elete] as[cii] bl[ast] breaka[dd] bufdo cad[dbuffer] ccl[ose] cf[ile] chd[ir] cmapc[lear] cnf com cope[n] cs de delep delf di diffs[plit] di[splay] dp earlier el[se] endfun ex filet fir[st] foldo[pen] go[to] ha[rdcopy] hi if is[earch] keepa la lan[guage] lch[dir] lefta[bove] lgetb[uffer] l[ist] lN lNf lo[adview] lp[revious] luafile ma[rk] messages mkvie[w] mzf[ile] ne noh[lsearch] ol[dfiles] p po[p] prev[ious] promptr[epl] ptn pts[elect] pydo q[uit] red res[ize] ru rv[iminfo] sbf[irst] sbr[ewind] scI scs sf[ind] sgI si sig sim[alt] sIr sme snoreme spe spellw[rong] srg st startr[eplace] sunme syn tab tabl[ast] tabo[nly] tc[l] tj[ump] tn[ext] try una[bbreviate] unlo[ckvar] ve[rsion] vi[sual] wa[ll] win[size] w[rite] x[it] xprop
|
||||
syn keyword vimCommand contained abc[lear] argdo au bm[odified] breakd[el] b[uffer] cadde[xpr] cd cfir[st] che[ckpath] cn cNf comc[lear] co[py] cscope debug d[elete] delf[unction] dif difft[his] dj[ump] dr[op] ec elsei[f] endf[unction] exi[t] filetype fix[del] for gr[ep] h[elp] hid[e] ij[ump] isp[lit] keepalt lad la[st] lcl[ose] lex[pr] lgete[xpr] ll lne lnf[ile] loc[kmarks] lr[ewind] lv[imgrep] marks mk mkv[imrc] mz[scheme] new nor omapc[lear] pc[lose] popu p[rint] ps[earch] ptN pu[t] pyf[ile] quita[ll] redi[r] ret[ab] rub[y] sal[l] sbl[ast] sb[uffer] scl scscope sfir[st] sgl sI sIg sin sl smenu snoremenu spelld[ump] sp[lit] sri sta[g] stj[ump] sunmenu sync tabc[lose] tabm[ove] tabp[revious] tcld[o] tl[ast] tN[ext] ts[elect] u[ndo] uns[ilent] vert[ical] viu[sage] wh[ile] wn[ext] ws[verb] xmapc[lear] xunme
|
||||
syn keyword vimCommand contained abo[veleft] arge[dit] bad[d] bn[ext] breakl[ist] buffers caddf[ile] cdo cgetb[uffer] checkt[ime] cN cnf[ile] comp[iler] cpf[ile] cstag debugg[reedy] deletel dell diffg[et] dif[fupdate] dl ds[earch] echoe[rr] em[enu] en[dif] exu[sage] fin fo[ld] fu grepa[dd] helpc[lose] his[tory] il[ist] iuna[bbrev] keepj[umps] laddb[uffer] lat lcs lf lg[etfile] lla[st] lnew[er] lNf[ile] lockv[ar] ls lvimgrepa[dd] mat[ch] mk[exrc] mo n n[ext] nore on[ly] pe popu[p] pro pta[g] ptn[ext] pw[d] py[thon] r red[o] retu[rn] rubyd[o] san[dbox] sbm[odified] sc scp se[t] sg sgn sic sign sIn sla[st] sn[ext] so spe[llgood] spr[evious] srI star st[op] sus[pend] syncbind tabd[o] tabN tabr[ewind] tclf[ile] tm to[pleft] tu undoj[oin] up[date] vi vmapc[lear] win wN[ext] wundo xme xunmenu
|
||||
syn keyword vimCommand contained al[l] argg[lobal] ba[ll] bN[ext] br[ewind] bun[load] cal[l] ce[nter] cgete[xpr] cl cnew[er] cNf[ile] con cp[revious] cuna[bbrev] del deletep delm[arks] diffo[ff] dig dli[st] dsp[lit] echom[sg] en endt[ry] f fina[lly] foldc[lose] fun gui helpf[ind] i imapc[lear] j[oin] kee[pmarks] lad[dexpr] later lcscope lfdo lgr[ep] lli[st] lne[xt] lo lol[der] lt[ag] lw[indow] menut mks[ession] mod[e] nbc[lose] nmapc[lear] nos[wapfile] o[pen] ped[it] pp[op] profd[el] ptf[irst] ptN[ext] py python3 re redr[aw] rew[ind] rubyf[ile] sa[rgument] sbn[ext] sce scr setf[iletype] sgc sgp sIc sil sip sl[eep] sN[ext] sor[t] spelli[nfo] sr srl start stopi[nsert] sv[iew] syntime tabe[dit] tabnew tabs te[aroff] tm[enu] tp[revious] tu[nmenu] undol[ist] v vie[w] vne[w] winc[md] wp[revious] wv[iminfo] xmenu xwininfo
|
||||
syn keyword vimCommand contained ar argl[ocal] bd[elete] bo[tright] bro[wse] bw[ipeout] cat[ch] cex[pr] cg[etfile] cla[st] cn[ext] col[der] conf[irm] cq[uit] cw[indow] delc[ommand] deletl delp diffp[atch] dig[raphs] do e echon endf endw[hile] f[ile] fin[d] folddoc[losed] fu[nction] gvim helpg[rep] ia in ju[mps] keepp[atterns] laddf[ile] lb[uffer] ld[o] lf[ile] lgrepa[dd] lmak[e] lN[ext] loadk lop[en] lua ma menut[ranslate] mksp[ell] m[ove] nb[key] noa nu[mber] opt[ions] pe[rl] pr prof[ile] ptj[ump] ptp[revious] py3 q r[ead] redraws[tatus] ri[ght] rundo sav[eas] sbN[ext] scg scripte[ncoding] setg[lobal] sge sgr sie sIl sIp sm[agic] sni[ff] so[urce] spellr[epall] src srn startg[replace] sts[elect] sw[apname] t tabf[ind] tabn[ext] ta[g] tf[irst] tn tr u unh[ide] ve vim[grep] vs[plit] windo wq x xnoreme y[ank]
|
||||
syn keyword vimCommand contained arga[dd] ar[gs] bel[owright] bp[revious] bu c cb[uffer] cf c[hange] cl[ist]
|
||||
syn match vimCommand contained "\<z[-+^.=]\=\>"
|
||||
syn keyword vimStdPlugin contained DiffOrig Man N[ext] P[rint] S TOhtml XMLent XMLns
|
||||
|
||||
" vimOptions are caught only when contained in a vimSet {{{2
|
||||
syn keyword vimOption contained acd ambw arshape background ballooneval bg bl brk buftype cf cinkeys cmp com concealcursor cp cscopeprg csprg cul def diff display edcompatible endofline errorformat fcl fdm fex fileformats fkmap foldenable foldminlines formatprg gdefault gp guifontset helpfile hidden hl ignorecase imcmdline imsf indentexpr is isp keywordprg laststatus lisp loadplugins ma matchtime mco ml modeline mousefocus mousetime nrformats ofu para pdev pheader previewheight printmbcharset pvw readonly restorescreen rnu ruf sc scrollopt selectmode shellpipe shellxquote showcmd sidescroll smartindent sol spellsuggest sr stal sua swf syntax tagcase tbi termbidi tgst titleold top ttimeoutlen ttyscroll ul ur verbosefile visualbell wcm wi wildmenu winfixwidth wm wrapscan
|
||||
syn keyword vimOption contained ai anti autochdir backspace balloonexpr bh bo browsedir casemap cfu cino cms comments conceallevel cpo cscopequickfix csqf cursorbind define diffexpr dy ef eol esckeys fcs fdn ff fileignorecase flp foldexpr foldnestmax fp gfm grepformat guifontwide helpheight highlight hlg im imd imstatusfunc indentkeys isf isprint km lazyredraw lispwords lpl macatsui maxcombine mef mls modelines mousehide mp nu omnifunc paragraphs penc pi previewwindow printmbfont pythondll redrawtime revins ro ruler scb scs sessionoptions shellquote shiftround showfulltag sidescrolloff smarttab sp spf srr startofline suffixes switchbuf ta taglength tbidi termencoding thesaurus titlestring tpm ttm ttytype undodir ut vfile vop wd wic wildmode winheight wmh write
|
||||
syn keyword vimOption contained akm antialias autoindent backup bdir bin bomb bs cb ch cinoptions co commentstring confirm cpoptions cscoperelative csre cursorcolumn delcombine diffopt ea efm ep et fdc fdo ffs filetype fml foldignore foldopen fs gfn grepprg guiheadroom helplang history hls imactivatefunc imdisable inc indk isfname joinspaces kmp lbr list ls magic maxfuncdepth menuitems mm modifiable mousem mps number opendevice paste perldll pm printdevice printoptions pythonthreedll regexpengine ri rop rulerformat scr sect sft shellredir shiftwidth showmatch siso smc spc spl ss statusline suffixesadd sws tabline tagrelative tbis terse tildeop tl tr tty tw undofile vb vi wa weirdinvert wig wildoptions winminheight wmnu writeany
|
||||
syn keyword vimOption contained al ar autoread backupcopy bdlay binary breakat bsdir cc charconvert cinw cocu compatible consk cpt cscopetag cst cursorline dex digraph ead ei equalalways eventignore fde fdt fic fillchars fmr foldlevel foldtext fsync gfs gtl guioptions hf hk hlsearch imactivatekey imi include inex isi js kp lcs listchars lsp makeef maxmapdepth mfd mmd modified mousemodel msm numberwidth operatorfunc pastetoggle pex pmbcs printencoding prompt qe relativenumber rightleft rs runtimepath scroll sections sh shellslash shm showmode sj smd spell splitbelow ssl stl sw sxe tabpagemax tags tbs textauto timeout tm ts ttybuiltin tx undolevels vbs viewdir wak wfh wildchar wim winminwidth wmw writebackup
|
||||
syn keyword vimOption contained aleph arab autowrite backupdir belloff biosk breakindent bsk ccv ci cinwords cole complete conskey crb cscopetagorder csto cwh dg dip eadirection ek equalprg ex fdi fen fileencoding fixendofline fo foldlevelstart formatexpr ft gfw gtt guipty hh hkmap ic imaf iminsert includeexpr inf isident key langmap linebreak lm luadll makeprg maxmem mh mmp more mouses mzq nuw opfunc patchexpr pexpr pmbfn printexpr pt quoteescape remap rightleftcmd rtp sb scrollbind secure shcf shelltemp shortmess showtabline slm sn spellcapcheck splitright ssop stmp swapfile sxq tabstop tagstack tc textmode timeoutlen to tsl ttyfast uc undoreload vdir viewoptions warn wfw wildcharm winaltkeys winwidth wop writedelay
|
||||
syn keyword vimOption contained allowrevins arabic autowriteall backupext beval bioskey breakindentopt bt cd cin clipboard colorcolumn completefunc copyindent cryptmethod cscopeverbose csverb debug dict dir eb enc errorbells expandtab fdl fenc fileencodings fixeol foldclose foldmarker formatlistpat gcr ghr guicursor guitablabel hi hkmapp icon imak ims incsearch infercase isk keymap langmenu lines lmap lw mat maxmempattern mis mmt mouse mouseshape mzquantum odev osfiletype patchmode pfn popt printfont pumheight rdt renderoptions rl ru sbo scrolljump sel shell shelltype shortname shq sm so spellfile spr st sts swapsync syn tag tal tenc textwidth title toolbar tsr ttym udf updatecount ve viminfo wb wh wildignore window wiv wrap ws
|
||||
syn keyword vimOption contained altkeymap arabicshape aw backupskip bex bk bri bufhidden cdpath cindent cmdheight columns completeopt cot cscopepathcomp cspc cuc deco dictionary directory ed encoding errorfile exrc fdls fencs fileformat fk foldcolumn foldmethod formatoptions gd go guifont guitabtooltip hid hkp iconstring imc imsearch inde insertmode iskeyword keymodel langnoremap linespace lnr lz matchpairs maxmemtot mkspellmem mod mousef mouset nf oft pa path ph preserveindent printheader pvh re report rlc rubydll sbr scrolloff selection shellcmdflag shellxescape showbreak si smartcase softtabstop spelllang sps sta su swb synmaxcol tagbsearch tb term tf titlelen toolbariconsize ttimeout ttymouse udir updatetime verbose virtualedit wc whichwrap wildignorecase winfixheight wiw wrapmargin ww
|
||||
syn keyword vimOption contained ambiwidth ari awa balloondelay bexpr bkc briopt buflisted cedit cink cmdwinheight
|
||||
syn keyword vimOption contained acd ambw arshape background ballooneval bg bl brk buftype cf cinkeys cmdwinheight com conceallevel cpo cscopequickfix csqf cursorbind define diffexpr dy ef eol esckeys fcs fdn ff fileignorecase flp foldexpr foldnestmax fp gfm grepformat guifontwide helpheight highlight hlg im imd imstatusfunc indentkeys isf isprint km lazyredraw lispwords lpl macatsui maxcombine mef mls modelines mousehide mp nu omnifunc paragraphs penc pi previewwindow printmbfont pythondll redrawtime revins ro ruler scb scs sessionoptions shellquote shiftround showfulltag sidescrolloff smarttab sp spf srr startofline suffixes switchbuf ta taglength tbidi termbidi tgst titleold top ttimeoutlen ttyscroll ul ur verbosefile visualbell wcm wi wildmenu winfixwidth wm wrapscan
|
||||
syn keyword vimOption contained ai anti autochdir backspace balloonexpr bh bo browsedir casemap cfu cino cmp comments confirm cpoptions cscoperelative csre cursorcolumn delcombine diffopt ea efm ep et fdc fdo ffs filetype fml foldignore foldopen fs gfn grepprg guiheadroom helplang history hls imactivatefunc imdisable inc indk isfname joinspaces kmp lbr list ls magic maxfuncdepth menuitems mm modifiable mousem mps number opendevice paste perldll pm printdevice printoptions pythonthreedll regexpengine ri rop rulerformat scr sect sft shellredir shiftwidth showmatch siso smc spc spl ss statusline suffixesadd sws tabline tagrelative tbis termencoding thesaurus titlestring tpm ttm ttytype undodir ut vfile vop wd wic wildmode winheight wmh write
|
||||
syn keyword vimOption contained akm antialias autoindent backup bdir bin bomb bs cb ch cinoptions cms commentstring consk cpt cscopetag cst cursorline dex digraph ead ei equalalways eventignore fde fdt fic fillchars fmr foldlevel foldtext fsync gfs gtl guioptions hf hk hlsearch imactivatekey imi include inex isi js kp lcs listchars lsp makeef maxmapdepth mfd mmd modified mousemodel msm numberwidth operatorfunc pastetoggle pex pmbcs printencoding prompt qe relativenumber rightleft rs runtimepath scroll sections sh shellslash shm showmode sj smd spell splitbelow ssl stl sw sxe tabpagemax tags tbs terse tildeop tl tr tty tw undofile vb vi wa weirdinvert wig wildoptions winminheight wmnu writeany
|
||||
syn keyword vimOption contained al ar autoread backupcopy bdlay binary breakat bsdir cc charconvert cinw co compatible conskey crb cscopetagorder csto cwh dg dip eadirection ek equalprg ex fdi fen fileencoding fixendofline fo foldlevelstart formatexpr ft gfw gtt guipty hh hkmap ic imaf iminsert includeexpr inf isident key langmap linebreak lm luadll makeprg maxmem mh mmp more mouses mzq nuw opfunc patchexpr pexpr pmbfn printexpr pt quoteescape remap rightleftcmd rtp sb scrollbind secure shcf shelltemp shortmess showtabline slm sn spellcapcheck splitright ssop stmp swapfile sxq tabstop tagstack tc textauto timeout tm ts ttybuiltin tx undolevels vbs viewdir wak wfh wildchar wim winminwidth wmw writebackup
|
||||
syn keyword vimOption contained aleph arab autowrite backupdir belloff biosk breakindent bsk ccv ci cinwords cocu complete copyindent cryptmethod cscopeverbose csverb debug dict dir eb enc errorbells expandtab fdl fenc fileencodings fixeol foldclose foldmarker formatlistpat gcr ghr guicursor guitablabel hi hkmapp icon imak ims incsearch infercase isk keymap langmenu lines lmap lw mat maxmempattern mis mmt mouse mouseshape mzquantum odev osfiletype patchmode pfn popt printfont pumheight rdt renderoptions rl ru sbo scrolljump sel shell shelltype shortname shq sm so spellfile spr st sts swapsync syn tag tal tcldll textmode timeoutlen to tsl ttyfast uc undoreload vdir viewoptions warn wfw wildcharm winaltkeys winwidth wop writedelay
|
||||
syn keyword vimOption contained allowrevins arabic autowriteall backupext beval bioskey breakindentopt bt cd cin clipboard cole completefunc cot cscopepathcomp cspc cuc deco dictionary directory ed encoding errorfile exrc fdls fencs fileformat fk foldcolumn foldmethod formatoptions gd go guifont guitabtooltip hid hkp iconstring imc imsearch inde insertmode iskeyword keymodel langnoremap linespace lnr lz matchpairs maxmemtot mkspellmem mod mousef mouset nf oft pa path ph preserveindent printheader pvh re report rlc rubydll sbr scrolloff selection shellcmdflag shellxescape showbreak si smartcase softtabstop spelllang sps sta su swb synmaxcol tagbsearch tb tenc textwidth title toolbar tsr ttym udf updatecount ve viminfo wb wh wildignore window wiv wrap ws
|
||||
syn keyword vimOption contained altkeymap arabicshape aw backupskip bex bk bri bufhidden cdpath cindent cm colorcolumn completeopt cp cscopeprg csprg cul def diff display edcompatible endofline errorformat fcl fdm fex fileformats fkmap foldenable foldminlines formatprg gdefault gp guifontset helpfile hidden hl ignorecase imcmdline imsf indentexpr is isp keywordprg laststatus lisp loadplugins ma matchtime mco ml modeline mousefocus mousetime nrformats ofu para pdev pheader previewheight printmbcharset pvw readonly restorescreen rnu ruf sc scrollopt selectmode shellpipe shellxquote showcmd sidescroll smartindent sol spellsuggest sr stal sua swf syntax tagcase tbi term tf titlelen toolbariconsize ttimeout ttymouse udir updatetime verbose virtualedit wc whichwrap wildignorecase winfixheight wiw wrapmargin ww
|
||||
syn keyword vimOption contained ambiwidth ari awa balloondelay bexpr bkc briopt buflisted cedit cink cmdheight columns concealcursor
|
||||
|
||||
" vimOptions: These are the turn-off setting variants {{{2
|
||||
syn keyword vimOption contained noacd noallowrevins noantialias noarabic noarshape noautoread noaw noballooneval nobinary nobk nobuflisted nocin noconfirm nocopyindent nocscoperelative nocsre nocuc nocursorcolumn nodelcombine nodigraph noed noendofline noerrorbells noex nofen nofixendofline nofkmap nogdefault nohidden nohkmapp nohlsearch noicon noim noimcmdline noimdisable noinf noinsertmode nojoinspaces nolazyredraw nolinebreak nolist nolpl noma nomagic noml nomodeline nomodified nomousef nomousehide nonumber noopendevice nopi nopreviewwindow nopvw norelativenumber norestorescreen nori norl noro noru nosb noscb noscs nosft noshelltemp noshortname noshowfulltag noshowmode nosm nosmartindent nosmd nosol nosplitbelow nospr nossl nostartofline noswapfile nota notagrelative notbi notbs noterse notextmode notgst notimeout noto notr nottybuiltin notx noundofile novisualbell nowarn noweirdinvert nowfw nowildignorecase nowinfixheight nowiv nowrap nowrite nowritebackup
|
||||
syn keyword vimOption contained noai noaltkeymap noar noarabicshape noautochdir noautowrite noawa nobeval nobiosk nobl nocf nocindent noconsk nocp nocscopetag nocst nocul nocursorline nodg noea noedcompatible noeol noesckeys noexpandtab nofic nofixeol nofoldenable noguipty nohk nohkp noic noignorecase noimc noimd noincsearch noinfercase nois nojs nolbr nolisp noloadplugins nolz nomacatsui nomh nomod nomodifiable nomore nomousefocus nonu noodev nopaste nopreserveindent noprompt noreadonly noremap norevins norightleft nornu nors noruler nosc noscrollbind nosecure noshellslash noshiftround noshowcmd noshowmatch nosi nosmartcase nosmarttab nosn nospell nosplitright nosr nosta nostmp noswf notagbsearch notagstack notbidi notermbidi notextauto notf notildeop notitle notop nottimeout nottyfast noudf novb nowa nowb nowfh nowic nowildmenu nowinfixwidth nowmnu nowrapscan nowriteany nows
|
||||
syn keyword vimOption contained noakm noanti noarab noari noautoindent noautowriteall nobackup nobin nobioskey nobomb noci nocompatible noconskey nocrb nocscopeverbose nocsverb nocursorbind nodeco nodiff noeb noek noequalalways noet noexrc nofileignorecase nofk nogd nohid nohkmap nohls
|
||||
syn keyword vimOption contained noacd noallowrevins noantialias noarabic noarshape noautoread noaw noballooneval nobinary nobk nobreakindent nocf nocindent noconsk nocp nocscopetag nocst nocul nocursorline nodg noea noedcompatible noeol noesckeys noexpandtab nofic nofixeol nofoldenable nogd nohid nohkmap nohls noicon noimc noimdisable noinfercase nojoinspaces nolangnoremap nolbr nolisp nolnr nolpl noma nomagic noml nomodeline nomodified nomousef nomousehide nonumber noopendevice nopi nopreviewwindow nopvw norelativenumber norestorescreen nori norl noro noru nosb noscb noscs nosft noshelltemp noshortname noshowfulltag noshowmode nosm nosmartindent nosmd nosol nosplitbelow nospr nossl nostartofline noswapfile nota notagrelative notbi notbs noterse notextmode notgst notimeout noto notr nottybuiltin notx noundofile novisualbell nowarn noweirdinvert nowfw nowildignorecase nowinfixheight nowiv nowrap nowrite nowritebackup
|
||||
syn keyword vimOption contained noai noaltkeymap noar noarabicshape noautochdir noautowrite noawa nobeval nobiosk nobl nobri noci nocompatible noconskey nocrb nocscopeverbose nocsverb nocursorbind nodeco nodiff noeb noek noequalalways noet noexrc nofileignorecase nofk nofs nogdefault nohidden nohkmapp nohlsearch noignorecase noimcmdline noincsearch noinsertmode nojs nolazyredraw nolinebreak nolist noloadplugins nolz nomacatsui nomh nomod nomodifiable nomore nomousefocus nonu noodev nopaste nopreserveindent noprompt noreadonly noremap norevins norightleft nornu nors noruler nosc noscrollbind nosecure noshellslash noshiftround noshowcmd noshowmatch nosi nosmartcase nosmarttab nosn nospell nosplitright nosr nosta nostmp noswf notagbsearch notagstack notbidi notermbidi notextauto notf notildeop notitle notop nottimeout nottyfast noudf novb nowa nowb nowfh nowic nowildmenu nowinfixwidth nowmnu nowrapscan nowriteany nows
|
||||
syn keyword vimOption contained noakm noanti noarab noari noautoindent noautowriteall nobackup nobin nobioskey nobomb nobuflisted nocin noconfirm nocopyindent nocscoperelative nocsre nocuc nocursorcolumn nodelcombine nodigraph noed noendofline noerrorbells noex nofen nofixendofline nofkmap nofsync noguipty nohk nohkp noic noim noimd noinf nois
|
||||
|
||||
" vimOptions: These are the invertible variants {{{2
|
||||
syn keyword vimOption contained invacd invallowrevins invantialias invarabic invarshape invautoread invaw invballooneval invbinary invbk invbuflisted invcin invconfirm invcopyindent invcscoperelative invcsre invcuc invcursorcolumn invdelcombine invdigraph inved invendofline inverrorbells invex invfen invfixendofline invfkmap invgdefault invhidden invhkmapp invhlsearch invicon invim invimcmdline invimdisable invinf invinsertmode invjoinspaces invlazyredraw invlinebreak invlist invlpl invma invmagic invml invmodeline invmodified invmousef invmousehide invnumber invopendevice invpi invpreviewwindow invpvw invrelativenumber invrestorescreen invri invrl invro invru invsb invscb invscs invsft invshelltemp invshortname invshowfulltag invshowmode invsm invsmartindent invsmd invsol invsplitbelow invspr invssl invstartofline invswapfile invta invtagrelative invtbi invtbs invterse invtextmode invtgst invtimeout invto invtr invttybuiltin invtx invundofile invvisualbell invwarn invweirdinvert invwfw invwildignorecase invwinfixheight invwiv invwrap invwrite invwritebackup
|
||||
syn keyword vimOption contained invai invaltkeymap invar invarabicshape invautochdir invautowrite invawa invbeval invbiosk invbl invcf invcindent invconsk invcp invcscopetag invcst invcul invcursorline invdg invea invedcompatible inveol invesckeys invexpandtab invfic invfixeol invfoldenable invguipty invhk invhkp invic invignorecase invimc invimd invincsearch invinfercase invis invjs invlbr invlisp invloadplugins invlz invmacatsui invmh invmod invmodifiable invmore invmousefocus invnu invodev invpaste invpreserveindent invprompt invreadonly invremap invrevins invrightleft invrnu invrs invruler invsc invscrollbind invsecure invshellslash invshiftround invshowcmd invshowmatch invsi invsmartcase invsmarttab invsn invspell invsplitright invsr invsta invstmp invswf invtagbsearch invtagstack invtbidi invtermbidi invtextauto invtf invtildeop invtitle invtop invttimeout invttyfast invudf invvb invwa invwb invwfh invwic invwildmenu invwinfixwidth invwmnu invwrapscan invwriteany invws
|
||||
syn keyword vimOption contained invakm invanti invarab invari invautoindent invautowriteall invbackup invbin invbioskey invbomb invci invcompatible invconskey invcrb invcscopeverbose invcsverb invcursorbind invdeco invdiff inveb invek invequalalways invet invexrc invfileignorecase invfk invgd invhid invhkmap invhls
|
||||
syn keyword vimOption contained invacd invallowrevins invantialias invarabic invarshape invautoread invaw invballooneval invbinary invbk invbreakindent invcf invcindent invconsk invcp invcscopetag invcst invcul invcursorline invdg invea invedcompatible inveol invesckeys invexpandtab invfic invfixeol invfoldenable invgd invhid invhkmap invhls invicon invimc invimdisable invinfercase invjoinspaces invlangnoremap invlbr invlisp invlnr invlpl invma invmagic invml invmodeline invmodified invmousef invmousehide invnumber invopendevice invpi invpreviewwindow invpvw invrelativenumber invrestorescreen invri invrl invro invru invsb invscb invscs invsft invshelltemp invshortname invshowfulltag invshowmode invsm invsmartindent invsmd invsol invsplitbelow invspr invssl invstartofline invswapfile invta invtagrelative invtbi invtbs invterse invtextmode invtgst invtimeout invto invtr invttybuiltin invtx invundofile invvisualbell invwarn invweirdinvert invwfw invwildignorecase invwinfixheight invwiv invwrap invwrite invwritebackup
|
||||
syn keyword vimOption contained invai invaltkeymap invar invarabicshape invautochdir invautowrite invawa invbeval invbiosk invbl invbri invci invcompatible invconskey invcrb invcscopeverbose invcsverb invcursorbind invdeco invdiff inveb invek invequalalways invet invexrc invfileignorecase invfk invfs invgdefault invhidden invhkmapp invhlsearch invignorecase invimcmdline invincsearch invinsertmode invjs invlazyredraw invlinebreak invlist invloadplugins invlz invmacatsui invmh invmod invmodifiable invmore invmousefocus invnu invodev invpaste invpreserveindent invprompt invreadonly invremap invrevins invrightleft invrnu invrs invruler invsc invscrollbind invsecure invshellslash invshiftround invshowcmd invshowmatch invsi invsmartcase invsmarttab invsn invspell invsplitright invsr invsta invstmp invswf invtagbsearch invtagstack invtbidi invtermbidi invtextauto invtf invtildeop invtitle invtop invttimeout invttyfast invudf invvb invwa invwb invwfh invwic invwildmenu invwinfixwidth invwmnu invwrapscan invwriteany invws
|
||||
syn keyword vimOption contained invakm invanti invarab invari invautoindent invautowriteall invbackup invbin invbioskey invbomb invbuflisted invcin invconfirm invcopyindent invcscoperelative invcsre invcuc invcursorcolumn invdelcombine invdigraph inved invendofline inverrorbells invex invfen invfixendofline invfkmap invfsync invguipty invhk invhkp invic invim invimd invinf invis
|
||||
|
||||
" termcap codes (which can also be set) {{{2
|
||||
syn keyword vimOption contained t_AB t_al t_bc t_ce t_cl t_Co t_Cs t_CV t_db t_dl t_DL t_EI t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_SI t_so t_sr t_SR t_te t_ti t_ts t_u7 t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xn t_xs t_ZH t_ZR
|
||||
syn keyword vimOption contained t_AF t_AL t_cd t_Ce t_cm t_cs t_CS t_da
|
||||
syn keyword vimOption contained t_AB t_al t_bc t_ce t_cl t_Co t_Cs t_CV t_db t_DL t_EI t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RB t_RI t_RV t_Sb t_se t_Sf t_SI t_so t_sr t_SR t_te t_ti t_ts t_u7 t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xn t_xs t_ZH t_ZR
|
||||
syn keyword vimOption contained t_AF t_AL t_cd t_Ce t_cm t_cs t_CS t_da t_dl
|
||||
syn match vimOption contained "t_%1"
|
||||
syn match vimOption contained "t_#2"
|
||||
syn match vimOption contained "t_#4"
|
||||
@@ -75,9 +76,9 @@ syn match vimHLGroup contained "Conceal"
|
||||
syn case match
|
||||
|
||||
" Function Names {{{2
|
||||
syn keyword vimFuncName contained abs and argidx asin assert_true browse buflisted bufnr byteidx ceil cindent complete confirm cosh cursor did_filetype empty eventhandler exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdline getcmdwintype getfontname getftime getloclist getpos getregtype getwinposx glob has hasmapto histget hlID indent inputdialog inputsave invert items len line localtime luaeval mapcheck matchaddpos matchend max mode nr2char pow pumvisible range reltimestr remote_peek remove resolve screenattr screenrow searchpair server2client setcharsearch setloclist setqflist settabwinvar shellescape sin soundfold split str2nr strftime strlen strridx strwidth substitute synID synIDtrans system tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree values visualmode winbufnr winheight winnr winrestview winwidth writefile
|
||||
syn keyword vimFuncName contained acos append arglistid assert_equal atan browsedir bufloaded bufwinnr byteidxcomp changenr clearmatches complete_add copy count deepcopy diff_filler escape executable exp extend filewritable findfile fmod foldclosed foldtext function getbufline getcharmod getcmdpos getcurpos getfperm getftype getmatches getqflist gettabvar getwinposy glob2regpat has_key histadd histnr hostname index inputlist inputsecret isdirectory join libcall line2byte log map match matcharg matchlist min mzeval or prevnonblank py3eval readfile remote_expr remote_read rename reverse screenchar search searchpairpos serverlist setcmdpos setmatches setreg setwinvar shiftwidth sinh spellbadword sqrt strchars stridx strpart strtrans submatch synconcealed synIDattr synstack systemlist tabpagenr tagfiles tan tempname toupper trunc undofile uniq virtcol wildmenumode wincol winline winrestcmd winsaveview wordcount xor
|
||||
syn keyword vimFuncName contained add argc argv assert_false atan2 bufexists bufname byte2line call char2nr col complete_check cos cscope_connection delete diff_hlID eval exepath expand feedkeys filter float2nr fnameescape foldclosedend foldtextresult garbagecollect getbufvar getcharsearch getcmdtype getcwd getfsize getline getpid getreg gettabwinvar getwinvar globpath haslocaldir histdel hlexists iconv input inputrestore insert islocked keys libcallnr lispindent log10 maparg matchadd matchdelete matchstr mkdir nextnonblank pathshorten printf pyeval reltime remote_foreground remote_send repeat round screencol searchdecl searchpos setbufvar setline setpos settabvar sha256 simplify sort spellsuggest str2float strdisplaywidth string
|
||||
syn keyword vimFuncName contained abs alloc_fail argc argv assert_exception assert_true browse buflisted bufnr byteidx ceil cindent complete confirm cosh cursor did_filetype empty eventhandler exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdline getcmdwintype getfontname getftime getloclist getpos getregtype getwinposx glob has hasmapto histget hlID indent inputdialog inputsave invert items len line localtime luaeval mapcheck matchaddpos matchend max mode nr2char perleval printf pyeval reltime remote_foreground remote_send repeat round screencol searchdecl searchpos setbufvar setline setpos settabvar sha256 simplify sort spellsuggest str2float strdisplaywidth string strridx submatch synID synIDtrans system tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree values visualmode winbufnr winheight winnr winrestview winwidth writefile
|
||||
syn keyword vimFuncName contained acos and argidx asin assert_fails atan browsedir bufloaded bufwinnr byteidxcomp changenr clearmatches complete_add copy count deepcopy diff_filler escape executable exp extend filewritable findfile fmod foldclosed foldtext function getbufline getcharmod getcmdpos getcurpos getfperm getftype getmatches getqflist gettabvar getwinposy glob2regpat has_key histadd histnr hostname index inputlist inputsecret isdirectory join libcall line2byte log map match matcharg matchlist min mzeval or pow pumvisible range reltimestr remote_peek remove resolve screenattr screenrow searchpair server2client setcharsearch setloclist setqflist settabwinvar shellescape sin soundfold split str2nr strftime strlen strtrans substitute synIDattr synstack systemlist tabpagenr tagfiles tan tempname toupper trunc undofile uniq virtcol wildmenumode wincol winline winrestcmd winsaveview wordcount xor
|
||||
syn keyword vimFuncName contained add append arglistid assert_equal assert_false atan2 bufexists bufname byte2line call char2nr col complete_check cos cscope_connection delete diff_hlID eval exepath expand feedkeys filter float2nr fnameescape foldclosedend foldtextresult garbagecollect getbufvar getcharsearch getcmdtype getcwd getfsize getline getpid getreg gettabwinvar getwinvar globpath haslocaldir histdel hlexists iconv input inputrestore insert islocked keys libcallnr lispindent log10 maparg matchadd matchdelete matchstr mkdir nextnonblank pathshorten prevnonblank py3eval readfile remote_expr remote_read rename reverse screenchar search searchpairpos serverlist setcmdpos setmatches setreg setwinvar shiftwidth sinh spellbadword sqrt strchars stridx strpart strwidth synconcealed
|
||||
|
||||
"--- syntax here and above generated by mkvimvim ---
|
||||
" Special Vim Highlighting (not automatic) {{{1
|
||||
@@ -468,6 +469,11 @@ syn match vimGroupAdd contained "add=" nextgroup=vimGroupList
|
||||
syn match vimGroupRem contained "remove=" nextgroup=vimGroupList
|
||||
syn cluster vimFuncBodyList add=vimSynType,vimGroupAdd,vimGroupRem
|
||||
|
||||
" Syntax: iskeyword {{{2
|
||||
syn keyword vimSynType contained iskeyword skipwhite nextgroup=vimIskList
|
||||
syn match vimIskList contained '\S\+' contains=vimIskSep
|
||||
syn match vimIskSep contained ','
|
||||
|
||||
" Syntax: include {{{2
|
||||
syn keyword vimSynType contained include skipwhite nextgroup=vimGroupList
|
||||
syn cluster vimFuncBodyList add=vimSynType
|
||||
@@ -855,6 +861,7 @@ hi def link vimHiTerm Type
|
||||
hi def link vimHLGroup vimGroup
|
||||
hi def link vimHLMod PreProc
|
||||
hi def link vimInsert vimString
|
||||
hi def link vimIskSep Delimiter
|
||||
hi def link vimKeyCode vimSpecFile
|
||||
hi def link vimKeyword Statement
|
||||
hi def link vimLet vimCommand
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
#!/usr/bin/python
|
||||
# Server that will accept connections from a Vim channel.
|
||||
# Run this server and then in Vim you can open the channel:
|
||||
# :let handle = connect('localhost:8765', 'json')
|
||||
#
|
||||
# Then Vim can send requests to the server:
|
||||
# :let response = sendexpr(handle, 'hello!')
|
||||
#
|
||||
# And you can control Vim by typing a JSON message here, e.g.:
|
||||
# ["ex","echo 'hi there'"]
|
||||
#
|
||||
# See ":help channel-demo" in Vim.
|
||||
|
||||
import SocketServer
|
||||
import json
|
||||
import socket
|
||||
import sys
|
||||
import threading
|
||||
|
||||
thesocket = None
|
||||
|
||||
class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):
|
||||
|
||||
def handle(self):
|
||||
print "=== socket opened ==="
|
||||
global thesocket
|
||||
thesocket = self.request
|
||||
while True:
|
||||
try:
|
||||
data = self.request.recv(4096)
|
||||
except socket.error:
|
||||
print "=== socket error ==="
|
||||
break
|
||||
except IOError:
|
||||
print "=== socket closed ==="
|
||||
break
|
||||
if data == '':
|
||||
print "=== socket closed ==="
|
||||
break
|
||||
print "received: {}".format(data)
|
||||
try:
|
||||
decoded = json.loads(data)
|
||||
except ValueError:
|
||||
print "json decoding failed"
|
||||
decoded = [0, '']
|
||||
|
||||
if decoded[1] == 'hello!':
|
||||
response = "got it"
|
||||
else:
|
||||
response = "what?"
|
||||
encoded = json.dumps([decoded[0], response])
|
||||
print "sending {}".format(encoded)
|
||||
self.request.sendall(encoded)
|
||||
thesocket = None
|
||||
|
||||
class ThreadedTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
|
||||
pass
|
||||
|
||||
if __name__ == "__main__":
|
||||
HOST, PORT = "localhost", 8765
|
||||
|
||||
server = ThreadedTCPServer((HOST, PORT), ThreadedTCPRequestHandler)
|
||||
ip, port = server.server_address
|
||||
|
||||
# Start a thread with the server -- that thread will then start one
|
||||
# more thread for each request
|
||||
server_thread = threading.Thread(target=server.serve_forever)
|
||||
|
||||
# Exit the server thread when the main thread terminates
|
||||
server_thread.daemon = True
|
||||
server_thread.start()
|
||||
print "Server loop running in thread: ", server_thread.name
|
||||
|
||||
print "Listening on port {}".format(PORT)
|
||||
while True:
|
||||
typed = sys.stdin.readline()
|
||||
if "quit" in typed:
|
||||
print "Goodbye!"
|
||||
break
|
||||
if thesocket is None:
|
||||
print "No socket yet"
|
||||
else:
|
||||
print "sending {}".format(typed)
|
||||
thesocket.sendall(typed)
|
||||
|
||||
server.shutdown()
|
||||
server.server_close()
|
||||
@@ -29,10 +29,8 @@
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
#define __ARGS(x) x
|
||||
|
||||
/* Client API */
|
||||
char * sendToVim __ARGS((Display *dpy, char *name, char *cmd, int asKeys, int *code));
|
||||
char * sendToVim(Display *dpy, char *name, char *cmd, int asKeys, int *code);
|
||||
|
||||
#ifdef MAIN
|
||||
/* A sample program */
|
||||
@@ -70,15 +68,15 @@ main(int argc, char **argv)
|
||||
* Forward declarations for procedures defined later in this file:
|
||||
*/
|
||||
|
||||
static int x_error_check __ARGS((Display *dpy, XErrorEvent *error_event));
|
||||
static int AppendPropCarefully __ARGS((Display *display,
|
||||
Window window, Atom property, char *value, int length));
|
||||
static Window LookupName __ARGS((Display *dpy, char *name,
|
||||
int delete, char **loose));
|
||||
static int SendInit __ARGS((Display *dpy));
|
||||
static char *SendEventProc __ARGS((Display *dpy, XEvent *eventPtr,
|
||||
int expect, int *code));
|
||||
static int IsSerialName __ARGS((char *name));
|
||||
static int x_error_check(Display *dpy, XErrorEvent *error_event);
|
||||
static int AppendPropCarefully(Display *display,
|
||||
Window window, Atom property, char *value, int length);
|
||||
static Window LookupName(Display *dpy, char *name,
|
||||
int delete, char **loose);
|
||||
static int SendInit(Display *dpy);
|
||||
static char *SendEventProc(Display *dpy, XEvent *eventPtr,
|
||||
int expect, int *code);
|
||||
static int IsSerialName(char *name);
|
||||
|
||||
/* Private variables */
|
||||
static Atom registryProperty = None;
|
||||
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
{
|
||||
IBClasses = (
|
||||
{
|
||||
ACTIONS = {"_cycleWindows" = id; "_cycleWindowsBackwards" = id; addNewTab = id; };
|
||||
CLASS = FirstResponder;
|
||||
LANGUAGE = ObjC;
|
||||
SUPERCLASS = NSObject;
|
||||
},
|
||||
{
|
||||
ACTIONS = {
|
||||
fileOpen = id;
|
||||
fontSizeDown = id;
|
||||
fontSizeUp = id;
|
||||
forceNewWindow = id;
|
||||
newWindow = id;
|
||||
newWindowAndActivate = id;
|
||||
openWebsite = id;
|
||||
orderFrontPreferencePanel = id;
|
||||
selectNextWindow = id;
|
||||
selectPreviousWindow = id;
|
||||
showHelp = id;
|
||||
showVimHelp = id;
|
||||
zoomAll = id;
|
||||
};
|
||||
CLASS = MMAppController;
|
||||
LANGUAGE = ObjC;
|
||||
SUPERCLASS = NSObject;
|
||||
},
|
||||
{CLASS = NSMenu; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
|
||||
{
|
||||
ACTIONS = {didAdjustSubviews = RBSplitView; willAdjustSubviews = RBSplitView; };
|
||||
CLASS = NSObject;
|
||||
LANGUAGE = ObjC;
|
||||
},
|
||||
{CLASS = RBSplitSubview; LANGUAGE = ObjC; SUPERCLASS = NSView; },
|
||||
{
|
||||
CLASS = RBSplitView;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {delegate = id; };
|
||||
SUPERCLASS = RBSplitSubview;
|
||||
},
|
||||
{
|
||||
ACTIONS = {checkForUpdates = id; };
|
||||
CLASS = SUUpdater;
|
||||
LANGUAGE = ObjC;
|
||||
SUPERCLASS = NSObject;
|
||||
}
|
||||
);
|
||||
IBVersion = 1;
|
||||
}
|
||||
+1102
-211
File diff suppressed because it is too large
Load Diff
+27
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IBDocumentLocation</key>
|
||||
<string>84 130 356 240 0 0 1024 746 </string>
|
||||
<key>IBEditorPositions</key>
|
||||
<dict>
|
||||
<key>29</key>
|
||||
<string>84 375 281 44 0 0 1024 746 </string>
|
||||
</dict>
|
||||
<key>IBFramework Version</key>
|
||||
<string>489.0</string>
|
||||
<key>IBLastKnownRelativeProjectPath</key>
|
||||
<string>../../MacVim.xcodeproj</string>
|
||||
<key>IBOldestOS</key>
|
||||
<integer>5</integer>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>29</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>8S165</string>
|
||||
<key>targetFramework</key>
|
||||
<string>IBCocoaFramework</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
@@ -1255,7 +1255,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>94</string>
|
||||
<string>95</string>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
<dict>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
|
||||
@@ -56,8 +56,7 @@ extern NSTimeInterval MMBalloonEvalInternalDelay;
|
||||
unsigned numWholeLineChanges;
|
||||
unsigned offsetForDrawDataPrune;
|
||||
BOOL imState;
|
||||
CFSocketRef netbeansSocket;
|
||||
CFRunLoopSourceRef netbeansRunLoopSource;
|
||||
NSMutableDictionary *channelDict;
|
||||
int winposX;
|
||||
int winposY;
|
||||
#ifdef FEAT_BEVAL
|
||||
@@ -157,8 +156,8 @@ extern NSTimeInterval MMBalloonEvalInternalDelay;
|
||||
- (BOOL)imState;
|
||||
- (void)setImState:(BOOL)activated;
|
||||
|
||||
- (void)messageFromNetbeans;
|
||||
- (void)setNetbeansSocket:(int)socket;
|
||||
- (void)addChannel:(int)idx fileDescriptor:(int)fd;
|
||||
- (void)removeChannel:(int)idx;
|
||||
|
||||
#ifdef FEAT_BEVAL
|
||||
- (void)setLastToolTip:(NSString *)toolTip;
|
||||
|
||||
+69
-44
@@ -163,6 +163,13 @@ extern GuiFont gui_mch_retain_font(GuiFont font);
|
||||
@end
|
||||
|
||||
|
||||
@interface MMChannel : NSObject {
|
||||
CFSocketRef socket;
|
||||
CFRunLoopSourceRef runLoopSource;
|
||||
}
|
||||
|
||||
- (id)initWithIndex:(int)idx fileDescriptor:(int)fd;
|
||||
@end
|
||||
|
||||
|
||||
@interface MMBackend (Private)
|
||||
@@ -234,6 +241,7 @@ extern GuiFont gui_mch_retain_font(GuiFont font);
|
||||
connectionNameDict = [[NSMutableDictionary alloc] init];
|
||||
clientProxyDict = [[NSMutableDictionary alloc] init];
|
||||
serverReplyDict = [[NSMutableDictionary alloc] init];
|
||||
channelDict = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSBundle *mainBundle = [NSBundle mainBundle];
|
||||
NSString *path = [mainBundle pathForResource:@"Colors" ofType:@"plist"];
|
||||
@@ -265,6 +273,7 @@ extern GuiFont gui_mch_retain_font(GuiFont font);
|
||||
gui_mch_free_font(oldWideFont); oldWideFont = NOFONT;
|
||||
[blinkTimer release]; blinkTimer = nil;
|
||||
[alternateServerName release]; alternateServerName = nil;
|
||||
[channelDict release]; channelDict = nil;
|
||||
[serverReplyDict release]; serverReplyDict = nil;
|
||||
[clientProxyDict release]; clientProxyDict = nil;
|
||||
[connectionNameDict release]; connectionNameDict = nil;
|
||||
@@ -1675,49 +1684,21 @@ extern GuiFont gui_mch_retain_font(GuiFont font);
|
||||
[self flushQueue:YES];
|
||||
}
|
||||
|
||||
static void netbeansReadCallback(CFSocketRef s,
|
||||
CFSocketCallBackType callbackType,
|
||||
CFDataRef address,
|
||||
const void *data,
|
||||
void *info)
|
||||
- (void)addChannel:(int)idx fileDescriptor:(int)fd
|
||||
{
|
||||
// NetBeans socket is readable.
|
||||
[[MMBackend sharedInstance] messageFromNetbeans];
|
||||
}
|
||||
|
||||
- (void)messageFromNetbeans
|
||||
{
|
||||
[inputQueue addObject:[NSNumber numberWithInt:NetBeansMsgID]];
|
||||
[inputQueue addObject:[NSNull null]];
|
||||
}
|
||||
|
||||
- (void)setNetbeansSocket:(int)socket
|
||||
{
|
||||
if (netbeansSocket) {
|
||||
CFRelease(netbeansSocket);
|
||||
netbeansSocket = NULL;
|
||||
}
|
||||
|
||||
if (netbeansRunLoopSource) {
|
||||
CFRunLoopSourceInvalidate(netbeansRunLoopSource);
|
||||
netbeansRunLoopSource = NULL;
|
||||
}
|
||||
|
||||
if (socket == -1)
|
||||
if (fd == -1)
|
||||
return;
|
||||
|
||||
// Tell CFRunLoop that we are interested in NetBeans socket input.
|
||||
netbeansSocket = CFSocketCreateWithNative(kCFAllocatorDefault,
|
||||
socket,
|
||||
kCFSocketReadCallBack,
|
||||
&netbeansReadCallback,
|
||||
NULL);
|
||||
netbeansRunLoopSource = CFSocketCreateRunLoopSource(NULL,
|
||||
netbeansSocket,
|
||||
0);
|
||||
CFRunLoopAddSource(CFRunLoopGetCurrent(),
|
||||
netbeansRunLoopSource,
|
||||
kCFRunLoopCommonModes);
|
||||
NSNumber *key = [NSNumber numberWithInt:idx];
|
||||
MMChannel *channel =
|
||||
[[[MMChannel alloc] initWithIndex:idx fileDescriptor:fd] autorelease];
|
||||
[channelDict setObject:channel forKey:key];
|
||||
}
|
||||
|
||||
- (void)removeChannel:(int)idx
|
||||
{
|
||||
NSNumber *key = [NSNumber numberWithInt:idx];
|
||||
[channelDict removeObjectForKey:key];
|
||||
}
|
||||
|
||||
#ifdef FEAT_BEVAL
|
||||
@@ -2075,10 +2056,6 @@ static void netbeansReadCallback(CFSocketRef s,
|
||||
[self handleOpenWithArguments:[NSDictionary dictionaryWithData:data]];
|
||||
} else if (FindReplaceMsgID == msgid) {
|
||||
[self handleFindReplace:[NSDictionary dictionaryWithData:data]];
|
||||
} else if (NetBeansMsgID == msgid) {
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
netbeans_read();
|
||||
#endif
|
||||
} else if (ZoomMsgID == msgid) {
|
||||
if (!data) return;
|
||||
const void *bytes = [data bytes];
|
||||
@@ -3435,3 +3412,51 @@ static id evalExprCocoa(NSString * expr, NSString ** errstr)
|
||||
}
|
||||
|
||||
@end // NSString (VimStrings)
|
||||
|
||||
|
||||
|
||||
@implementation MMChannel
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
CFRunLoopSourceInvalidate(runLoopSource);
|
||||
CFRelease(runLoopSource);
|
||||
CFRelease(socket);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
static void socketReadCallback(CFSocketRef s,
|
||||
CFSocketCallBackType callbackType,
|
||||
CFDataRef address,
|
||||
const void *data,
|
||||
void *info)
|
||||
{
|
||||
#ifdef FEAT_CHANNEL
|
||||
int idx = (int)(intptr_t)info;
|
||||
channel_read(idx);
|
||||
#endif
|
||||
}
|
||||
|
||||
- (id)initWithIndex:(int)idx fileDescriptor:(int)fd
|
||||
{
|
||||
self = [super init];
|
||||
if (!self) return nil;
|
||||
|
||||
// Tell CFRunLoop that we are interested in channel socket input.
|
||||
CFSocketContext ctx = {0, (void *)(intptr_t)idx, NULL, NULL, NULL};
|
||||
socket = CFSocketCreateWithNative(kCFAllocatorDefault,
|
||||
fd,
|
||||
kCFSocketReadCallBack,
|
||||
&socketReadCallback,
|
||||
&ctx);
|
||||
runLoopSource = CFSocketCreateRunLoopSource(NULL,
|
||||
socket,
|
||||
0);
|
||||
CFRunLoopAddSource(CFRunLoopGetCurrent(),
|
||||
runLoopSource,
|
||||
kCFRunLoopCommonModes);
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -191,7 +191,6 @@ enum {
|
||||
DeactivatedImMsgID,
|
||||
BrowseForFileMsgID,
|
||||
ShowDialogMsgID,
|
||||
NetBeansMsgID,
|
||||
SetMarkedTextMsgID,
|
||||
ZoomMsgID,
|
||||
SetWindowPositionMsgID,
|
||||
|
||||
@@ -90,7 +90,6 @@ char *MessageStrings[] =
|
||||
"DeactivatedImMsgID",
|
||||
"BrowseForFileMsgID",
|
||||
"ShowDialogMsgID",
|
||||
"NetBeansMsgID",
|
||||
"SetMarkedTextMsgID",
|
||||
"ZoomMsgID",
|
||||
"SetWindowPositionMsgID",
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
1DED78600C6DE43D0079945F /* vimrc in Copy Vim Runtime Files */ = {isa = PBXBuildFile; fileRef = 1DED785F0C6DE43D0079945F /* vimrc */; };
|
||||
1DFE25A50C527BC4003000F7 /* PSMTabBarControl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D493DB90C52533B00AB718C /* PSMTabBarControl.framework */; };
|
||||
52A364731C4A5789005757EC /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52A364721C4A5789005757EC /* Sparkle.framework */; };
|
||||
52A364761C4A57C1005757EC /* Sparkle.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 52A364721C4A5789005757EC /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
52B7ED9B1C4A4D6900AFFF15 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 52B7ED9A1C4A4D6900AFFF15 /* dsa_pub.pem */; };
|
||||
8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; };
|
||||
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
|
||||
@@ -115,7 +114,6 @@
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
52A364761C4A57C1005757EC /* Sparkle.framework in Copy Frameworks */,
|
||||
1D493DBA0C52534300AB718C /* PSMTabBarControl.framework in Copy Frameworks */,
|
||||
);
|
||||
name = "Copy Frameworks";
|
||||
@@ -589,7 +587,7 @@
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "OSX_MINOR_VERSION=`/usr/bin/sw_vers -productVersion|cut -f2 -d'.'`\nif [ $OSX_MINOR_VERSION -ge 8 ]; then\n xcodebuild -project qlstephen/QuickLookStephen.xcodeproj\n mkdir -p $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/QuickLook\n cp -pr qlstephen/build/Release/QLStephen.qlgenerator $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/QuickLook\nfi";
|
||||
shellScript = "OSX_MINOR_VERSION=`/usr/bin/sw_vers -productVersion|cut -f2 -d'.'`\nif [ $OSX_MINOR_VERSION -ge 8 ]; then\n cp -pr Sparkle.framework $BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH\n strip -S $BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/MacOS/Autoupdate || exit 1\n xcodebuild -project qlstephen/QuickLookStephen.xcodeproj\n mkdir -p $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/QuickLook\n cp -pr qlstephen/build/Release/QLStephen.qlgenerator $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/QuickLook\nfi";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
+9
-15
@@ -2239,18 +2239,19 @@ static int vimModMaskToEventModifierFlags(int mods)
|
||||
|
||||
|
||||
|
||||
// -- NetBeans Support ------------------------------------------------------
|
||||
// -- Channel Support ------------------------------------------------------
|
||||
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
|
||||
/* Set NetBeans socket to CFRunLoop */
|
||||
void
|
||||
gui_macvim_set_netbeans_socket(int socket)
|
||||
gui_macvim_add_channel(int idx, int fd)
|
||||
{
|
||||
[[MMBackend sharedInstance] setNetbeansSocket:socket];
|
||||
[[MMBackend sharedInstance] addChannel:idx fileDescriptor:fd];
|
||||
}
|
||||
|
||||
#endif // FEAT_NETBEANS_INTG
|
||||
void
|
||||
gui_macvim_remove_channel(int idx)
|
||||
{
|
||||
[[MMBackend sharedInstance] removeChannel:idx];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2309,13 +2310,6 @@ gui_mch_destroy_sign(void *sign)
|
||||
[imgName release];
|
||||
}
|
||||
|
||||
# ifdef FEAT_NETBEANS_INTG
|
||||
void
|
||||
netbeans_draw_multisign_indicator(int row)
|
||||
{
|
||||
}
|
||||
# endif // FEAT_NETBEANS_INTG
|
||||
|
||||
#endif // FEAT_SIGN_ICONS
|
||||
|
||||
|
||||
@@ -2328,7 +2322,7 @@ netbeans_draw_multisign_indicator(int row)
|
||||
gui_mch_create_beval_area(target, mesg, mesgCB, clientData)
|
||||
void *target;
|
||||
char_u *mesg;
|
||||
void (*mesgCB)__ARGS((BalloonEval *, int));
|
||||
void (*mesgCB)(BalloonEval *, int);
|
||||
void *clientData;
|
||||
{
|
||||
BalloonEval *beval;
|
||||
|
||||
@@ -72,6 +72,7 @@ EXE_dependencies = \
|
||||
getchar.obj \
|
||||
hardcopy.obj \
|
||||
hashtab.obj \
|
||||
json.obj \
|
||||
main.obj \
|
||||
mark.obj \
|
||||
memfile.obj \
|
||||
|
||||
+31
-1
@@ -86,9 +86,12 @@
|
||||
# (BIG for WIN32, SMALL for DOS16)
|
||||
# WINVER 0x0400 or 0x0500: minimum Win32 version to support (0x0400)
|
||||
# CSCOPE no or yes: include support for Cscope interface (yes)
|
||||
# NETBEANS no or yes: include support for Netbeans interface (yes if GUI
|
||||
# NETBEANS no or yes: include support for Netbeans interface; also
|
||||
# requires CHANNEL (yes if GUI
|
||||
# is yes)
|
||||
# NBDEBUG no or yes: include support for debugging Netbeans interface (no)
|
||||
# CHANNEL no or yes: include support for inter process communication (yes
|
||||
# if GUI is yes)
|
||||
# XPM define to path to XPM dir to get support for loading XPM images.
|
||||
|
||||
### BOR: root of the BC installation
|
||||
@@ -137,6 +140,11 @@ CSCOPE = yes
|
||||
NETBEANS = yes
|
||||
!endif
|
||||
|
||||
### CHANNEL: yes to enable inter process communication, no to disable it
|
||||
!if ("$(CHANNEL)"=="") && ("$(GUI)"=="yes")
|
||||
CHANNEL = yes
|
||||
!endif
|
||||
|
||||
### LUA: uncomment this line if you want lua support in vim
|
||||
# LUA=c:\lua
|
||||
|
||||
@@ -466,6 +474,7 @@ LINK2 = -aa
|
||||
RESFILE = vim.res
|
||||
!else
|
||||
!undef NETBEANS
|
||||
!undef CHANNEL
|
||||
!undef XPM
|
||||
!undef VIMDLL
|
||||
!if ("$(DEBUG)"=="yes")
|
||||
@@ -488,12 +497,21 @@ RESFILE = vim.res
|
||||
!endif
|
||||
|
||||
!if ("$(NETBEANS)"=="yes")
|
||||
!if ("$(CHANNEL)"!="yes")
|
||||
# cannot use Netbeans without CHANNEL
|
||||
NETBEANS = no
|
||||
!else
|
||||
DEFINES = $(DEFINES) -DFEAT_NETBEANS_INTG
|
||||
!if ("$(NBDEBUG)"=="yes")
|
||||
DEFINES = $(DEFINES) -DNBDEBUG
|
||||
NBDEBUG_DEP = nbdebug.h nbdebug.c
|
||||
!endif
|
||||
!endif
|
||||
!endif
|
||||
|
||||
!if ("$(CHANNEL)"=="yes")
|
||||
DEFINES = $(DEFINES) -DFEAT_CHANNEL
|
||||
!endif
|
||||
|
||||
!ifdef XPM
|
||||
!if ("$(GUI)"=="yes")
|
||||
@@ -598,6 +616,7 @@ vimobj = \
|
||||
$(OBJDIR)\getchar.obj \
|
||||
$(OBJDIR)\hardcopy.obj \
|
||||
$(OBJDIR)\hashtab.obj \
|
||||
$(OBJDIR)\json.obj \
|
||||
$(OBJDIR)\main.obj \
|
||||
$(OBJDIR)\mark.obj \
|
||||
$(OBJDIR)\memfile.obj \
|
||||
@@ -672,6 +691,11 @@ vimobj = $(vimobj) \
|
||||
$(OBJDIR)\netbeans.obj
|
||||
!endif
|
||||
|
||||
!if ("$(CHANNEL)"=="yes")
|
||||
vimobj = $(vimobj) \
|
||||
$(OBJDIR)\channel.obj
|
||||
!endif
|
||||
|
||||
!ifdef XPM
|
||||
vimobj = $(vimobj) \
|
||||
$(OBJDIR)\xpm_w32.obj
|
||||
@@ -747,6 +771,9 @@ MSG = $(MSG) CSCOPE
|
||||
!if ("$(NETBEANS)"=="yes")
|
||||
MSG = $(MSG) NETBEANS
|
||||
!endif
|
||||
!if ("$(CHANNEL)"=="yes")
|
||||
MSG = $(MSG) CHANNEL
|
||||
!endif
|
||||
!ifdef XPM
|
||||
MSG = $(MSG) XPM
|
||||
!endif
|
||||
@@ -1028,6 +1055,9 @@ $(OBJDIR)\xpm_w32.obj: xpm_w32.c xpm.lib
|
||||
$(OBJDIR)\netbeans.obj: netbeans.c $(NBDEBUG_DEP)
|
||||
$(CC) $(CCARG) $(CC1) $(CC2)$@ netbeans.c
|
||||
|
||||
$(OBJDIR)\channel.obj: channel.c
|
||||
$(CC) $(CCARG) $(CC1) $(CC2)$@ channel.c
|
||||
|
||||
$(OBJDIR)\vim.res: vim.rc version.h tools.bmp tearoff.bmp \
|
||||
vim.ico vim_error.ico vim_alert.ico vim_info.ico vim_quest.ico
|
||||
$(BRC) -fo$(OBJDIR)\vim.res -i $(BOR)\include -w32 -r vim.rc @&&|
|
||||
|
||||
+26
-2
@@ -39,7 +39,7 @@ GUI=yes
|
||||
DIRECTX=no
|
||||
# FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE]
|
||||
# Set to TINY to make minimal version (few features).
|
||||
FEATURES=BIG
|
||||
FEATURES=HUGE
|
||||
# Set to one of i386, i486, i586, i686 as the minimum target processor.
|
||||
# For amd64/x64 architecture set ARCH=x86-64 .
|
||||
ARCH=i386
|
||||
@@ -64,8 +64,10 @@ WINVER = 0x0500
|
||||
endif
|
||||
# Set to yes to enable Cscope support.
|
||||
CSCOPE=yes
|
||||
# Set to yes to enable Netbeans support.
|
||||
# Set to yes to enable Netbeans support (requires CHANNEL).
|
||||
NETBEANS=$(GUI)
|
||||
# Set to yes to enable inter process communication.
|
||||
CHANNEL=$(GUI)
|
||||
|
||||
|
||||
# Link against the shared version of libstdc++ by default. Set
|
||||
@@ -526,6 +528,10 @@ endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CHANNEL),yes)
|
||||
DEFINES += -DFEAT_CHANNEL
|
||||
endif
|
||||
|
||||
# DirectWrite (DirectX)
|
||||
ifeq ($(DIRECTX),yes)
|
||||
# Only allow DirectWrite for a GUI build.
|
||||
@@ -601,6 +607,7 @@ OBJ = \
|
||||
$(OUTDIR)/getchar.o \
|
||||
$(OUTDIR)/hardcopy.o \
|
||||
$(OUTDIR)/hashtab.o \
|
||||
$(OUTDIR)/json.o \
|
||||
$(OUTDIR)/main.o \
|
||||
$(OUTDIR)/mark.o \
|
||||
$(OUTDIR)/memfile.o \
|
||||
@@ -666,13 +673,27 @@ endif
|
||||
ifeq ($(CSCOPE),yes)
|
||||
OBJ += $(OUTDIR)/if_cscope.o
|
||||
endif
|
||||
|
||||
ifeq ($(NETBEANS),yes)
|
||||
ifneq ($(CHANNEL),yes)
|
||||
# Cannot use Netbeans without CHANNEL
|
||||
NETBEANS=no
|
||||
else
|
||||
# Only allow NETBEANS for a GUI build.
|
||||
ifeq (yes, $(GUI))
|
||||
OBJ += $(OUTDIR)/netbeans.o
|
||||
LIB += -lwsock32
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CHANNEL),yes)
|
||||
OBJ += $(OUTDIR)/channel.o
|
||||
ifneq ($(NETBEANS),yes)
|
||||
LIB += -lwsock32
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(DIRECTX),yes)
|
||||
# Only allow DIRECTX for a GUI build.
|
||||
ifeq (yes, $(GUI))
|
||||
@@ -865,6 +886,9 @@ if_perl.c: if_perl.xs typemap
|
||||
$(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)
|
||||
$(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
|
||||
|
||||
$(OUTDIR)/channel.o: channel.c $(INCL)
|
||||
$(CC) -c $(CFLAGS) channel.c -o $(OUTDIR)/channel.o
|
||||
|
||||
$(OUTDIR)/regexp.o: regexp.c regexp_nfa.c $(INCL)
|
||||
$(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ SRC = \
|
||||
getchar.c \
|
||||
hardcopy.c \
|
||||
hashtab.c \
|
||||
json.c \
|
||||
main.c \
|
||||
mark.c \
|
||||
memfile.c \
|
||||
@@ -93,6 +94,7 @@ OBJ = o/blowfish.o \
|
||||
o/getchar.o \
|
||||
o/hardcopy.o \
|
||||
o/hashtab.o \
|
||||
o/json.o \
|
||||
o/main.o \
|
||||
o/mark.o \
|
||||
o/memfile.o \
|
||||
@@ -179,6 +181,8 @@ o/hardcopy.o: hardcopy.c $(SYMS)
|
||||
|
||||
o/hashtab.o: hashtab.c $(SYMS)
|
||||
|
||||
o/json.o: json.c $(SYMS)
|
||||
|
||||
o/main.o: main.c $(SYMS)
|
||||
|
||||
o/mark.o: mark.c $(SYMS)
|
||||
|
||||
@@ -229,6 +229,7 @@ LINK32_OBJS= \
|
||||
"$(INTDIR)/getchar.obj" \
|
||||
"$(INTDIR)/hardcopy.obj" \
|
||||
"$(INTDIR)/hashtab.obj" \
|
||||
"$(INTDIR)/json.obj" \
|
||||
"$(INTDIR)/main.obj" \
|
||||
"$(INTDIR)/mark.obj" \
|
||||
"$(INTDIR)/mbyte.obj" \
|
||||
@@ -555,6 +556,10 @@ SOURCE=.\if_ole.idl
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\json.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\main.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
@@ -55,6 +55,7 @@ SRC = blowfish.c \
|
||||
getchar.c \
|
||||
hardcopy.c \
|
||||
hashtab.c \
|
||||
json.c \
|
||||
main.c \
|
||||
mark.c \
|
||||
memfile.c \
|
||||
@@ -105,6 +106,7 @@ OBJ = obj/blowfish.o \
|
||||
obj/getchar.o \
|
||||
obj/hardcopy.o \
|
||||
obj/hashtab.o \
|
||||
obj/json.o \
|
||||
obj/main.o \
|
||||
obj/mark.o \
|
||||
obj/memfile.o \
|
||||
@@ -153,6 +155,7 @@ PRO = proto/blowfish.pro \
|
||||
proto/getchar.pro \
|
||||
proto/hardcopy.pro \
|
||||
proto/hashtab.pro \
|
||||
proto/json.pro \
|
||||
proto/main.pro \
|
||||
proto/mark.pro \
|
||||
proto/memfile.pro \
|
||||
@@ -284,6 +287,9 @@ obj/hardcopy.o: hardcopy.c
|
||||
obj/hashtab.o: hashtab.c
|
||||
$(CCSYM) $@ hashtab.c
|
||||
|
||||
obj/json.o: json.c
|
||||
$(CCSYM) $@ json.c
|
||||
|
||||
# Don't use $(SYMS) here, because main.c defines EXTERN
|
||||
obj/main.o: main.c option.h globals.h
|
||||
$(CCNOSYM) $@ main.c
|
||||
|
||||
@@ -43,6 +43,7 @@ SRC = blowfish.c \
|
||||
getchar.c \
|
||||
hardcopy.c \
|
||||
hashtab.c \
|
||||
json.c \
|
||||
main.c \
|
||||
mark.c \
|
||||
mbyte.c \
|
||||
|
||||
+34
-11
@@ -20,7 +20,7 @@
|
||||
#
|
||||
# !!!! After changing features do "nmake clean" first !!!!
|
||||
#
|
||||
# Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is BIG)
|
||||
# Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is HUGE)
|
||||
#
|
||||
# GUI interface: GUI=yes (default is no)
|
||||
#
|
||||
@@ -96,6 +96,13 @@
|
||||
# PostScript printing: POSTSCRIPT=yes (default is no)
|
||||
#
|
||||
# Netbeans Support: NETBEANS=[yes or no] (default is yes if GUI is yes)
|
||||
# Requires CHANNEL.
|
||||
#
|
||||
# Netbeans Debugging Support: NBDEBUG=[yes or no] (should be no, yes
|
||||
# doesn't work)
|
||||
#
|
||||
# Inter process communication: CHANNEL=[yes or no] (default is yes if GUI
|
||||
# is yes)
|
||||
#
|
||||
# XPM Image Support: XPM=[path to XPM directory]
|
||||
# Default is "xpm", using the files included in the distribution.
|
||||
@@ -114,9 +121,6 @@
|
||||
# yes: Write a normal mapfile.
|
||||
# lines: Write a mapfile with line numbers (only for VC6 and later)
|
||||
#
|
||||
# Netbeans Debugging Support: NBDEBUG=[yes or no] (should be no, yes
|
||||
# doesn't work)
|
||||
#
|
||||
# Static Code Analysis: ANALYZE=yes (works with VS2012 only)
|
||||
#
|
||||
# You can combine any of these interfaces
|
||||
@@ -290,9 +294,13 @@ CSCOPE_DEFS = -DFEAT_CSCOPE
|
||||
NETBEANS = $(GUI)
|
||||
!endif
|
||||
|
||||
# Only allow NETBEANS and XPM for a GUI build.
|
||||
!ifndef CHANNEL
|
||||
CHANNEL = $(GUI)
|
||||
!endif
|
||||
|
||||
# Only allow NETBEANS and XPM for a GUI build and CHANNEL.
|
||||
!if "$(GUI)" == "yes"
|
||||
!if "$(NETBEANS)" == "yes"
|
||||
!if "$(NETBEANS)" == "yes" && "$(CHANNEL)" == "yes"
|
||||
# NETBEANS - Include support for Netbeans integration
|
||||
NETBEANS_PRO = proto/netbeans.pro
|
||||
NETBEANS_OBJ = $(OBJDIR)/netbeans.obj
|
||||
@@ -333,6 +341,14 @@ XPM_INC = -I $(XPM)\include -I $(XPM)\..\include
|
||||
!endif
|
||||
!endif
|
||||
|
||||
!if "$(CHANNEL)" == "yes"
|
||||
CHANNEL_PRO = proto/channel.pro
|
||||
CHANNEL_OBJ = $(OBJDIR)/channel.obj
|
||||
CHANNEL_DEFS = -DFEAT_CHANNEL
|
||||
|
||||
NETBEANS_LIB = WSock32.lib
|
||||
!endif
|
||||
|
||||
# Set which version of the CRT to use
|
||||
!if defined(USE_MSVCRT)
|
||||
# CVARS = $(cvarsdll)
|
||||
@@ -365,7 +381,7 @@ WINVER = 0x0400
|
||||
#VIMRUNTIMEDIR = somewhere
|
||||
|
||||
CFLAGS = -c /W3 /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \
|
||||
$(SNIFF_DEFS) $(CSCOPE_DEFS) $(NETBEANS_DEFS) \
|
||||
$(SNIFF_DEFS) $(CSCOPE_DEFS) $(NETBEANS_DEFS) $(CHANNEL_DEFS) \
|
||||
$(NBDEBUG_DEFS) $(XPM_DEFS) \
|
||||
$(DEFINES) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
|
||||
/Fo$(OUTDIR)/
|
||||
@@ -536,6 +552,7 @@ OBJ = \
|
||||
$(OUTDIR)\getchar.obj \
|
||||
$(OUTDIR)\hardcopy.obj \
|
||||
$(OUTDIR)\hashtab.obj \
|
||||
$(OUTDIR)\json.obj \
|
||||
$(OUTDIR)\main.obj \
|
||||
$(OUTDIR)\mark.obj \
|
||||
$(OUTDIR)\mbyte.obj \
|
||||
@@ -950,7 +967,7 @@ CFLAGS = $(CFLAGS) -DMSWINPS
|
||||
# FEATURES: TINY, SMALL, NORMAL, BIG or HUGE
|
||||
#
|
||||
!if "$(FEATURES)"==""
|
||||
FEATURES = BIG
|
||||
FEATURES = HUGE
|
||||
!endif
|
||||
CFLAGS = $(CFLAGS) -DFEAT_$(FEATURES)
|
||||
|
||||
@@ -1004,12 +1021,12 @@ all: $(VIM).exe \
|
||||
|
||||
$(VIM).exe: $(OUTDIR) $(OBJ) $(GUI_OBJ) $(OLE_OBJ) $(OLE_IDL) $(MZSCHEME_OBJ) \
|
||||
$(LUA_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(PYTHON3_OBJ) $(RUBY_OBJ) $(TCL_OBJ) \
|
||||
$(SNIFF_OBJ) $(CSCOPE_OBJ) $(NETBEANS_OBJ) $(XPM_OBJ) \
|
||||
$(SNIFF_OBJ) $(CSCOPE_OBJ) $(NETBEANS_OBJ) $(CHANNEL_OBJ) $(XPM_OBJ) \
|
||||
version.c version.h
|
||||
$(CC) $(CFLAGS) version.c
|
||||
$(link) $(LINKARGS1) -out:$(VIM).exe $(OBJ) $(GUI_OBJ) $(OLE_OBJ) \
|
||||
$(LUA_OBJ) $(MZSCHEME_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(PYTHON3_OBJ) $(RUBY_OBJ) \
|
||||
$(TCL_OBJ) $(SNIFF_OBJ) $(CSCOPE_OBJ) $(NETBEANS_OBJ) \
|
||||
$(TCL_OBJ) $(SNIFF_OBJ) $(CSCOPE_OBJ) $(NETBEANS_OBJ) $(CHANNEL_OBJ) \
|
||||
$(XPM_OBJ) $(OUTDIR)\version.obj $(LINKARGS2)
|
||||
if exist $(VIM).exe.manifest mt.exe -nologo -manifest $(VIM).exe.manifest -updateresource:$(VIM).exe;1
|
||||
|
||||
@@ -1202,6 +1219,8 @@ $(OUTDIR)/if_sniff.obj: $(OUTDIR) if_sniff.c $(INCL)
|
||||
$(OUTDIR)/if_tcl.obj: $(OUTDIR) if_tcl.c $(INCL)
|
||||
$(CC) $(CFLAGS) $(TCL_INC) if_tcl.c
|
||||
|
||||
$(OUTDIR)/json.obj: $(OUTDIR) json.c $(INCL)
|
||||
|
||||
$(OUTDIR)/main.obj: $(OUTDIR) main.c $(INCL)
|
||||
|
||||
$(OUTDIR)/mark.obj: $(OUTDIR) mark.c $(INCL)
|
||||
@@ -1224,6 +1243,8 @@ $(OUTDIR)/mbyte.obj: $(OUTDIR) mbyte.c $(INCL)
|
||||
|
||||
$(OUTDIR)/netbeans.obj: $(OUTDIR) netbeans.c $(NBDEBUG_SRC) $(INCL)
|
||||
|
||||
$(OUTDIR)/channel.obj: $(OUTDIR) channel.c $(INCL)
|
||||
|
||||
$(OUTDIR)/normal.obj: $(OUTDIR) normal.c $(INCL)
|
||||
|
||||
$(OUTDIR)/option.obj: $(OUTDIR) option.c $(INCL)
|
||||
@@ -1329,6 +1350,7 @@ proto.h: \
|
||||
proto/getchar.pro \
|
||||
proto/hardcopy.pro \
|
||||
proto/hashtab.pro \
|
||||
proto/json.pro \
|
||||
proto/main.pro \
|
||||
proto/mark.pro \
|
||||
proto/memfile.pro \
|
||||
@@ -1358,7 +1380,8 @@ proto.h: \
|
||||
proto/ui.pro \
|
||||
proto/undo.pro \
|
||||
proto/window.pro \
|
||||
$(NETBEANS_PRO)
|
||||
$(NETBEANS_PRO) \
|
||||
$(CHANNEL_PRO)
|
||||
|
||||
.SUFFIXES: .cod .i
|
||||
|
||||
|
||||
@@ -108,6 +108,7 @@ SRC = \
|
||||
getchar.c \
|
||||
hardcopy.c \
|
||||
hashtab.c \
|
||||
json.c \
|
||||
main.c \
|
||||
mark.c \
|
||||
memfile.c \
|
||||
@@ -157,6 +158,7 @@ OBJ = \
|
||||
getchar.o \
|
||||
hardcopy.o \
|
||||
hashtab.o \
|
||||
json.o \
|
||||
main.o \
|
||||
mark.o \
|
||||
memfile.o \
|
||||
@@ -206,6 +208,7 @@ PRO = \
|
||||
proto/getchar.pro \
|
||||
proto/hardcopy.pro \
|
||||
proto/hashtab.pro \
|
||||
proto/json.pro \
|
||||
proto/main.pro \
|
||||
proto/mark.pro \
|
||||
proto/memfile.pro \
|
||||
@@ -328,6 +331,8 @@ hardcopy.o: hardcopy.c
|
||||
proto/hardcopy.pro: hardcopy.c
|
||||
hashtab.o: hashtab.c
|
||||
proto/hashtab.pro: hashtab.c
|
||||
json.o: json.c
|
||||
proto/json.pro: json.c
|
||||
main.o: main.c
|
||||
proto/main.pro: main.c
|
||||
mark.o: mark.c
|
||||
|
||||
+7
-3
@@ -2,7 +2,7 @@
|
||||
# Makefile for Vim on OpenVMS
|
||||
#
|
||||
# Maintainer: Zoltan Arpadffy <arpadffy@polarhome.com>
|
||||
# Last change: 2014 Aug 10
|
||||
# Last change: 2016 Jan 22
|
||||
#
|
||||
# This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64
|
||||
# with MMS and MMK
|
||||
@@ -311,7 +311,7 @@ ALL_LIBS = $(LIBS) $(GUI_LIB_DIR) $(GUI_LIB) \
|
||||
|
||||
SRC = blowfish.c buffer.c charset.c crypt.c, crypt_zip.c diff.c digraph.c edit.c eval.c ex_cmds.c ex_cmds2.c \
|
||||
ex_docmd.c ex_eval.c ex_getln.c if_xcmdsrv.c fileio.c fold.c getchar.c \
|
||||
hardcopy.c hashtab.c main.c mark.c menu.c mbyte.c memfile.c memline.c message.c misc1.c \
|
||||
hardcopy.c hashtab.c json.c main.c mark.c menu.c mbyte.c memfile.c memline.c message.c misc1.c \
|
||||
misc2.c move.c normal.c ops.c option.c popupmnu.c quickfix.c regexp.c search.c sha256.c\
|
||||
spell.c syntax.c tag.c term.c termlib.c ui.c undo.c version.c screen.c \
|
||||
window.c os_unix.c os_vms.c pathdef.c \
|
||||
@@ -320,7 +320,7 @@ SRC = blowfish.c buffer.c charset.c crypt.c, crypt_zip.c diff.c digraph.c edit.c
|
||||
|
||||
OBJ = blowfish.obj buffer.obj charset.obj crypt.obj, crypt_zip.obj diff.obj digraph.obj edit.obj eval.obj \
|
||||
ex_cmds.obj ex_cmds2.obj ex_docmd.obj ex_eval.obj ex_getln.obj \
|
||||
if_xcmdsrv.obj fileio.obj fold.obj getchar.obj hardcopy.obj hashtab.obj main.obj mark.obj \
|
||||
if_xcmdsrv.obj fileio.obj fold.obj getchar.obj hardcopy.obj hashtab.obj json.obj main.obj mark.obj \
|
||||
menu.obj memfile.obj memline.obj message.obj misc1.obj misc2.obj \
|
||||
move.obj mbyte.obj normal.obj ops.obj option.obj popupmnu.obj quickfix.obj \
|
||||
regexp.obj search.obj sha256.obj spell.obj syntax.obj tag.obj term.obj termlib.obj \
|
||||
@@ -572,6 +572,10 @@ if_mzsch.obj : if_mzsch.c vim.h [.auto]config.h feature.h os_unix.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h [.proto]gui_beval.pro ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h if_mzsch.h
|
||||
json.obj : json.c vim.h [.auto]config.h feature.h os_unix.h \
|
||||
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
|
||||
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h version.h
|
||||
main.obj : main.c vim.h [.auto]config.h feature.h os_unix.h \
|
||||
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
|
||||
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
|
||||
|
||||
+181
-141
@@ -462,6 +462,10 @@ CClink = $(CC)
|
||||
# Uncomment this when you do not want the netbeans interface.
|
||||
#CONF_OPT_NETBEANS = --disable-netbeans
|
||||
|
||||
# CHANNEL - inter process communication. Same conditions as NetBeans.
|
||||
# Uncomment this when you do not want inter process communication.
|
||||
#CONF_OPT_CHANNEL = --disable-channel
|
||||
|
||||
# SNIFF - Include support for SNiFF+.
|
||||
#CONF_OPT_SNIFF = --enable-sniff
|
||||
|
||||
@@ -506,7 +510,7 @@ CClink = $(CC)
|
||||
|
||||
# FEATURES - For creating Vim with more or less features
|
||||
# Uncomment one of these lines when you want to include few to many features.
|
||||
# The default is "normal".
|
||||
# The default is "huge" for most systems.
|
||||
#CONF_OPT_FEAT = --with-features=tiny
|
||||
#CONF_OPT_FEAT = --with-features=small
|
||||
#CONF_OPT_FEAT = --with-features=normal
|
||||
@@ -1504,6 +1508,7 @@ BASIC_SRC = \
|
||||
hashtab.c \
|
||||
if_cscope.c \
|
||||
if_xcmdsrv.c \
|
||||
json.c \
|
||||
main.c \
|
||||
mark.c \
|
||||
memfile.c \
|
||||
@@ -1552,7 +1557,8 @@ TAGS_SRC = *.c *.cpp if_perl.xs
|
||||
|
||||
EXTRA_SRC = hangulin.c if_lua.c if_mzsch.c auto/if_perl.c if_perlsfio.c \
|
||||
if_python.c if_python3.c if_tcl.c if_ruby.c if_sniff.c \
|
||||
gui_beval.c workshop.c wsdebug.c integration.c netbeans.c \
|
||||
gui_beval.c workshop.c wsdebug.c integration.c \
|
||||
netbeans.c channel.c \
|
||||
$(GRESOURCE_SRC)
|
||||
|
||||
# Unittest files
|
||||
@@ -1568,8 +1574,10 @@ ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(UNITTEST_SRC) $(EXTRA_SRC)
|
||||
# Which files to check with lint. Select one of these three lines. ALL_SRC
|
||||
# checks more, but may not work well for checking a GUI that wasn't configured.
|
||||
# The perl sources also don't work well with lint.
|
||||
LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(PYTHON_SRC) $(PYTHON3_SRC) $(TCL_SRC) \
|
||||
$(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) $(NETBEANS_SRC)
|
||||
LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) \
|
||||
$(PYTHON_SRC) $(PYTHON3_SRC) $(TCL_SRC) \
|
||||
$(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) \
|
||||
$(NETBEANS_SRC) $(CHANNEL_SRC)
|
||||
#LINT_SRC = $(SRC)
|
||||
#LINT_SRC = $(ALL_SRC)
|
||||
#LINT_SRC = $(BASIC_SRC)
|
||||
@@ -1597,6 +1605,7 @@ OBJ_COMMON = \
|
||||
$(HANGULIN_OBJ) \
|
||||
objects/if_cscope.o \
|
||||
objects/if_xcmdsrv.o \
|
||||
objects/json.o \
|
||||
objects/mark.o \
|
||||
objects/memline.o \
|
||||
objects/menu.o \
|
||||
@@ -1636,6 +1645,7 @@ OBJ_COMMON = \
|
||||
$(OS_EXTRA_OBJ) \
|
||||
$(WORKSHOP_OBJ) \
|
||||
$(NETBEANS_OBJ) \
|
||||
$(CHANNEL_OBJ) \
|
||||
$(WSDEBUG_OBJ)
|
||||
|
||||
OBJ = $(OBJ_COMMON) \
|
||||
@@ -1667,10 +1677,12 @@ PRO_AUTO = \
|
||||
hashtab.pro \
|
||||
hangulin.pro \
|
||||
if_cscope.pro \
|
||||
if_xcmdsrv.pro \
|
||||
if_lua.pro \
|
||||
if_python.pro \
|
||||
if_python3.pro \
|
||||
if_ruby.pro \
|
||||
if_xcmdsrv.pro \
|
||||
json.pro \
|
||||
main.pro \
|
||||
mark.pro \
|
||||
memfile.pro \
|
||||
@@ -1684,8 +1696,10 @@ PRO_AUTO = \
|
||||
normal.pro \
|
||||
ops.pro \
|
||||
option.pro \
|
||||
os_mac_conv.pro \
|
||||
os_unix.pro \
|
||||
popupmnu.pro \
|
||||
pty.pro \
|
||||
quickfix.pro \
|
||||
regexp.pro \
|
||||
screen.pro \
|
||||
@@ -1703,6 +1717,7 @@ PRO_AUTO = \
|
||||
gui_beval.pro \
|
||||
workshop.pro \
|
||||
netbeans.pro \
|
||||
channel.pro \
|
||||
$(ALL_GUI_PRO) \
|
||||
$(TCL_PRO)
|
||||
|
||||
@@ -1745,7 +1760,8 @@ config auto/config.mk: auto/configure config.mk.in config.h.in
|
||||
$(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
|
||||
$(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
|
||||
$(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \
|
||||
$(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
|
||||
$(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
|
||||
$(CONF_OPT_CHANNEL) \
|
||||
$(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \
|
||||
$(CONF_OPT_LUA) $(CONF_OPT_LUA_PREFIX) \
|
||||
$(CONF_OPT_SYSMOUSE); \
|
||||
@@ -2001,8 +2017,11 @@ test_arglist \
|
||||
test_cursor_func \
|
||||
test_delete \
|
||||
test_expand \
|
||||
test_glob2regpat \
|
||||
test_hardcopy \
|
||||
test_increment \
|
||||
test_json \
|
||||
test_langmap \
|
||||
test_lispwords \
|
||||
test_menu \
|
||||
test_perl \
|
||||
@@ -2010,6 +2029,7 @@ test_arglist \
|
||||
test_searchpos \
|
||||
test_set \
|
||||
test_sort \
|
||||
test_syntax \
|
||||
test_undolevels \
|
||||
test_unlet \
|
||||
test_viminfo \
|
||||
@@ -2626,9 +2646,24 @@ auto/pathdef.c: Makefile auto/config.mk
|
||||
-@echo '";' >> $@
|
||||
-@sh $(srcdir)/pathdef.sh
|
||||
|
||||
auto/gui_gtk_gresources.c: gui_gtk_res.xml
|
||||
GUI_GTK_RES_INPUTS = \
|
||||
../pixmaps/stock_vim_build_tags.png \
|
||||
../pixmaps/stock_vim_find_help.png \
|
||||
../pixmaps/stock_vim_save_all.png \
|
||||
../pixmaps/stock_vim_session_load.png \
|
||||
../pixmaps/stock_vim_session_new.png \
|
||||
../pixmaps/stock_vim_session_save.png \
|
||||
../pixmaps/stock_vim_shell.png \
|
||||
../pixmaps/stock_vim_window_maximize.png \
|
||||
../pixmaps/stock_vim_window_maximize_width.png \
|
||||
../pixmaps/stock_vim_window_minimize.png \
|
||||
../pixmaps/stock_vim_window_minimize_width.png \
|
||||
../pixmaps/stock_vim_window_split.png \
|
||||
../pixmaps/stock_vim_window_split_vertical.png
|
||||
|
||||
auto/gui_gtk_gresources.c: gui_gtk_res.xml $(GUI_GTK_RES_INPUTS)
|
||||
$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=../pixmaps --generate --c-name=gui_gtk --manual-register $<
|
||||
auto/gui_gtk_gresources.h: gui_gtk_res.xml
|
||||
auto/gui_gtk_gresources.h: gui_gtk_res.xml $(GUI_GTK_RES_INPUTS)
|
||||
$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=../pixmaps --generate --c-name=gui_gtk --manual-register $<
|
||||
|
||||
# All the object files are put in the "objects" directory. Since not all make
|
||||
@@ -2796,6 +2831,9 @@ objects/if_tcl.o: if_tcl.c
|
||||
objects/integration.o: integration.c
|
||||
$(CCC) -o $@ integration.c
|
||||
|
||||
objects/json.o: json.c
|
||||
$(CCC) -o $@ json.c
|
||||
|
||||
objects/main.o: main.c
|
||||
$(CCC) -o $@ main.c
|
||||
|
||||
@@ -2913,6 +2951,9 @@ objects/wsdebug.o: wsdebug.c
|
||||
objects/netbeans.o: netbeans.c
|
||||
$(CCC) -o $@ netbeans.c
|
||||
|
||||
objects/channel.o: channel.c
|
||||
$(CCC) -o $@ channel.c
|
||||
|
||||
Makefile:
|
||||
@echo The name of the makefile MUST be "Makefile" (with capital M)!!!!
|
||||
|
||||
@@ -3037,225 +3078,219 @@ macvimclean:
|
||||
### Dependencies:
|
||||
objects/blowfish.o: blowfish.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/buffer.o: buffer.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h version.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h version.h
|
||||
objects/charset.o: charset.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/crypt.o: crypt.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/crypt_zip.o: crypt_zip.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/diff.o: diff.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/digraph.o: digraph.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/edit.o: edit.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/eval.o: eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h version.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h version.h
|
||||
objects/ex_cmds.o: ex_cmds.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h version.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h version.h
|
||||
objects/ex_cmds2.o: ex_cmds2.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h version.h
|
||||
objects/ex_docmd.o: ex_docmd.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/ex_eval.o: ex_eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/ex_getln.o: ex_getln.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/fileio.o: fileio.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/fold.o: fold.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/getchar.o: getchar.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/hardcopy.o: hardcopy.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h version.h
|
||||
objects/hashtab.o: hashtab.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/if_cscope.o: if_cscope.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h if_cscope.h
|
||||
objects/if_xcmdsrv.o: if_xcmdsrv.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h version.h
|
||||
objects/json.o: json.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/main.o: main.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h farsi.c arabic.c
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h farsi.c arabic.c
|
||||
objects/mark.o: mark.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/memfile.o: memfile.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/memline.o: memline.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/menu.o: menu.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/message.o: message.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/misc1.o: misc1.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h version.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h version.h
|
||||
objects/misc2.o: misc2.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/move.o: move.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/mbyte.o: mbyte.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/normal.o: normal.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/ops.o: ops.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
|
||||
keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
|
||||
proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
|
||||
proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h farsi.h arabic.h
|
||||
objects/option.o: option.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h if_mzsch.h os_unixx.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h os_unixx.h
|
||||
objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/popupmnu.o: popupmnu.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/quickfix.o: quickfix.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/regexp.o: regexp.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h regexp_nfa.c
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h regexp_nfa.c
|
||||
objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/search.o: search.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/sha256.o: sha256.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/spell.o: spell.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/syntax.o: syntax.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/tag.o: tag.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
|
||||
keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
|
||||
proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
|
||||
proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h farsi.h arabic.h
|
||||
objects/term.o: term.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/ui.o: ui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
|
||||
keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
|
||||
proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
|
||||
proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h farsi.h arabic.h
|
||||
objects/undo.o: undo.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/version.o: version.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h version.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h version.h
|
||||
objects/window.o: window.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/gui.o: gui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
|
||||
keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
|
||||
proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
|
||||
proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h farsi.h arabic.h
|
||||
objects/gui_gtk.o: gui_gtk.c gui_gtk_f.h vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h ../pixmaps/stock_icons.h
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/gui_gtk_f.o: gui_gtk_f.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h gui_gtk_f.h
|
||||
objects/gui_gtk_gresources.o: auto/gui_gtk_gresources.c gui_gtk_res.xml \
|
||||
../pixmaps/stock_vim_build_tags.png ../pixmaps/stock_vim_find_help.png \
|
||||
../pixmaps/stock_vim_save_all.png ../pixmaps/stock_vim_session_load.png \
|
||||
../pixmaps/stock_vim_session_new.png ../pixmaps/stock_vim_session_save.png \
|
||||
../pixmaps/stock_vim_shell.png ../pixmaps/stock_vim_window_maximize.png \
|
||||
../pixmaps/stock_vim_window_maximize_width.png \
|
||||
../pixmaps/stock_vim_window_minimize.png \
|
||||
../pixmaps/stock_vim_window_minimize_width.png \
|
||||
../pixmaps/stock_vim_window_split.png \
|
||||
../pixmaps/stock_vim_window_split_vertical.png
|
||||
objects/gui_motif.o: gui_motif.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h gui_xmebw.h ../pixmaps/alert.xpm \
|
||||
../pixmaps/error.xpm ../pixmaps/generic.xpm ../pixmaps/info.xpm \
|
||||
../pixmaps/quest.xpm gui_x11_pm.h ../pixmaps/tb_new.xpm \
|
||||
@@ -3276,15 +3311,15 @@ objects/gui_motif.o: gui_motif.c vim.h auto/config.h feature.h os_unix.h \
|
||||
../pixmaps/tb_minwidth.xpm
|
||||
objects/gui_xmdlg.o: gui_xmdlg.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/gui_xmebw.o: gui_xmebw.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h gui_xmebwp.h gui_xmebw.h
|
||||
objects/gui_athena.o: gui_athena.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h gui_at_sb.h gui_x11_pm.h \
|
||||
../pixmaps/tb_new.xpm ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm \
|
||||
../pixmaps/tb_save.xpm ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm \
|
||||
@@ -3303,83 +3338,88 @@ objects/gui_athena.o: gui_athena.c vim.h auto/config.h feature.h os_unix.h \
|
||||
../pixmaps/tb_minwidth.xpm
|
||||
objects/gui_gtk_x11.o: gui_gtk_x11.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h gui_gtk_f.h ../runtime/vim32x32.xpm \
|
||||
../runtime/vim16x16.xpm ../runtime/vim48x48.xpm $(GRESOURCE_HDR)
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h auto/gui_gtk_gresources.h gui_gtk_f.h \
|
||||
../runtime/vim32x32.xpm ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm
|
||||
objects/gui_x11.o: gui_x11.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm \
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm \
|
||||
../runtime/vim48x48.xpm
|
||||
objects/gui_at_sb.o: gui_at_sb.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h gui_at_sb.h
|
||||
objects/gui_at_fs.o: gui_at_fs.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h gui_at_sb.h
|
||||
objects/pty.o: pty.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
|
||||
keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
|
||||
proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
|
||||
proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h farsi.h arabic.h
|
||||
objects/memfile_test.o: memfile_test.c main.c vim.h auto/config.h feature.h \
|
||||
os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h \
|
||||
structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h \
|
||||
proto.h globals.h farsi.h arabic.h farsi.c arabic.c memfile.c
|
||||
structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h \
|
||||
ex_cmds.h proto.h globals.h farsi.h arabic.h farsi.c arabic.c memfile.c
|
||||
objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/if_lua.o: if_lua.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h if_mzsch.h mzscheme_base.c
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h if_mzsch.h
|
||||
objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/if_perlsfio.o: if_perlsfio.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/if_python.o: if_python.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h if_py_both.h
|
||||
objects/if_python3.o: if_python3.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h if_py_both.h
|
||||
objects/if_tcl.o: if_tcl.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/if_ruby.o: if_ruby.c auto/config.h vim.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
|
||||
arabic.h version.h
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h version.h
|
||||
objects/if_sniff.o: if_sniff.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h os_unixx.h
|
||||
objects/gui_beval.o: gui_beval.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h
|
||||
objects/workshop.o: workshop.c auto/config.h integration.h vim.h feature.h \
|
||||
os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h \
|
||||
structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h \
|
||||
proto.h globals.h farsi.h arabic.h version.h workshop.h
|
||||
structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h \
|
||||
ex_cmds.h proto.h globals.h farsi.h arabic.h version.h workshop.h
|
||||
objects/wsdebug.o: wsdebug.c
|
||||
objects/integration.o: integration.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h integration.h
|
||||
objects/netbeans.o: netbeans.c vim.h auto/config.h feature.h os_unix.h \
|
||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
|
||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
|
||||
globals.h farsi.h arabic.h version.h
|
||||
objects/channel.o: channel.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
|
||||
farsi.h arabic.h
|
||||
objects/gui_gtk_gresources.o: auto/gui_gtk_gresources.c
|
||||
|
||||
+19
-19
@@ -18,25 +18,25 @@
|
||||
*
|
||||
*/
|
||||
|
||||
static int A_is_a __ARGS((int cur_c));
|
||||
static int A_is_s __ARGS((int cur_c));
|
||||
static int A_is_f __ARGS((int cur_c));
|
||||
static int chg_c_a2s __ARGS((int cur_c));
|
||||
static int chg_c_a2i __ARGS((int cur_c));
|
||||
static int chg_c_a2m __ARGS((int cur_c));
|
||||
static int chg_c_a2f __ARGS((int cur_c));
|
||||
static int chg_c_i2m __ARGS((int cur_c));
|
||||
static int chg_c_f2m __ARGS((int cur_c));
|
||||
static int chg_c_laa2i __ARGS((int hid_c));
|
||||
static int chg_c_laa2f __ARGS((int hid_c));
|
||||
static int half_shape __ARGS((int c));
|
||||
static int A_firstc_laa __ARGS((int c1, int c));
|
||||
static int A_is_harakat __ARGS((int c));
|
||||
static int A_is_iso __ARGS((int c));
|
||||
static int A_is_formb __ARGS((int c));
|
||||
static int A_is_ok __ARGS((int c));
|
||||
static int A_is_valid __ARGS((int c));
|
||||
static int A_is_special __ARGS((int c));
|
||||
static int A_is_a(int cur_c);
|
||||
static int A_is_s(int cur_c);
|
||||
static int A_is_f(int cur_c);
|
||||
static int chg_c_a2s(int cur_c);
|
||||
static int chg_c_a2i(int cur_c);
|
||||
static int chg_c_a2m(int cur_c);
|
||||
static int chg_c_a2f(int cur_c);
|
||||
static int chg_c_i2m(int cur_c);
|
||||
static int chg_c_f2m(int cur_c);
|
||||
static int chg_c_laa2i(int hid_c);
|
||||
static int chg_c_laa2f(int hid_c);
|
||||
static int half_shape(int c);
|
||||
static int A_firstc_laa(int c1, int c);
|
||||
static int A_is_harakat(int c);
|
||||
static int A_is_iso(int c);
|
||||
static int A_is_formb(int c);
|
||||
static int A_is_ok(int c);
|
||||
static int A_is_valid(int c);
|
||||
static int A_is_special(int c);
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Vendored
+56
-12
@@ -657,6 +657,8 @@ XMKMF
|
||||
xmkmfpath
|
||||
SNIFF_OBJ
|
||||
SNIFF_SRC
|
||||
CHANNEL_OBJ
|
||||
CHANNEL_SRC
|
||||
NETBEANS_OBJ
|
||||
NETBEANS_SRC
|
||||
WORKSHOP_OBJ
|
||||
@@ -814,6 +816,7 @@ with_ruby_command
|
||||
enable_cscope
|
||||
enable_workshop
|
||||
enable_netbeans
|
||||
enable_channel
|
||||
enable_sniff
|
||||
enable_multibyte
|
||||
enable_hangulinput
|
||||
@@ -1479,6 +1482,7 @@ Optional Features:
|
||||
--enable-cscope Include cscope interface.
|
||||
--enable-workshop Include Sun Visual Workshop support.
|
||||
--disable-netbeans Disable NetBeans integration support.
|
||||
--disable-channel Disable process communication support.
|
||||
--enable-sniff Include Sniff interface.
|
||||
--enable-multibyte Include multibyte editing support.
|
||||
--enable-hangulinput Include Hangul input support.
|
||||
@@ -6048,7 +6052,9 @@ eof
|
||||
|
||||
fi
|
||||
|
||||
if ${vi_cv_dll_name_python+:} false; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
|
||||
$as_echo_n "checking Python's dll name... " >&6; }
|
||||
if ${vi_cv_dll_name_python+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
|
||||
@@ -6059,7 +6065,8 @@ else
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
|
||||
$as_echo "$vi_cv_dll_name_python" >&6; }
|
||||
|
||||
PYTHON_LIBS="${vi_cv_path_python_plibs}"
|
||||
if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
|
||||
@@ -6384,7 +6391,9 @@ eof
|
||||
|
||||
fi
|
||||
|
||||
if ${vi_cv_dll_name_python3+:} false; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
|
||||
$as_echo_n "checking Python3's dll name... " >&6; }
|
||||
if ${vi_cv_dll_name_python3+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
|
||||
@@ -6395,7 +6404,8 @@ else
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
|
||||
$as_echo "$vi_cv_dll_name_python3" >&6; }
|
||||
|
||||
PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
|
||||
if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
|
||||
@@ -6547,7 +6557,7 @@ else
|
||||
int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
|
||||
{
|
||||
int needed = 0;
|
||||
void* pylib = dlopen(python_instsoname, RTLD_LAZY);
|
||||
void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
|
||||
if (pylib != 0)
|
||||
{
|
||||
void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
|
||||
@@ -6613,7 +6623,7 @@ else
|
||||
int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
|
||||
{
|
||||
int needed = 0;
|
||||
void* pylib = dlopen(python_instsoname, RTLD_LAZY);
|
||||
void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
|
||||
if (pylib != 0)
|
||||
{
|
||||
void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
|
||||
@@ -7311,6 +7321,35 @@ fi
|
||||
if test "$enable_netbeans" = "yes"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
|
||||
$as_echo_n "checking --disable-channel argument... " >&6; }
|
||||
# Check whether --enable-channel was given.
|
||||
if test "${enable_channel+set}" = set; then :
|
||||
enableval=$enable_channel;
|
||||
else
|
||||
enable_channel="yes"
|
||||
fi
|
||||
|
||||
if test "$enable_channel" = "yes"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
else
|
||||
if test "$enable_netbeans" = "yes"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
|
||||
$as_echo "yes, netbeans also disabled" >&6; }
|
||||
enable_netbeans="no"
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$enable_channel" = "yes"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
|
||||
$as_echo_n "checking for socket in -lsocket... " >&6; }
|
||||
if ${ac_cv_lib_socket_socket+:} false; then :
|
||||
@@ -7401,8 +7440,8 @@ _ACEOF
|
||||
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5
|
||||
$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
|
||||
$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
@@ -7442,13 +7481,10 @@ if ac_fn_c_try_link "$LINENO"; then :
|
||||
$as_echo "yes" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }; enable_netbeans="no"
|
||||
$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
fi
|
||||
if test "$enable_netbeans" = "yes"; then
|
||||
$as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
|
||||
@@ -7457,6 +7493,14 @@ if test "$enable_netbeans" = "yes"; then
|
||||
|
||||
NETBEANS_OBJ="objects/netbeans.o"
|
||||
|
||||
fi
|
||||
if test "$enable_channel" = "yes"; then
|
||||
$as_echo "#define FEAT_CHANNEL 1" >>confdefs.h
|
||||
|
||||
CHANNEL_SRC="channel.c"
|
||||
|
||||
CHANNEL_OBJ="objects/channel.o"
|
||||
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5
|
||||
|
||||
+6
-6
@@ -56,12 +56,12 @@ typedef struct {
|
||||
} bf_state_T;
|
||||
|
||||
|
||||
static void bf_e_block __ARGS((bf_state_T *state, UINT32_T *p_xl, UINT32_T *p_xr));
|
||||
static void bf_e_cblock __ARGS((bf_state_T *state, char_u *block));
|
||||
static int bf_check_tables __ARGS((UINT32_T pax[18], UINT32_T sbx[4][256], UINT32_T val));
|
||||
static int bf_self_test __ARGS((void));
|
||||
static void bf_key_init __ARGS((bf_state_T *state, char_u *password, char_u *salt, int salt_len));
|
||||
static void bf_cfb_init __ARGS((bf_state_T *state, char_u *seed, int seed_len));
|
||||
static void bf_e_block(bf_state_T *state, UINT32_T *p_xl, UINT32_T *p_xr);
|
||||
static void bf_e_cblock(bf_state_T *state, char_u *block);
|
||||
static int bf_check_tables(UINT32_T pax[18], UINT32_T sbx[4][256], UINT32_T val);
|
||||
static int bf_self_test(void);
|
||||
static void bf_key_init(bf_state_T *state, char_u *password, char_u *salt, int salt_len);
|
||||
static void bf_cfb_init(bf_state_T *state, char_u *seed, int seed_len);
|
||||
|
||||
/* Blowfish code */
|
||||
static UINT32_T pax_init[18] = {
|
||||
|
||||
+17
-17
@@ -28,26 +28,26 @@
|
||||
#include "vim.h"
|
||||
|
||||
#if defined(FEAT_CMDL_COMPL) || defined(FEAT_LISTCMDS) || defined(FEAT_EVAL) || defined(FEAT_PERL)
|
||||
static char_u *buflist_match __ARGS((regmatch_T *rmp, buf_T *buf, int ignore_case));
|
||||
static char_u *buflist_match(regmatch_T *rmp, buf_T *buf, int ignore_case);
|
||||
# define HAVE_BUFLIST_MATCH
|
||||
static char_u *fname_match __ARGS((regmatch_T *rmp, char_u *name, int ignore_case));
|
||||
static char_u *fname_match(regmatch_T *rmp, char_u *name, int ignore_case);
|
||||
#endif
|
||||
static void buflist_setfpos __ARGS((buf_T *buf, win_T *win, linenr_T lnum, colnr_T col, int copy_options));
|
||||
static wininfo_T *find_wininfo __ARGS((buf_T *buf, int skip_diff_buffer));
|
||||
static void buflist_setfpos(buf_T *buf, win_T *win, linenr_T lnum, colnr_T col, int copy_options);
|
||||
static wininfo_T *find_wininfo(buf_T *buf, int skip_diff_buffer);
|
||||
#ifdef UNIX
|
||||
static buf_T *buflist_findname_stat __ARGS((char_u *ffname, struct stat *st));
|
||||
static int otherfile_buf __ARGS((buf_T *buf, char_u *ffname, struct stat *stp));
|
||||
static int buf_same_ino __ARGS((buf_T *buf, struct stat *stp));
|
||||
static buf_T *buflist_findname_stat(char_u *ffname, struct stat *st);
|
||||
static int otherfile_buf(buf_T *buf, char_u *ffname, struct stat *stp);
|
||||
static int buf_same_ino(buf_T *buf, struct stat *stp);
|
||||
#else
|
||||
static int otherfile_buf __ARGS((buf_T *buf, char_u *ffname));
|
||||
static int otherfile_buf(buf_T *buf, char_u *ffname);
|
||||
#endif
|
||||
#ifdef FEAT_TITLE
|
||||
static int ti_change __ARGS((char_u *str, char_u **last));
|
||||
static int ti_change(char_u *str, char_u **last);
|
||||
#endif
|
||||
static int append_arg_number __ARGS((win_T *wp, char_u *buf, int buflen, int add_file));
|
||||
static void free_buffer __ARGS((buf_T *));
|
||||
static void free_buffer_stuff __ARGS((buf_T *buf, int free_options));
|
||||
static void clear_wininfo __ARGS((buf_T *buf));
|
||||
static int append_arg_number(win_T *wp, char_u *buf, int buflen, int add_file);
|
||||
static void free_buffer(buf_T *);
|
||||
static void free_buffer_stuff(buf_T *buf, int free_options);
|
||||
static void clear_wininfo(buf_T *buf);
|
||||
|
||||
#ifdef UNIX
|
||||
# define dev_T dev_t
|
||||
@@ -56,7 +56,7 @@ static void clear_wininfo __ARGS((buf_T *buf));
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_SIGNS)
|
||||
static void insert_sign __ARGS((buf_T *buf, signlist_T *prev, signlist_T *next, int id, linenr_T lnum, int typenr));
|
||||
static void insert_sign(buf_T *buf, signlist_T *prev, signlist_T *next, int id, linenr_T lnum, int typenr);
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
|
||||
@@ -1010,7 +1010,7 @@ do_bufdel(command, arg, addr_count, start_bnr, end_bnr, forceit)
|
||||
#if defined(FEAT_LISTCMDS) || defined(FEAT_PYTHON) \
|
||||
|| defined(FEAT_PYTHON3) || defined(PROTO)
|
||||
|
||||
static int empty_curbuf __ARGS((int close_others, int forceit, int action));
|
||||
static int empty_curbuf(int close_others, int forceit, int action);
|
||||
|
||||
/*
|
||||
* Make the current buffer empty.
|
||||
@@ -2617,7 +2617,7 @@ buflist_setfpos(buf, win, lnum, col, copy_options)
|
||||
}
|
||||
|
||||
#ifdef FEAT_DIFF
|
||||
static int wininfo_other_tab_diff __ARGS((wininfo_T *wip));
|
||||
static int wininfo_other_tab_diff(wininfo_T *wip);
|
||||
|
||||
/*
|
||||
* Return TRUE when "wip" has 'diff' set and the diff is only for another tab
|
||||
@@ -5128,7 +5128,7 @@ ex_buffer_all(eap)
|
||||
|
||||
#endif /* FEAT_WINDOWS */
|
||||
|
||||
static int chk_modeline __ARGS((linenr_T, int));
|
||||
static int chk_modeline(linenr_T, int);
|
||||
|
||||
/*
|
||||
* do_modelines() - process mode lines for the current file
|
||||
|
||||
+1037
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -10,17 +10,17 @@
|
||||
#include "vim.h"
|
||||
|
||||
#ifdef FEAT_LINEBREAK
|
||||
static int win_chartabsize __ARGS((win_T *wp, char_u *p, colnr_T col));
|
||||
static int win_chartabsize(win_T *wp, char_u *p, colnr_T col);
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_MBYTE
|
||||
# if defined(HAVE_WCHAR_H)
|
||||
# include <wchar.h> /* for towupper() and towlower() */
|
||||
# endif
|
||||
static int win_nolbr_chartabsize __ARGS((win_T *wp, char_u *s, colnr_T col, int *headp));
|
||||
static int win_nolbr_chartabsize(win_T *wp, char_u *s, colnr_T col, int *headp);
|
||||
#endif
|
||||
|
||||
static unsigned nr2hex __ARGS((unsigned c));
|
||||
static unsigned nr2hex(unsigned c);
|
||||
|
||||
static int chartab_initialized = FALSE;
|
||||
|
||||
|
||||
@@ -65,6 +65,8 @@ WORKSHOP_OBJ = @WORKSHOP_OBJ@
|
||||
|
||||
NETBEANS_SRC = @NETBEANS_SRC@
|
||||
NETBEANS_OBJ = @NETBEANS_OBJ@
|
||||
CHANNEL_SRC = @CHANNEL_SRC@
|
||||
CHANNEL_OBJ = @CHANNEL_OBJ@
|
||||
|
||||
RUBY = @vi_cv_path_ruby@
|
||||
RUBY_SRC = @RUBY_SRC@
|
||||
|
||||
@@ -435,6 +435,9 @@
|
||||
/* Define if you want to include NetBeans integration. */
|
||||
#undef FEAT_NETBEANS_INTG
|
||||
|
||||
/* Define if you want to include process communication. */
|
||||
#undef FEAT_CHANNEL
|
||||
|
||||
/* Define default global runtime path */
|
||||
#undef RUNTIME_GLOBAL
|
||||
|
||||
|
||||
@@ -91,6 +91,8 @@ WORKSHOP_OBJ = @WORKSHOP_OBJ@
|
||||
|
||||
NETBEANS_SRC = @NETBEANS_SRC@
|
||||
NETBEANS_OBJ = @NETBEANS_OBJ@
|
||||
CHANNEL_SRC = @CHANNEL_SRC@
|
||||
CHANNEL_OBJ = @CHANNEL_OBJ@
|
||||
|
||||
RUBY = @vi_cv_path_ruby@
|
||||
RUBY_SRC = @RUBY_SRC@
|
||||
|
||||
+33
-8
@@ -1249,7 +1249,7 @@ eof
|
||||
vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
|
||||
fi
|
||||
])
|
||||
AC_CACHE_VAL(vi_cv_dll_name_python,
|
||||
AC_CACHE_CHECK(Python's dll name,vi_cv_dll_name_python,
|
||||
[
|
||||
if test "X$python_DLLLIBRARY" != "X"; then
|
||||
vi_cv_dll_name_python="$python_DLLLIBRARY"
|
||||
@@ -1468,7 +1468,7 @@ eof
|
||||
vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
|
||||
vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
|
||||
])
|
||||
AC_CACHE_VAL(vi_cv_dll_name_python3,
|
||||
AC_CACHE_CHECK(Python3's dll name,vi_cv_dll_name_python3,
|
||||
[
|
||||
if test "X$python3_DLLLIBRARY" != "X"; then
|
||||
vi_cv_dll_name_python3="$python3_DLLLIBRARY"
|
||||
@@ -1586,7 +1586,7 @@ if test "$python_ok" = yes && test "$python3_ok" = yes; then
|
||||
int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
|
||||
{
|
||||
int needed = 0;
|
||||
void* pylib = dlopen(python_instsoname, RTLD_LAZY);
|
||||
void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
|
||||
if (pylib != 0)
|
||||
{
|
||||
void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
|
||||
@@ -1632,7 +1632,7 @@ if test "$python_ok" = yes && test "$python3_ok" = yes; then
|
||||
int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
|
||||
{
|
||||
int needed = 0;
|
||||
void* pylib = dlopen(python_instsoname, RTLD_LAZY);
|
||||
void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
|
||||
if (pylib != 0)
|
||||
{
|
||||
void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
|
||||
@@ -1991,10 +1991,30 @@ AC_ARG_ENABLE(netbeans,
|
||||
, [enable_netbeans="yes"])
|
||||
if test "$enable_netbeans" = "yes"; then
|
||||
AC_MSG_RESULT(no)
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(--disable-channel argument)
|
||||
AC_ARG_ENABLE(channel,
|
||||
[ --disable-channel Disable process communication support.],
|
||||
, [enable_channel="yes"])
|
||||
if test "$enable_channel" = "yes"; then
|
||||
AC_MSG_RESULT(no)
|
||||
else
|
||||
if test "$enable_netbeans" = "yes"; then
|
||||
AC_MSG_RESULT([yes, netbeans also disabled])
|
||||
enable_netbeans="no"
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$enable_channel" = "yes"; then
|
||||
dnl On Solaris we need the socket and nsl library.
|
||||
AC_CHECK_LIB(socket, socket)
|
||||
AC_CHECK_LIB(nsl, gethostbyname)
|
||||
AC_MSG_CHECKING(whether compiling netbeans integration is possible)
|
||||
AC_MSG_CHECKING(whether compiling with process communication is possible)
|
||||
AC_TRY_LINK([
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -2020,9 +2040,7 @@ if test "$enable_netbeans" = "yes"; then
|
||||
(void)connect(1, (struct sockaddr *)&server, sizeof(server));
|
||||
],
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no); enable_netbeans="no")
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_MSG_RESULT(no); enable_netbeans="no"; enable_channel="no")
|
||||
fi
|
||||
if test "$enable_netbeans" = "yes"; then
|
||||
AC_DEFINE(FEAT_NETBEANS_INTG)
|
||||
@@ -2031,6 +2049,13 @@ if test "$enable_netbeans" = "yes"; then
|
||||
NETBEANS_OBJ="objects/netbeans.o"
|
||||
AC_SUBST(NETBEANS_OBJ)
|
||||
fi
|
||||
if test "$enable_channel" = "yes"; then
|
||||
AC_DEFINE(FEAT_CHANNEL)
|
||||
CHANNEL_SRC="channel.c"
|
||||
AC_SUBST(CHANNEL_SRC)
|
||||
CHANNEL_OBJ="objects/channel.o"
|
||||
AC_SUBST(CHANNEL_OBJ)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(--enable-sniff argument)
|
||||
AC_ARG_ENABLE(sniff,
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ typedef struct {
|
||||
} zip_state_T;
|
||||
|
||||
|
||||
static void make_crc_tab __ARGS((void));
|
||||
static void make_crc_tab(void);
|
||||
|
||||
static u32_T crc_32_table[256];
|
||||
|
||||
|
||||
+14
-14
@@ -35,22 +35,22 @@ static int diff_bin_works = MAYBE; /* TRUE when "diff --binary" works, FALSE
|
||||
checked yet */
|
||||
#endif
|
||||
|
||||
static int diff_buf_idx __ARGS((buf_T *buf));
|
||||
static int diff_buf_idx_tp __ARGS((buf_T *buf, tabpage_T *tp));
|
||||
static void diff_mark_adjust_tp __ARGS((tabpage_T *tp, int idx, linenr_T line1, linenr_T line2, long amount, long amount_after));
|
||||
static void diff_check_unchanged __ARGS((tabpage_T *tp, diff_T *dp));
|
||||
static int diff_check_sanity __ARGS((tabpage_T *tp, diff_T *dp));
|
||||
static void diff_redraw __ARGS((int dofold));
|
||||
static int diff_write __ARGS((buf_T *buf, char_u *fname));
|
||||
static void diff_file __ARGS((char_u *tmp_orig, char_u *tmp_new, char_u *tmp_diff));
|
||||
static int diff_equal_entry __ARGS((diff_T *dp, int idx1, int idx2));
|
||||
static int diff_cmp __ARGS((char_u *s1, char_u *s2));
|
||||
static int diff_buf_idx(buf_T *buf);
|
||||
static int diff_buf_idx_tp(buf_T *buf, tabpage_T *tp);
|
||||
static void diff_mark_adjust_tp(tabpage_T *tp, int idx, linenr_T line1, linenr_T line2, long amount, long amount_after);
|
||||
static void diff_check_unchanged(tabpage_T *tp, diff_T *dp);
|
||||
static int diff_check_sanity(tabpage_T *tp, diff_T *dp);
|
||||
static void diff_redraw(int dofold);
|
||||
static int diff_write(buf_T *buf, char_u *fname);
|
||||
static void diff_file(char_u *tmp_orig, char_u *tmp_new, char_u *tmp_diff);
|
||||
static int diff_equal_entry(diff_T *dp, int idx1, int idx2);
|
||||
static int diff_cmp(char_u *s1, char_u *s2);
|
||||
#ifdef FEAT_FOLDING
|
||||
static void diff_fold_update __ARGS((diff_T *dp, int skip_idx));
|
||||
static void diff_fold_update(diff_T *dp, int skip_idx);
|
||||
#endif
|
||||
static void diff_read __ARGS((int idx_orig, int idx_new, char_u *fname));
|
||||
static void diff_copy_entry __ARGS((diff_T *dprev, diff_T *dp, int idx_orig, int idx_new));
|
||||
static diff_T *diff_alloc_new __ARGS((tabpage_T *tp, diff_T *dprev, diff_T *dp));
|
||||
static void diff_read(int idx_orig, int idx_new, char_u *fname);
|
||||
static void diff_copy_entry(diff_T *dprev, diff_T *dp, int idx_orig, int idx_new);
|
||||
static diff_T *diff_alloc_new(tabpage_T *tp, diff_T *dprev, diff_T *dp);
|
||||
|
||||
#ifndef USE_CR
|
||||
# define tag_fgets vim_fgets
|
||||
|
||||
+3
-3
@@ -28,8 +28,8 @@ typedef struct digraph
|
||||
result_T result;
|
||||
} digr_T;
|
||||
|
||||
static int getexactdigraph __ARGS((int, int, int));
|
||||
static void printdigraph __ARGS((digr_T *));
|
||||
static int getexactdigraph(int, int, int);
|
||||
static void printdigraph(digr_T *);
|
||||
|
||||
/* digraphs added by the user */
|
||||
static garray_T user_digraphs = {0, 0, (int)sizeof(digr_T), 10, NULL};
|
||||
@@ -2357,7 +2357,7 @@ typedef struct
|
||||
|
||||
#define KMAP_MAXLEN 20 /* maximum length of "from" or "to" */
|
||||
|
||||
static void keymap_unload __ARGS((void));
|
||||
static void keymap_unload(void);
|
||||
|
||||
/*
|
||||
* Set up key mapping tables for the 'keymap' option.
|
||||
|
||||
+97
-97
@@ -145,48 +145,48 @@ static expand_T compl_xp;
|
||||
|
||||
static int compl_opt_refresh_always = FALSE;
|
||||
|
||||
static void ins_ctrl_x __ARGS((void));
|
||||
static int has_compl_option __ARGS((int dict_opt));
|
||||
static int ins_compl_accept_char __ARGS((int c));
|
||||
static int ins_compl_add __ARGS((char_u *str, int len, int icase, char_u *fname, char_u **cptext, int cdir, int flags, int adup));
|
||||
static int ins_compl_equal __ARGS((compl_T *match, char_u *str, int len));
|
||||
static void ins_compl_longest_match __ARGS((compl_T *match));
|
||||
static void ins_compl_add_matches __ARGS((int num_matches, char_u **matches, int icase));
|
||||
static int ins_compl_make_cyclic __ARGS((void));
|
||||
static void ins_compl_upd_pum __ARGS((void));
|
||||
static void ins_compl_del_pum __ARGS((void));
|
||||
static int pum_wanted __ARGS((void));
|
||||
static int pum_enough_matches __ARGS((void));
|
||||
static void ins_compl_dictionaries __ARGS((char_u *dict, char_u *pat, int flags, int thesaurus));
|
||||
static void ins_compl_files __ARGS((int count, char_u **files, int thesaurus, int flags, regmatch_T *regmatch, char_u *buf, int *dir));
|
||||
static char_u *find_line_end __ARGS((char_u *ptr));
|
||||
static void ins_compl_free __ARGS((void));
|
||||
static void ins_compl_clear __ARGS((void));
|
||||
static int ins_compl_bs __ARGS((void));
|
||||
static int ins_compl_need_restart __ARGS((void));
|
||||
static void ins_compl_new_leader __ARGS((void));
|
||||
static void ins_compl_addleader __ARGS((int c));
|
||||
static int ins_compl_len __ARGS((void));
|
||||
static void ins_compl_restart __ARGS((void));
|
||||
static void ins_compl_set_original_text __ARGS((char_u *str));
|
||||
static void ins_compl_addfrommatch __ARGS((void));
|
||||
static int ins_compl_prep __ARGS((int c));
|
||||
static void ins_compl_fixRedoBufForLeader __ARGS((char_u *ptr_arg));
|
||||
static buf_T *ins_compl_next_buf __ARGS((buf_T *buf, int flag));
|
||||
static void ins_ctrl_x(void);
|
||||
static int has_compl_option(int dict_opt);
|
||||
static int ins_compl_accept_char(int c);
|
||||
static int ins_compl_add(char_u *str, int len, int icase, char_u *fname, char_u **cptext, int cdir, int flags, int adup);
|
||||
static int ins_compl_equal(compl_T *match, char_u *str, int len);
|
||||
static void ins_compl_longest_match(compl_T *match);
|
||||
static void ins_compl_add_matches(int num_matches, char_u **matches, int icase);
|
||||
static int ins_compl_make_cyclic(void);
|
||||
static void ins_compl_upd_pum(void);
|
||||
static void ins_compl_del_pum(void);
|
||||
static int pum_wanted(void);
|
||||
static int pum_enough_matches(void);
|
||||
static void ins_compl_dictionaries(char_u *dict, char_u *pat, int flags, int thesaurus);
|
||||
static void ins_compl_files(int count, char_u **files, int thesaurus, int flags, regmatch_T *regmatch, char_u *buf, int *dir);
|
||||
static char_u *find_line_end(char_u *ptr);
|
||||
static void ins_compl_free(void);
|
||||
static void ins_compl_clear(void);
|
||||
static int ins_compl_bs(void);
|
||||
static int ins_compl_need_restart(void);
|
||||
static void ins_compl_new_leader(void);
|
||||
static void ins_compl_addleader(int c);
|
||||
static int ins_compl_len(void);
|
||||
static void ins_compl_restart(void);
|
||||
static void ins_compl_set_original_text(char_u *str);
|
||||
static void ins_compl_addfrommatch(void);
|
||||
static int ins_compl_prep(int c);
|
||||
static void ins_compl_fixRedoBufForLeader(char_u *ptr_arg);
|
||||
static buf_T *ins_compl_next_buf(buf_T *buf, int flag);
|
||||
#if defined(FEAT_COMPL_FUNC) || defined(FEAT_EVAL)
|
||||
static void ins_compl_add_list __ARGS((list_T *list));
|
||||
static void ins_compl_add_dict __ARGS((dict_T *dict));
|
||||
static void ins_compl_add_list(list_T *list);
|
||||
static void ins_compl_add_dict(dict_T *dict);
|
||||
#endif
|
||||
static int ins_compl_get_exp __ARGS((pos_T *ini));
|
||||
static void ins_compl_delete __ARGS((void));
|
||||
static void ins_compl_insert __ARGS((void));
|
||||
static int ins_compl_next __ARGS((int allow_get_expansion, int count, int insert_match));
|
||||
static int ins_compl_key2dir __ARGS((int c));
|
||||
static int ins_compl_pum_key __ARGS((int c));
|
||||
static int ins_compl_key2count __ARGS((int c));
|
||||
static int ins_compl_use_match __ARGS((int c));
|
||||
static int ins_complete __ARGS((int c));
|
||||
static unsigned quote_meta __ARGS((char_u *dest, char_u *str, int len));
|
||||
static int ins_compl_get_exp(pos_T *ini);
|
||||
static void ins_compl_delete(void);
|
||||
static void ins_compl_insert(void);
|
||||
static int ins_compl_next(int allow_get_expansion, int count, int insert_match);
|
||||
static int ins_compl_key2dir(int c);
|
||||
static int ins_compl_pum_key(int c);
|
||||
static int ins_compl_key2count(int c);
|
||||
static int ins_compl_use_match(int c);
|
||||
static int ins_complete(int c);
|
||||
static unsigned quote_meta(char_u *dest, char_u *str, int len);
|
||||
#endif /* FEAT_INS_EXPAND */
|
||||
|
||||
#define BACKSPACE_CHAR 1
|
||||
@@ -194,80 +194,80 @@ static unsigned quote_meta __ARGS((char_u *dest, char_u *str, int len));
|
||||
#define BACKSPACE_WORD_NOT_SPACE 3
|
||||
#define BACKSPACE_LINE 4
|
||||
|
||||
static void ins_redraw __ARGS((int ready));
|
||||
static void ins_ctrl_v __ARGS((void));
|
||||
static void undisplay_dollar __ARGS((void));
|
||||
static void insert_special __ARGS((int, int, int));
|
||||
static void internal_format __ARGS((int textwidth, int second_indent, int flags, int format_only, int c));
|
||||
static void check_auto_format __ARGS((int));
|
||||
static void redo_literal __ARGS((int c));
|
||||
static void start_arrow __ARGS((pos_T *end_insert_pos));
|
||||
static void start_arrow_with_change __ARGS((pos_T *end_insert_pos, int change));
|
||||
static void start_arrow_common __ARGS((pos_T *end_insert_pos, int change));
|
||||
static void ins_redraw(int ready);
|
||||
static void ins_ctrl_v(void);
|
||||
static void undisplay_dollar(void);
|
||||
static void insert_special(int, int, int);
|
||||
static void internal_format(int textwidth, int second_indent, int flags, int format_only, int c);
|
||||
static void check_auto_format(int);
|
||||
static void redo_literal(int c);
|
||||
static void start_arrow(pos_T *end_insert_pos);
|
||||
static void start_arrow_with_change(pos_T *end_insert_pos, int change);
|
||||
static void start_arrow_common(pos_T *end_insert_pos, int change);
|
||||
#ifdef FEAT_SPELL
|
||||
static void check_spell_redraw __ARGS((void));
|
||||
static void spell_back_to_badword __ARGS((void));
|
||||
static void check_spell_redraw(void);
|
||||
static void spell_back_to_badword(void);
|
||||
static int spell_bad_len = 0; /* length of located bad word */
|
||||
#endif
|
||||
static void stop_insert __ARGS((pos_T *end_insert_pos, int esc, int nomove));
|
||||
static int echeck_abbr __ARGS((int));
|
||||
static int replace_pop __ARGS((void));
|
||||
static void replace_join __ARGS((int off));
|
||||
static void replace_pop_ins __ARGS((void));
|
||||
static void stop_insert(pos_T *end_insert_pos, int esc, int nomove);
|
||||
static int echeck_abbr(int);
|
||||
static int replace_pop(void);
|
||||
static void replace_join(int off);
|
||||
static void replace_pop_ins(void);
|
||||
#ifdef FEAT_MBYTE
|
||||
static void mb_replace_pop_ins __ARGS((int cc));
|
||||
static void mb_replace_pop_ins(int cc);
|
||||
#endif
|
||||
static void replace_flush __ARGS((void));
|
||||
static void replace_do_bs __ARGS((int limit_col));
|
||||
static int del_char_after_col __ARGS((int limit_col));
|
||||
static void replace_flush(void);
|
||||
static void replace_do_bs(int limit_col);
|
||||
static int del_char_after_col(int limit_col);
|
||||
#ifdef FEAT_CINDENT
|
||||
static int cindent_on __ARGS((void));
|
||||
static int cindent_on(void);
|
||||
#endif
|
||||
static void ins_reg __ARGS((void));
|
||||
static void ins_ctrl_g __ARGS((void));
|
||||
static void ins_ctrl_hat __ARGS((void));
|
||||
static int ins_esc __ARGS((long *count, int cmdchar, int nomove));
|
||||
static void ins_reg(void);
|
||||
static void ins_ctrl_g(void);
|
||||
static void ins_ctrl_hat(void);
|
||||
static int ins_esc(long *count, int cmdchar, int nomove);
|
||||
#ifdef FEAT_RIGHTLEFT
|
||||
static void ins_ctrl_ __ARGS((void));
|
||||
static void ins_ctrl_(void);
|
||||
#endif
|
||||
static int ins_start_select __ARGS((int c));
|
||||
static void ins_insert __ARGS((int replaceState));
|
||||
static void ins_ctrl_o __ARGS((void));
|
||||
static void ins_shift __ARGS((int c, int lastc));
|
||||
static void ins_del __ARGS((void));
|
||||
static int ins_bs __ARGS((int c, int mode, int *inserted_space_p));
|
||||
static int ins_start_select(int c);
|
||||
static void ins_insert(int replaceState);
|
||||
static void ins_ctrl_o(void);
|
||||
static void ins_shift(int c, int lastc);
|
||||
static void ins_del(void);
|
||||
static int ins_bs(int c, int mode, int *inserted_space_p);
|
||||
#ifdef FEAT_MOUSE
|
||||
static void ins_mouse __ARGS((int c));
|
||||
static void ins_mousescroll __ARGS((int dir));
|
||||
static void ins_mouse(int c);
|
||||
static void ins_mousescroll(int dir);
|
||||
#endif
|
||||
#if defined(FEAT_GUI_TABLINE) || defined(PROTO)
|
||||
static void ins_tabline __ARGS((int c));
|
||||
static void ins_tabline(int c);
|
||||
#endif
|
||||
static void ins_left __ARGS((int end_change));
|
||||
static void ins_home __ARGS((int c));
|
||||
static void ins_end __ARGS((int c));
|
||||
static void ins_s_left __ARGS((void));
|
||||
static void ins_right __ARGS((int end_change));
|
||||
static void ins_s_right __ARGS((void));
|
||||
static void ins_up __ARGS((int startcol));
|
||||
static void ins_pageup __ARGS((void));
|
||||
static void ins_down __ARGS((int startcol));
|
||||
static void ins_pagedown __ARGS((void));
|
||||
static void ins_left(int end_change);
|
||||
static void ins_home(int c);
|
||||
static void ins_end(int c);
|
||||
static void ins_s_left(void);
|
||||
static void ins_right(int end_change);
|
||||
static void ins_s_right(void);
|
||||
static void ins_up(int startcol);
|
||||
static void ins_pageup(void);
|
||||
static void ins_down(int startcol);
|
||||
static void ins_pagedown(void);
|
||||
#ifdef FEAT_DND
|
||||
static void ins_drop __ARGS((void));
|
||||
static void ins_drop(void);
|
||||
#endif
|
||||
static int ins_tab __ARGS((void));
|
||||
static int ins_eol __ARGS((int c));
|
||||
static int ins_tab(void);
|
||||
static int ins_eol(int c);
|
||||
#ifdef FEAT_DIGRAPHS
|
||||
static int ins_digraph __ARGS((void));
|
||||
static int ins_digraph(void);
|
||||
#endif
|
||||
static int ins_ctrl_ey __ARGS((int tc));
|
||||
static int ins_ctrl_ey(int tc);
|
||||
#ifdef FEAT_SMARTINDENT
|
||||
static void ins_try_si __ARGS((int c));
|
||||
static void ins_try_si(int c);
|
||||
#endif
|
||||
static colnr_T get_nolist_virtcol __ARGS((void));
|
||||
static colnr_T get_nolist_virtcol(void);
|
||||
#ifdef FEAT_AUTOCMD
|
||||
static char_u *do_insert_char_pre __ARGS((int c));
|
||||
static char_u *do_insert_char_pre(int c);
|
||||
#endif
|
||||
|
||||
static colnr_T Insstart_textlen; /* length of line when insert started */
|
||||
@@ -4038,7 +4038,7 @@ ins_compl_next_buf(buf, flag)
|
||||
}
|
||||
|
||||
#ifdef FEAT_COMPL_FUNC
|
||||
static void expand_by_function __ARGS((int type, char_u *base));
|
||||
static void expand_by_function(int type, char_u *base);
|
||||
|
||||
/*
|
||||
* Execute user defined complete function 'completefunc' or 'omnifunc', and
|
||||
@@ -7866,7 +7866,7 @@ cindent_on()
|
||||
|
||||
void
|
||||
fixthisline(get_the_indent)
|
||||
int (*get_the_indent) __ARGS((void));
|
||||
int (*get_the_indent)(void);
|
||||
{
|
||||
int amount = get_the_indent();
|
||||
|
||||
@@ -8863,7 +8863,7 @@ ins_del()
|
||||
AppendCharToRedobuff(K_DEL);
|
||||
}
|
||||
|
||||
static void ins_bs_one __ARGS((colnr_T *vcolp));
|
||||
static void ins_bs_one(colnr_T *vcolp);
|
||||
|
||||
/*
|
||||
* Delete one character for ins_bs().
|
||||
|
||||
+817
-481
File diff suppressed because it is too large
Load Diff
+16
-16
@@ -19,26 +19,26 @@
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_EX_EXTRA
|
||||
static int linelen __ARGS((int *has_tab));
|
||||
static int linelen(int *has_tab);
|
||||
#endif
|
||||
static void do_filter __ARGS((linenr_T line1, linenr_T line2, exarg_T *eap, char_u *cmd, int do_in, int do_out));
|
||||
static void do_filter(linenr_T line1, linenr_T line2, exarg_T *eap, char_u *cmd, int do_in, int do_out);
|
||||
#ifdef FEAT_VIMINFO
|
||||
static char_u *viminfo_filename __ARGS((char_u *));
|
||||
static void do_viminfo __ARGS((FILE *fp_in, FILE *fp_out, int flags));
|
||||
static int viminfo_encoding __ARGS((vir_T *virp));
|
||||
static int read_viminfo_up_to_marks __ARGS((vir_T *virp, int forceit, int writing));
|
||||
static char_u *viminfo_filename(char_u *);
|
||||
static void do_viminfo(FILE *fp_in, FILE *fp_out, int flags);
|
||||
static int viminfo_encoding(vir_T *virp);
|
||||
static int read_viminfo_up_to_marks(vir_T *virp, int forceit, int writing);
|
||||
#endif
|
||||
|
||||
static int check_readonly __ARGS((int *forceit, buf_T *buf));
|
||||
static int check_readonly(int *forceit, buf_T *buf);
|
||||
#ifdef FEAT_AUTOCMD
|
||||
static void delbuf_msg __ARGS((char_u *name));
|
||||
static void delbuf_msg(char_u *name);
|
||||
#endif
|
||||
static int
|
||||
#ifdef __BORLANDC__
|
||||
_RTLENTRYF
|
||||
#endif
|
||||
help_compare __ARGS((const void *s1, const void *s2));
|
||||
static void prepare_help_buffer __ARGS((void));
|
||||
help_compare(const void *s1, const void *s2);
|
||||
static void prepare_help_buffer(void);
|
||||
|
||||
/*
|
||||
* ":ascii" and "ga".
|
||||
@@ -309,7 +309,7 @@ static int
|
||||
#ifdef __BORLANDC__
|
||||
_RTLENTRYF
|
||||
#endif
|
||||
sort_compare __ARGS((const void *s1, const void *s2));
|
||||
sort_compare(const void *s1, const void *s2);
|
||||
|
||||
static int
|
||||
#ifdef __BORLANDC__
|
||||
@@ -1759,7 +1759,7 @@ append_redir(buf, buflen, opt, fname)
|
||||
|
||||
#if defined(FEAT_VIMINFO) || defined(PROTO)
|
||||
|
||||
static int no_viminfo __ARGS((void));
|
||||
static int no_viminfo(void);
|
||||
static void write_viminfo_barlines(vir_T *virp, FILE *fp_out);
|
||||
static int viminfo_errcnt;
|
||||
|
||||
@@ -6627,7 +6627,7 @@ ex_viusage(eap)
|
||||
}
|
||||
|
||||
#if defined(FEAT_EX_EXTRA) || defined(PROTO)
|
||||
static void helptags_one __ARGS((char_u *dir, char_u *ext, char_u *lang, int add_help_tags));
|
||||
static void helptags_one(char_u *dir, char_u *ext, char_u *lang, int add_help_tags);
|
||||
|
||||
/*
|
||||
* ":helptags"
|
||||
@@ -7038,9 +7038,9 @@ struct sign
|
||||
static sign_T *first_sign = NULL;
|
||||
static int next_sign_typenr = 1;
|
||||
|
||||
static int sign_cmd_idx __ARGS((char_u *begin_cmd, char_u *end_cmd));
|
||||
static void sign_list_defined __ARGS((sign_T *sp));
|
||||
static void sign_undefine __ARGS((sign_T *sp, sign_T *sp_prev));
|
||||
static int sign_cmd_idx(char_u *begin_cmd, char_u *end_cmd);
|
||||
static void sign_list_defined(sign_T *sp);
|
||||
static void sign_undefine(sign_T *sp, sign_T *sp_prev);
|
||||
|
||||
static char *cmds[] = {
|
||||
"define",
|
||||
|
||||
+3
-3
@@ -85,7 +85,7 @@ typedef struct exarg exarg_T;
|
||||
#ifdef DO_DECLARE_EXCMD
|
||||
# define EX(a, b, c, d, e) {(char_u *)b, c, (long_u)(d), e}
|
||||
|
||||
typedef void (*ex_func_T) __ARGS((exarg_T *eap));
|
||||
typedef void (*ex_func_T) (exarg_T *eap);
|
||||
|
||||
static struct cmdname
|
||||
{
|
||||
@@ -128,7 +128,7 @@ EX(CMD_args, "args", ex_args,
|
||||
BANG|FILES|EDITCMD|ARGOPT|TRLBAR,
|
||||
ADDR_LINES),
|
||||
EX(CMD_argadd, "argadd", ex_argadd,
|
||||
BANG|NEEDARG|RANGE|NOTADR|ZEROR|FILES|TRLBAR,
|
||||
BANG|RANGE|NOTADR|ZEROR|FILES|TRLBAR,
|
||||
ADDR_ARGUMENTS),
|
||||
EX(CMD_argdelete, "argdelete", ex_argdelete,
|
||||
BANG|RANGE|NOTADR|FILES|TRLBAR,
|
||||
@@ -1745,7 +1745,7 @@ struct exarg
|
||||
int useridx; /* user command index */
|
||||
#endif
|
||||
char_u *errmsg; /* returned error message */
|
||||
char_u *(*getline) __ARGS((int, void *, int));
|
||||
char_u *(*getline)(int, void *, int);
|
||||
void *cookie; /* argument for getline() */
|
||||
#ifdef FEAT_EVAL
|
||||
struct condstack *cstack; /* condition stack for ":if" etc. */
|
||||
|
||||
+30
-20
@@ -14,7 +14,7 @@
|
||||
#include "vim.h"
|
||||
#include "version.h"
|
||||
|
||||
static void cmd_source __ARGS((char_u *fname, exarg_T *eap));
|
||||
static void cmd_source(char_u *fname, exarg_T *eap);
|
||||
|
||||
#ifdef FEAT_EVAL
|
||||
/* Growarray to store info about already sourced scripts.
|
||||
@@ -562,8 +562,8 @@ static garray_T prof_ga = {0, 0, sizeof(struct debuggy), 4, NULL};
|
||||
#define DBG_FUNC 1
|
||||
#define DBG_FILE 2
|
||||
|
||||
static int dbg_parsearg __ARGS((char_u *arg, garray_T *gap));
|
||||
static linenr_T debuggy_find __ARGS((int file,char_u *fname, linenr_T after, garray_T *gap, int *fp));
|
||||
static int dbg_parsearg(char_u *arg, garray_T *gap);
|
||||
static linenr_T debuggy_find(int file,char_u *fname, linenr_T after, garray_T *gap, int *fp);
|
||||
|
||||
/*
|
||||
* Parse the arguments of ":profile", ":breakadd" or ":breakdel" and put them
|
||||
@@ -1133,8 +1133,8 @@ profile_divide(tm, count, tm2)
|
||||
/*
|
||||
* Functions for profiling.
|
||||
*/
|
||||
static void script_do_profile __ARGS((scriptitem_T *si));
|
||||
static void script_dump_profile __ARGS((FILE *fd));
|
||||
static void script_do_profile(scriptitem_T *si);
|
||||
static void script_dump_profile(FILE *fd);
|
||||
static proftime_T prof_wait_time;
|
||||
|
||||
/*
|
||||
@@ -1830,7 +1830,7 @@ can_abandon(buf, forceit)
|
||||
|| forceit);
|
||||
}
|
||||
|
||||
static void add_bufnum __ARGS((int *bufnrs, int *bufnump, int nr));
|
||||
static void add_bufnum(int *bufnrs, int *bufnump, int nr);
|
||||
|
||||
/*
|
||||
* Add a buffer number to "bufnrs", unless it's already there.
|
||||
@@ -2024,12 +2024,12 @@ buf_write_all(buf, forceit)
|
||||
* Code to handle the argument list.
|
||||
*/
|
||||
|
||||
static char_u *do_one_arg __ARGS((char_u *str));
|
||||
static int do_arglist __ARGS((char_u *str, int what, int after));
|
||||
static void alist_check_arg_idx __ARGS((void));
|
||||
static int editing_arg_idx __ARGS((win_T *win));
|
||||
static char_u *do_one_arg(char_u *str);
|
||||
static int do_arglist(char_u *str, int what, int after);
|
||||
static void alist_check_arg_idx(void);
|
||||
static int editing_arg_idx(win_T *win);
|
||||
#ifdef FEAT_LISTCMDS
|
||||
static int alist_add_list __ARGS((int count, char_u **files, int after));
|
||||
static int alist_add_list(int count, char_u **files, int after);
|
||||
#endif
|
||||
#define AL_SET 1
|
||||
#define AL_ADD 2
|
||||
@@ -2162,6 +2162,16 @@ do_arglist(str, what, after)
|
||||
int match;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Set default argument for ":argadd" command.
|
||||
*/
|
||||
if (what == AL_ADD && *str == NUL)
|
||||
{
|
||||
if (curbuf->b_ffname == NULL)
|
||||
return FAIL;
|
||||
str = curbuf->b_fname;
|
||||
}
|
||||
|
||||
/*
|
||||
* Collect all file name arguments in "new_ga".
|
||||
*/
|
||||
@@ -3023,7 +3033,7 @@ ex_runtime(eap)
|
||||
source_runtime(eap->arg, eap->forceit);
|
||||
}
|
||||
|
||||
static void source_callback __ARGS((char_u *fname, void *cookie));
|
||||
static void source_callback(char_u *fname, void *cookie);
|
||||
|
||||
static void
|
||||
source_callback(fname, cookie)
|
||||
@@ -3062,7 +3072,7 @@ source_runtime(name, all)
|
||||
do_in_runtimepath(name, all, callback, cookie)
|
||||
char_u *name;
|
||||
int all;
|
||||
void (*callback)__ARGS((char_u *fname, void *ck));
|
||||
void (*callback)(char_u *fname, void *ck);
|
||||
void *cookie;
|
||||
{
|
||||
char_u *rtp;
|
||||
@@ -3287,11 +3297,11 @@ source_level(cookie)
|
||||
}
|
||||
#endif
|
||||
|
||||
static char_u *get_one_sourceline __ARGS((struct source_cookie *sp));
|
||||
static char_u *get_one_sourceline(struct source_cookie *sp);
|
||||
|
||||
#if (defined(WIN32) && defined(FEAT_CSCOPE)) || defined(HAVE_FD_CLOEXEC)
|
||||
# define USE_FOPEN_NOINH
|
||||
static FILE *fopen_noinh_readbin __ARGS((char *filename));
|
||||
static FILE *fopen_noinh_readbin(char *filename);
|
||||
|
||||
/*
|
||||
* Special function to open a file without handle inheritance.
|
||||
@@ -4259,7 +4269,7 @@ do_finish(eap, reanimate)
|
||||
*/
|
||||
int
|
||||
source_finished(fgetline, cookie)
|
||||
char_u *(*fgetline) __ARGS((int, void *, int));
|
||||
char_u *(*fgetline)(int, void *, int);
|
||||
void *cookie;
|
||||
{
|
||||
return (getline_equal(fgetline, cookie, getsourceline)
|
||||
@@ -4295,7 +4305,7 @@ ex_checktime(eap)
|
||||
#if (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
|
||||
&& (defined(FEAT_EVAL) || defined(FEAT_MULTI_LANG))
|
||||
# define HAVE_GET_LOCALE_VAL
|
||||
static char *get_locale_val __ARGS((int what));
|
||||
static char *get_locale_val(int what);
|
||||
|
||||
static char *
|
||||
get_locale_val(what)
|
||||
@@ -4416,7 +4426,7 @@ get_mess_lang()
|
||||
|| ((defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
|
||||
&& (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE)) \
|
||||
&& !defined(LC_MESSAGES))
|
||||
static char_u *get_mess_env __ARGS((void));
|
||||
static char_u *get_mess_env(void);
|
||||
|
||||
/*
|
||||
* Get the language used for messages from the environment.
|
||||
@@ -4618,8 +4628,8 @@ ex_language(eap)
|
||||
static char_u **locales = NULL; /* Array of all available locales */
|
||||
static int did_init_locales = FALSE;
|
||||
|
||||
static void init_locales __ARGS((void));
|
||||
static char_u **find_locales __ARGS((void));
|
||||
static void init_locales(void);
|
||||
static char_u **find_locales(void);
|
||||
|
||||
/*
|
||||
* Lazy initialization of all available locales.
|
||||
|
||||
+170
-161
@@ -43,11 +43,11 @@ static garray_T ucmds = {0, 0, sizeof(ucmd_T), 4, NULL};
|
||||
#define USER_CMD(i) (&((ucmd_T *)(ucmds.ga_data))[i])
|
||||
#define USER_CMD_GA(gap, i) (&((ucmd_T *)((gap)->ga_data))[i])
|
||||
|
||||
static void do_ucmd __ARGS((exarg_T *eap));
|
||||
static void ex_command __ARGS((exarg_T *eap));
|
||||
static void ex_delcommand __ARGS((exarg_T *eap));
|
||||
static void do_ucmd(exarg_T *eap);
|
||||
static void ex_command(exarg_T *eap);
|
||||
static void ex_delcommand(exarg_T *eap);
|
||||
# ifdef FEAT_CMDL_COMPL
|
||||
static char_u *get_user_command_name __ARGS((int idx));
|
||||
static char_u *get_user_command_name(int idx);
|
||||
# endif
|
||||
|
||||
/* Wether a command index indicates a user command. */
|
||||
@@ -61,42 +61,42 @@ static char_u *get_user_command_name __ARGS((int idx));
|
||||
# define IS_USER_CMDIDX(idx) (FALSE)
|
||||
#endif
|
||||
|
||||
static int compute_buffer_local_count __ARGS((int addr_type, int lnum, int local));
|
||||
static int compute_buffer_local_count(int addr_type, int lnum, int local);
|
||||
#ifdef FEAT_EVAL
|
||||
static char_u *do_one_cmd __ARGS((char_u **, int, struct condstack *, char_u *(*fgetline)(int, void *, int), void *cookie));
|
||||
static char_u *do_one_cmd(char_u **, int, struct condstack *, char_u *(*fgetline)(int, void *, int), void *cookie);
|
||||
#else
|
||||
static char_u *do_one_cmd __ARGS((char_u **, int, char_u *(*fgetline)(int, void *, int), void *cookie));
|
||||
static char_u *do_one_cmd(char_u **, int, char_u *(*fgetline)(int, void *, int), void *cookie);
|
||||
static int if_level = 0; /* depth in :if */
|
||||
#endif
|
||||
static void append_command __ARGS((char_u *cmd));
|
||||
static char_u *find_command __ARGS((exarg_T *eap, int *full));
|
||||
static void append_command(char_u *cmd);
|
||||
static char_u *find_command(exarg_T *eap, int *full);
|
||||
|
||||
static void ex_abbreviate __ARGS((exarg_T *eap));
|
||||
static void ex_map __ARGS((exarg_T *eap));
|
||||
static void ex_unmap __ARGS((exarg_T *eap));
|
||||
static void ex_mapclear __ARGS((exarg_T *eap));
|
||||
static void ex_abclear __ARGS((exarg_T *eap));
|
||||
static void ex_abbreviate(exarg_T *eap);
|
||||
static void ex_map(exarg_T *eap);
|
||||
static void ex_unmap(exarg_T *eap);
|
||||
static void ex_mapclear(exarg_T *eap);
|
||||
static void ex_abclear(exarg_T *eap);
|
||||
#ifndef FEAT_MENU
|
||||
# define ex_emenu ex_ni
|
||||
# define ex_menu ex_ni
|
||||
# define ex_menutranslate ex_ni
|
||||
#endif
|
||||
#ifdef FEAT_AUTOCMD
|
||||
static void ex_autocmd __ARGS((exarg_T *eap));
|
||||
static void ex_doautocmd __ARGS((exarg_T *eap));
|
||||
static void ex_autocmd(exarg_T *eap);
|
||||
static void ex_doautocmd(exarg_T *eap);
|
||||
#else
|
||||
# define ex_autocmd ex_ni
|
||||
# define ex_doautocmd ex_ni
|
||||
# define ex_doautoall ex_ni
|
||||
#endif
|
||||
#ifdef FEAT_LISTCMDS
|
||||
static void ex_bunload __ARGS((exarg_T *eap));
|
||||
static void ex_buffer __ARGS((exarg_T *eap));
|
||||
static void ex_bmodified __ARGS((exarg_T *eap));
|
||||
static void ex_bnext __ARGS((exarg_T *eap));
|
||||
static void ex_bprevious __ARGS((exarg_T *eap));
|
||||
static void ex_brewind __ARGS((exarg_T *eap));
|
||||
static void ex_blast __ARGS((exarg_T *eap));
|
||||
static void ex_bunload(exarg_T *eap);
|
||||
static void ex_buffer(exarg_T *eap);
|
||||
static void ex_bmodified(exarg_T *eap);
|
||||
static void ex_bnext(exarg_T *eap);
|
||||
static void ex_bprevious(exarg_T *eap);
|
||||
static void ex_brewind(exarg_T *eap);
|
||||
static void ex_blast(exarg_T *eap);
|
||||
#else
|
||||
# define ex_bunload ex_ni
|
||||
# define ex_buffer ex_ni
|
||||
@@ -111,9 +111,9 @@ static void ex_blast __ARGS((exarg_T *eap));
|
||||
#if !defined(FEAT_LISTCMDS) || !defined(FEAT_WINDOWS)
|
||||
# define ex_buffer_all ex_ni
|
||||
#endif
|
||||
static char_u *getargcmd __ARGS((char_u **));
|
||||
static char_u *skip_cmd_arg __ARGS((char_u *p, int rembs));
|
||||
static int getargopt __ARGS((exarg_T *eap));
|
||||
static char_u *getargcmd(char_u **);
|
||||
static char_u *skip_cmd_arg(char_u *p, int rembs);
|
||||
static int getargopt(exarg_T *eap);
|
||||
#ifndef FEAT_QUICKFIX
|
||||
# define ex_make ex_ni
|
||||
# define ex_cbuffer ex_ni
|
||||
@@ -134,9 +134,9 @@ static int getargopt __ARGS((exarg_T *eap));
|
||||
# define ex_cexpr ex_ni
|
||||
#endif
|
||||
|
||||
static int check_more __ARGS((int, int));
|
||||
static linenr_T get_address __ARGS((exarg_T *, char_u **, int addr_type, int skip, int to_other_file));
|
||||
static void get_flags __ARGS((exarg_T *eap));
|
||||
static int check_more(int, int);
|
||||
static linenr_T get_address(exarg_T *, char_u **, int addr_type, int skip, int to_other_file);
|
||||
static void get_flags(exarg_T *eap);
|
||||
#if !defined(FEAT_PERL) \
|
||||
|| !defined(FEAT_PYTHON) || !defined(FEAT_PYTHON3) \
|
||||
|| !defined(FEAT_TCL) \
|
||||
@@ -144,30 +144,30 @@ static void get_flags __ARGS((exarg_T *eap));
|
||||
|| !defined(FEAT_LUA) \
|
||||
|| !defined(FEAT_MZSCHEME)
|
||||
# define HAVE_EX_SCRIPT_NI
|
||||
static void ex_script_ni __ARGS((exarg_T *eap));
|
||||
static void ex_script_ni(exarg_T *eap);
|
||||
#endif
|
||||
static char_u *invalid_range __ARGS((exarg_T *eap));
|
||||
static void correct_range __ARGS((exarg_T *eap));
|
||||
static char_u *invalid_range(exarg_T *eap);
|
||||
static void correct_range(exarg_T *eap);
|
||||
#ifdef FEAT_QUICKFIX
|
||||
static char_u *replace_makeprg __ARGS((exarg_T *eap, char_u *p, char_u **cmdlinep));
|
||||
static char_u *replace_makeprg(exarg_T *eap, char_u *p, char_u **cmdlinep);
|
||||
#endif
|
||||
static char_u *repl_cmdline __ARGS((exarg_T *eap, char_u *src, int srclen, char_u *repl, char_u **cmdlinep));
|
||||
static void ex_highlight __ARGS((exarg_T *eap));
|
||||
static void ex_colorscheme __ARGS((exarg_T *eap));
|
||||
static void ex_quit __ARGS((exarg_T *eap));
|
||||
static void ex_cquit __ARGS((exarg_T *eap));
|
||||
static void ex_quit_all __ARGS((exarg_T *eap));
|
||||
static char_u *repl_cmdline(exarg_T *eap, char_u *src, int srclen, char_u *repl, char_u **cmdlinep);
|
||||
static void ex_highlight(exarg_T *eap);
|
||||
static void ex_colorscheme(exarg_T *eap);
|
||||
static void ex_quit(exarg_T *eap);
|
||||
static void ex_cquit(exarg_T *eap);
|
||||
static void ex_quit_all(exarg_T *eap);
|
||||
#ifdef FEAT_WINDOWS
|
||||
static void ex_close __ARGS((exarg_T *eap));
|
||||
static void ex_win_close __ARGS((int forceit, win_T *win, tabpage_T *tp));
|
||||
static void ex_only __ARGS((exarg_T *eap));
|
||||
static void ex_resize __ARGS((exarg_T *eap));
|
||||
static void ex_stag __ARGS((exarg_T *eap));
|
||||
static void ex_tabclose __ARGS((exarg_T *eap));
|
||||
static void ex_tabonly __ARGS((exarg_T *eap));
|
||||
static void ex_tabnext __ARGS((exarg_T *eap));
|
||||
static void ex_tabmove __ARGS((exarg_T *eap));
|
||||
static void ex_tabs __ARGS((exarg_T *eap));
|
||||
static void ex_close(exarg_T *eap);
|
||||
static void ex_win_close(int forceit, win_T *win, tabpage_T *tp);
|
||||
static void ex_only(exarg_T *eap);
|
||||
static void ex_resize(exarg_T *eap);
|
||||
static void ex_stag(exarg_T *eap);
|
||||
static void ex_tabclose(exarg_T *eap);
|
||||
static void ex_tabonly(exarg_T *eap);
|
||||
static void ex_tabnext(exarg_T *eap);
|
||||
static void ex_tabmove(exarg_T *eap);
|
||||
static void ex_tabs(exarg_T *eap);
|
||||
#else
|
||||
# define ex_close ex_ni
|
||||
# define ex_only ex_ni
|
||||
@@ -182,52 +182,52 @@ static void ex_tabs __ARGS((exarg_T *eap));
|
||||
# define ex_tabonly ex_ni
|
||||
#endif
|
||||
#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
|
||||
static void ex_pclose __ARGS((exarg_T *eap));
|
||||
static void ex_ptag __ARGS((exarg_T *eap));
|
||||
static void ex_pedit __ARGS((exarg_T *eap));
|
||||
static void ex_pclose(exarg_T *eap);
|
||||
static void ex_ptag(exarg_T *eap);
|
||||
static void ex_pedit(exarg_T *eap);
|
||||
#else
|
||||
# define ex_pclose ex_ni
|
||||
# define ex_ptag ex_ni
|
||||
# define ex_pedit ex_ni
|
||||
#endif
|
||||
static void ex_hide __ARGS((exarg_T *eap));
|
||||
static void ex_stop __ARGS((exarg_T *eap));
|
||||
static void ex_exit __ARGS((exarg_T *eap));
|
||||
static void ex_print __ARGS((exarg_T *eap));
|
||||
static void ex_hide(exarg_T *eap);
|
||||
static void ex_stop(exarg_T *eap);
|
||||
static void ex_exit(exarg_T *eap);
|
||||
static void ex_print(exarg_T *eap);
|
||||
#ifdef FEAT_BYTEOFF
|
||||
static void ex_goto __ARGS((exarg_T *eap));
|
||||
static void ex_goto(exarg_T *eap);
|
||||
#else
|
||||
# define ex_goto ex_ni
|
||||
#endif
|
||||
static void ex_shell __ARGS((exarg_T *eap));
|
||||
static void ex_preserve __ARGS((exarg_T *eap));
|
||||
static void ex_recover __ARGS((exarg_T *eap));
|
||||
static void ex_shell(exarg_T *eap);
|
||||
static void ex_preserve(exarg_T *eap);
|
||||
static void ex_recover(exarg_T *eap);
|
||||
#ifndef FEAT_LISTCMDS
|
||||
# define ex_argedit ex_ni
|
||||
# define ex_argadd ex_ni
|
||||
# define ex_argdelete ex_ni
|
||||
# define ex_listdo ex_ni
|
||||
#endif
|
||||
static void ex_mode __ARGS((exarg_T *eap));
|
||||
static void ex_wrongmodifier __ARGS((exarg_T *eap));
|
||||
static void ex_find __ARGS((exarg_T *eap));
|
||||
static void ex_open __ARGS((exarg_T *eap));
|
||||
static void ex_edit __ARGS((exarg_T *eap));
|
||||
static void ex_mode(exarg_T *eap);
|
||||
static void ex_wrongmodifier(exarg_T *eap);
|
||||
static void ex_find(exarg_T *eap);
|
||||
static void ex_open(exarg_T *eap);
|
||||
static void ex_edit(exarg_T *eap);
|
||||
#if !defined(FEAT_GUI) && !defined(FEAT_CLIENTSERVER)
|
||||
# define ex_drop ex_ni
|
||||
#endif
|
||||
#ifndef FEAT_GUI
|
||||
# define ex_gui ex_nogui
|
||||
static void ex_nogui __ARGS((exarg_T *eap));
|
||||
static void ex_nogui(exarg_T *eap);
|
||||
#endif
|
||||
#if defined(FEAT_GUI_W32) && defined(FEAT_MENU) && defined(FEAT_TEAROFF)
|
||||
static void ex_tearoff __ARGS((exarg_T *eap));
|
||||
static void ex_tearoff(exarg_T *eap);
|
||||
#else
|
||||
# define ex_tearoff ex_ni
|
||||
#endif
|
||||
#if defined(FEAT_MENU) && (defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_GTK) \
|
||||
|| defined(FEAT_GUI_MACVIM))
|
||||
static void ex_popup __ARGS((exarg_T *eap));
|
||||
static void ex_popup(exarg_T *eap);
|
||||
#else
|
||||
# define ex_popup ex_ni
|
||||
#endif
|
||||
@@ -304,52 +304,52 @@ static void ex_popup __ARGS((exarg_T *eap));
|
||||
#ifndef FEAT_KEYMAP
|
||||
# define ex_loadkeymap ex_ni
|
||||
#endif
|
||||
static void ex_swapname __ARGS((exarg_T *eap));
|
||||
static void ex_syncbind __ARGS((exarg_T *eap));
|
||||
static void ex_read __ARGS((exarg_T *eap));
|
||||
static void ex_pwd __ARGS((exarg_T *eap));
|
||||
static void ex_equal __ARGS((exarg_T *eap));
|
||||
static void ex_sleep __ARGS((exarg_T *eap));
|
||||
static void do_exmap __ARGS((exarg_T *eap, int isabbrev));
|
||||
static void ex_winsize __ARGS((exarg_T *eap));
|
||||
static void ex_swapname(exarg_T *eap);
|
||||
static void ex_syncbind(exarg_T *eap);
|
||||
static void ex_read(exarg_T *eap);
|
||||
static void ex_pwd(exarg_T *eap);
|
||||
static void ex_equal(exarg_T *eap);
|
||||
static void ex_sleep(exarg_T *eap);
|
||||
static void do_exmap(exarg_T *eap, int isabbrev);
|
||||
static void ex_winsize(exarg_T *eap);
|
||||
#ifdef FEAT_WINDOWS
|
||||
static void ex_wincmd __ARGS((exarg_T *eap));
|
||||
static void ex_wincmd(exarg_T *eap);
|
||||
#else
|
||||
# define ex_wincmd ex_ni
|
||||
#endif
|
||||
#if defined(FEAT_GUI) || defined(UNIX) || defined(VMS) || defined(MSWIN)
|
||||
static void ex_winpos __ARGS((exarg_T *eap));
|
||||
static void ex_winpos(exarg_T *eap);
|
||||
#else
|
||||
# define ex_winpos ex_ni
|
||||
#endif
|
||||
static void ex_operators __ARGS((exarg_T *eap));
|
||||
static void ex_put __ARGS((exarg_T *eap));
|
||||
static void ex_copymove __ARGS((exarg_T *eap));
|
||||
static void ex_submagic __ARGS((exarg_T *eap));
|
||||
static void ex_join __ARGS((exarg_T *eap));
|
||||
static void ex_at __ARGS((exarg_T *eap));
|
||||
static void ex_bang __ARGS((exarg_T *eap));
|
||||
static void ex_undo __ARGS((exarg_T *eap));
|
||||
static void ex_operators(exarg_T *eap);
|
||||
static void ex_put(exarg_T *eap);
|
||||
static void ex_copymove(exarg_T *eap);
|
||||
static void ex_submagic(exarg_T *eap);
|
||||
static void ex_join(exarg_T *eap);
|
||||
static void ex_at(exarg_T *eap);
|
||||
static void ex_bang(exarg_T *eap);
|
||||
static void ex_undo(exarg_T *eap);
|
||||
#ifdef FEAT_PERSISTENT_UNDO
|
||||
static void ex_wundo __ARGS((exarg_T *eap));
|
||||
static void ex_rundo __ARGS((exarg_T *eap));
|
||||
static void ex_wundo(exarg_T *eap);
|
||||
static void ex_rundo(exarg_T *eap);
|
||||
#endif
|
||||
static void ex_redo __ARGS((exarg_T *eap));
|
||||
static void ex_later __ARGS((exarg_T *eap));
|
||||
static void ex_redir __ARGS((exarg_T *eap));
|
||||
static void ex_redraw __ARGS((exarg_T *eap));
|
||||
static void ex_redrawstatus __ARGS((exarg_T *eap));
|
||||
static void close_redir __ARGS((void));
|
||||
static void ex_mkrc __ARGS((exarg_T *eap));
|
||||
static void ex_mark __ARGS((exarg_T *eap));
|
||||
static void ex_redo(exarg_T *eap);
|
||||
static void ex_later(exarg_T *eap);
|
||||
static void ex_redir(exarg_T *eap);
|
||||
static void ex_redraw(exarg_T *eap);
|
||||
static void ex_redrawstatus(exarg_T *eap);
|
||||
static void close_redir(void);
|
||||
static void ex_mkrc(exarg_T *eap);
|
||||
static void ex_mark(exarg_T *eap);
|
||||
#ifdef FEAT_USR_CMDS
|
||||
static char_u *uc_fun_cmd __ARGS((void));
|
||||
static char_u *find_ucmd __ARGS((exarg_T *eap, char_u *p, int *full, expand_T *xp, int *compl));
|
||||
static char_u *uc_fun_cmd(void);
|
||||
static char_u *find_ucmd(exarg_T *eap, char_u *p, int *full, expand_T *xp, int *compl);
|
||||
#endif
|
||||
#ifdef FEAT_EX_EXTRA
|
||||
static void ex_normal __ARGS((exarg_T *eap));
|
||||
static void ex_startinsert __ARGS((exarg_T *eap));
|
||||
static void ex_stopinsert __ARGS((exarg_T *eap));
|
||||
static void ex_normal(exarg_T *eap);
|
||||
static void ex_startinsert(exarg_T *eap);
|
||||
static void ex_stopinsert(exarg_T *eap);
|
||||
#else
|
||||
# define ex_normal ex_ni
|
||||
# define ex_align ex_ni
|
||||
@@ -360,19 +360,19 @@ static void ex_stopinsert __ARGS((exarg_T *eap));
|
||||
# define ex_sort ex_ni
|
||||
#endif
|
||||
#ifdef FEAT_FIND_ID
|
||||
static void ex_checkpath __ARGS((exarg_T *eap));
|
||||
static void ex_findpat __ARGS((exarg_T *eap));
|
||||
static void ex_checkpath(exarg_T *eap);
|
||||
static void ex_findpat(exarg_T *eap);
|
||||
#else
|
||||
# define ex_findpat ex_ni
|
||||
# define ex_checkpath ex_ni
|
||||
#endif
|
||||
#if defined(FEAT_FIND_ID) && defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
|
||||
static void ex_psearch __ARGS((exarg_T *eap));
|
||||
static void ex_psearch(exarg_T *eap);
|
||||
#else
|
||||
# define ex_psearch ex_ni
|
||||
#endif
|
||||
static void ex_tag __ARGS((exarg_T *eap));
|
||||
static void ex_tag_cmd __ARGS((exarg_T *eap, char_u *name));
|
||||
static void ex_tag(exarg_T *eap);
|
||||
static void ex_tag_cmd(exarg_T *eap, char_u *name);
|
||||
#ifndef FEAT_EVAL
|
||||
# define ex_scriptnames ex_ni
|
||||
# define ex_finish ex_ni
|
||||
@@ -402,12 +402,12 @@ static void ex_tag_cmd __ARGS((exarg_T *eap, char_u *name));
|
||||
# define ex_return ex_ni
|
||||
# define ex_oldfiles ex_ni
|
||||
#endif
|
||||
static char_u *arg_all __ARGS((void));
|
||||
static char_u *arg_all(void);
|
||||
#ifdef FEAT_SESSION
|
||||
static int makeopens __ARGS((FILE *fd, char_u *dirnow));
|
||||
static int put_view __ARGS((FILE *fd, win_T *wp, int add_edit, unsigned *flagp, int current_arg_idx));
|
||||
static void ex_loadview __ARGS((exarg_T *eap));
|
||||
static char_u *get_view_file __ARGS((int c));
|
||||
static int makeopens(FILE *fd, char_u *dirnow);
|
||||
static int put_view(FILE *fd, win_T *wp, int add_edit, unsigned *flagp, int current_arg_idx);
|
||||
static void ex_loadview(exarg_T *eap);
|
||||
static char_u *get_view_file(int c);
|
||||
static int did_lcd; /* whether ":lcd" was produced for a session */
|
||||
#else
|
||||
# define ex_loadview ex_ni
|
||||
@@ -416,14 +416,14 @@ static int did_lcd; /* whether ":lcd" was produced for a session */
|
||||
# define ex_compiler ex_ni
|
||||
#endif
|
||||
#ifdef FEAT_VIMINFO
|
||||
static void ex_viminfo __ARGS((exarg_T *eap));
|
||||
static void ex_viminfo(exarg_T *eap);
|
||||
#else
|
||||
# define ex_viminfo ex_ni
|
||||
#endif
|
||||
static void ex_behave __ARGS((exarg_T *eap));
|
||||
static void ex_behave(exarg_T *eap);
|
||||
#ifdef FEAT_AUTOCMD
|
||||
static void ex_filetype __ARGS((exarg_T *eap));
|
||||
static void ex_setfiletype __ARGS((exarg_T *eap));
|
||||
static void ex_filetype(exarg_T *eap);
|
||||
static void ex_setfiletype(exarg_T *eap);
|
||||
#else
|
||||
# define ex_filetype ex_ni
|
||||
# define ex_setfiletype ex_ni
|
||||
@@ -436,27 +436,27 @@ static void ex_setfiletype __ARGS((exarg_T *eap));
|
||||
# define ex_diffthis ex_ni
|
||||
# define ex_diffupdate ex_ni
|
||||
#endif
|
||||
static void ex_digraphs __ARGS((exarg_T *eap));
|
||||
static void ex_set __ARGS((exarg_T *eap));
|
||||
static void ex_digraphs(exarg_T *eap);
|
||||
static void ex_set(exarg_T *eap);
|
||||
#if !defined(FEAT_EVAL) || !defined(FEAT_AUTOCMD)
|
||||
# define ex_options ex_ni
|
||||
#endif
|
||||
#ifdef FEAT_SEARCH_EXTRA
|
||||
static void ex_nohlsearch __ARGS((exarg_T *eap));
|
||||
static void ex_match __ARGS((exarg_T *eap));
|
||||
static void ex_nohlsearch(exarg_T *eap);
|
||||
static void ex_match(exarg_T *eap);
|
||||
#else
|
||||
# define ex_nohlsearch ex_ni
|
||||
# define ex_match ex_ni
|
||||
#endif
|
||||
#ifdef FEAT_CRYPT
|
||||
static void ex_X __ARGS((exarg_T *eap));
|
||||
static void ex_X(exarg_T *eap);
|
||||
#else
|
||||
# define ex_X ex_ni
|
||||
#endif
|
||||
#ifdef FEAT_FOLDING
|
||||
static void ex_fold __ARGS((exarg_T *eap));
|
||||
static void ex_foldopen __ARGS((exarg_T *eap));
|
||||
static void ex_folddo __ARGS((exarg_T *eap));
|
||||
static void ex_fold(exarg_T *eap);
|
||||
static void ex_foldopen(exarg_T *eap);
|
||||
static void ex_folddo(exarg_T *eap);
|
||||
#else
|
||||
# define ex_fold ex_ni
|
||||
# define ex_foldopen ex_ni
|
||||
@@ -565,13 +565,13 @@ struct loop_cookie
|
||||
int current_line; /* last read line from growarray */
|
||||
int repeating; /* TRUE when looping a second time */
|
||||
/* When "repeating" is FALSE use "getline" and "cookie" to get lines */
|
||||
char_u *(*getline) __ARGS((int, void *, int));
|
||||
char_u *(*getline)(int, void *, int);
|
||||
void *cookie;
|
||||
};
|
||||
|
||||
static char_u *get_loop_line __ARGS((int c, void *cookie, int indent));
|
||||
static int store_loop_line __ARGS((garray_T *gap, char_u *line));
|
||||
static void free_cmdlines __ARGS((garray_T *gap));
|
||||
static char_u *get_loop_line(int c, void *cookie, int indent);
|
||||
static int store_loop_line(garray_T *gap, char_u *line);
|
||||
static void free_cmdlines(garray_T *gap);
|
||||
|
||||
/* Struct to save a few things while debugging. Used in do_cmdline() only. */
|
||||
struct dbg_stuff
|
||||
@@ -589,8 +589,8 @@ struct dbg_stuff
|
||||
except_T *current_exception;
|
||||
};
|
||||
|
||||
static void save_dbg_stuff __ARGS((struct dbg_stuff *dsp));
|
||||
static void restore_dbg_stuff __ARGS((struct dbg_stuff *dsp));
|
||||
static void save_dbg_stuff(struct dbg_stuff *dsp);
|
||||
static void restore_dbg_stuff(struct dbg_stuff *dsp);
|
||||
|
||||
static void
|
||||
save_dbg_stuff(dsp)
|
||||
@@ -768,7 +768,7 @@ do_cmdline_cmd(cmd)
|
||||
int
|
||||
do_cmdline(cmdline, fgetline, cookie, flags)
|
||||
char_u *cmdline;
|
||||
char_u *(*fgetline) __ARGS((int, void *, int));
|
||||
char_u *(*fgetline)(int, void *, int);
|
||||
void *cookie; /* argument for fgetline() */
|
||||
int flags;
|
||||
{
|
||||
@@ -793,7 +793,7 @@ do_cmdline(cmdline, fgetline, cookie, flags)
|
||||
struct msglist *private_msg_list;
|
||||
|
||||
/* "fgetline" and "cookie" passed to do_one_cmd() */
|
||||
char_u *(*cmd_getline) __ARGS((int, void *, int));
|
||||
char_u *(*cmd_getline)(int, void *, int);
|
||||
void *cmd_cookie;
|
||||
struct loop_cookie cmd_loop_cookie;
|
||||
void *real_cookie;
|
||||
@@ -1634,12 +1634,12 @@ free_cmdlines(gap)
|
||||
*/
|
||||
int
|
||||
getline_equal(fgetline, cookie, func)
|
||||
char_u *(*fgetline) __ARGS((int, void *, int));
|
||||
char_u *(*fgetline)(int, void *, int);
|
||||
void *cookie UNUSED; /* argument for fgetline() */
|
||||
char_u *(*func) __ARGS((int, void *, int));
|
||||
char_u *(*func)(int, void *, int);
|
||||
{
|
||||
#ifdef FEAT_EVAL
|
||||
char_u *(*gp) __ARGS((int, void *, int));
|
||||
char_u *(*gp)(int, void *, int);
|
||||
struct loop_cookie *cp;
|
||||
|
||||
/* When "fgetline" is "get_loop_line()" use the "cookie" to find the
|
||||
@@ -1665,11 +1665,11 @@ getline_equal(fgetline, cookie, func)
|
||||
*/
|
||||
void *
|
||||
getline_cookie(fgetline, cookie)
|
||||
char_u *(*fgetline) __ARGS((int, void *, int)) UNUSED;
|
||||
char_u *(*fgetline)(int, void *, int) UNUSED;
|
||||
void *cookie; /* argument for fgetline() */
|
||||
{
|
||||
# ifdef FEAT_EVAL
|
||||
char_u *(*gp) __ARGS((int, void *, int));
|
||||
char_u *(*gp)(int, void *, int);
|
||||
struct loop_cookie *cp;
|
||||
|
||||
/* When "fgetline" is "get_loop_line()" use the "cookie" to find the
|
||||
@@ -1738,8 +1738,8 @@ compute_buffer_local_count(addr_type, lnum, offset)
|
||||
}
|
||||
|
||||
#ifdef FEAT_WINDOWS
|
||||
static int current_win_nr __ARGS((win_T *win));
|
||||
static int current_tab_nr __ARGS((tabpage_T *tab));
|
||||
static int current_win_nr(win_T *win);
|
||||
static int current_tab_nr(tabpage_T *tab);
|
||||
|
||||
static int
|
||||
current_win_nr(win)
|
||||
@@ -1819,7 +1819,7 @@ do_one_cmd(cmdlinep, sourcing,
|
||||
#ifdef FEAT_EVAL
|
||||
struct condstack *cstack;
|
||||
#endif
|
||||
char_u *(*fgetline) __ARGS((int, void *, int));
|
||||
char_u *(*fgetline)(int, void *, int);
|
||||
void *cookie; /* argument for fgetline() */
|
||||
{
|
||||
char_u *p;
|
||||
@@ -4799,7 +4799,7 @@ correct_range(eap)
|
||||
}
|
||||
|
||||
#ifdef FEAT_QUICKFIX
|
||||
static char_u *skip_grep_pat __ARGS((exarg_T *eap));
|
||||
static char_u *skip_grep_pat(exarg_T *eap);
|
||||
|
||||
/*
|
||||
* For a ":vimgrep" or ":vimgrepadd" command return a pointer past the
|
||||
@@ -5750,11 +5750,11 @@ get_command_name(xp, idx)
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_USR_CMDS) || defined(PROTO)
|
||||
static int uc_add_command __ARGS((char_u *name, size_t name_len, char_u *rep, long argt, long def, int flags, int compl, char_u *compl_arg, int addr_type, int force));
|
||||
static void uc_list __ARGS((char_u *name, size_t name_len));
|
||||
static int uc_scan_attr __ARGS((char_u *attr, size_t len, long *argt, long *def, int *flags, int *compl, char_u **compl_arg, int* attr_type_arg));
|
||||
static char_u *uc_split_args __ARGS((char_u *arg, size_t *lenp));
|
||||
static size_t uc_check_code __ARGS((char_u *code, size_t len, char_u *buf, ucmd_T *cmd, exarg_T *eap, char_u **split_buf, size_t *split_len));
|
||||
static int uc_add_command(char_u *name, size_t name_len, char_u *rep, long argt, long def, int flags, int compl, char_u *compl_arg, int addr_type, int force);
|
||||
static void uc_list(char_u *name, size_t name_len);
|
||||
static int uc_scan_attr(char_u *attr, size_t len, long *argt, long *def, int *flags, int *compl, char_u **compl_arg, int* attr_type_arg);
|
||||
static char_u *uc_split_args(char_u *arg, size_t *lenp);
|
||||
static size_t uc_check_code(char_u *code, size_t len, char_u *buf, ucmd_T *cmd, exarg_T *eap, char_u **split_buf, size_t *split_len);
|
||||
|
||||
static int
|
||||
uc_add_command(name, name_len, rep, argt, def, flags, compl, compl_arg, addr_type, force)
|
||||
@@ -10252,18 +10252,27 @@ exec_normal_cmd(cmd, remap, silent)
|
||||
char_u *cmd;
|
||||
int remap;
|
||||
int silent;
|
||||
{
|
||||
/* Stuff the argument into the typeahead buffer. */
|
||||
ins_typebuf(cmd, remap, 0, TRUE, silent);
|
||||
exec_normal(FALSE);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_EX_EXTRA) || defined(FEAT_MENU) || defined(FEAT_EVAL) \
|
||||
|| defined(PROTO)
|
||||
/*
|
||||
* Execute normal_cmd() until there is no typeahead left.
|
||||
*/
|
||||
void
|
||||
exec_normal(int was_typed)
|
||||
{
|
||||
oparg_T oa;
|
||||
|
||||
/*
|
||||
* Stuff the argument into the typeahead buffer.
|
||||
* Execute normal_cmd() until there is no typeahead left.
|
||||
*/
|
||||
clear_oparg(&oa);
|
||||
finish_op = FALSE;
|
||||
ins_typebuf(cmd, remap, 0, TRUE, silent);
|
||||
while ((!stuff_empty() || (!typebuf_typed() && typebuf.tb_len > 0))
|
||||
&& !got_int)
|
||||
while ((!stuff_empty() || ((was_typed || !typebuf_typed())
|
||||
&& typebuf.tb_len > 0)) && !got_int)
|
||||
{
|
||||
update_topline_cursor();
|
||||
normal_cmd(&oa, TRUE); /* execute a Normal mode cmd */
|
||||
@@ -10941,15 +10950,15 @@ expand_sfile(arg)
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_SESSION
|
||||
static int ses_winsizes __ARGS((FILE *fd, int restore_size,
|
||||
win_T *tab_firstwin));
|
||||
static int ses_win_rec __ARGS((FILE *fd, frame_T *fr));
|
||||
static frame_T *ses_skipframe __ARGS((frame_T *fr));
|
||||
static int ses_do_frame __ARGS((frame_T *fr));
|
||||
static int ses_do_win __ARGS((win_T *wp));
|
||||
static int ses_arglist __ARGS((FILE *fd, char *cmd, garray_T *gap, int fullname, unsigned *flagp));
|
||||
static int ses_put_fname __ARGS((FILE *fd, char_u *name, unsigned *flagp));
|
||||
static int ses_fname __ARGS((FILE *fd, buf_T *buf, unsigned *flagp));
|
||||
static int ses_winsizes(FILE *fd, int restore_size,
|
||||
win_T *tab_firstwin);
|
||||
static int ses_win_rec(FILE *fd, frame_T *fr);
|
||||
static frame_T *ses_skipframe(frame_T *fr);
|
||||
static int ses_do_frame(frame_T *fr);
|
||||
static int ses_do_win(win_T *wp);
|
||||
static int ses_arglist(FILE *fd, char *cmd, garray_T *gap, int fullname, unsigned *flagp);
|
||||
static int ses_put_fname(FILE *fd, char_u *name, unsigned *flagp);
|
||||
static int ses_fname(FILE *fd, buf_T *buf, unsigned *flagp);
|
||||
|
||||
/*
|
||||
* Write openfile commands for the current buffers to an .exrc file.
|
||||
|
||||
+7
-7
@@ -15,9 +15,9 @@
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
|
||||
static void free_msglist __ARGS((struct msglist *l));
|
||||
static int throw_exception __ARGS((void *, int, char_u *));
|
||||
static char_u *get_end_emsg __ARGS((struct condstack *cstack));
|
||||
static void free_msglist(struct msglist *l);
|
||||
static int throw_exception(void *, int, char_u *);
|
||||
static char_u *get_end_emsg(struct condstack *cstack);
|
||||
|
||||
/*
|
||||
* Exception handling terms:
|
||||
@@ -65,10 +65,10 @@ static char_u *get_end_emsg __ARGS((struct condstack *cstack));
|
||||
# define THROW_ON_INTERRUPT_TRUE
|
||||
#endif
|
||||
|
||||
static void catch_exception __ARGS((except_T *excp));
|
||||
static void finish_exception __ARGS((except_T *excp));
|
||||
static void discard_exception __ARGS((except_T *excp, int was_finished));
|
||||
static void report_pending __ARGS((int action, int pending, void *value));
|
||||
static void catch_exception(except_T *excp);
|
||||
static void finish_exception(except_T *excp);
|
||||
static void discard_exception(except_T *excp, int was_finished);
|
||||
static void report_pending(int action, int pending, void *value);
|
||||
|
||||
/*
|
||||
* When several errors appear in a row, setting "force_abort" is delayed until
|
||||
|
||||
+39
-39
@@ -66,11 +66,11 @@ static int hisnum[HIST_COUNT] = {0, 0, 0, 0, 0};
|
||||
/* identifying (unique) number of newest history entry */
|
||||
static int hislen = 0; /* actual length of history tables */
|
||||
|
||||
static int hist_char2type __ARGS((int c));
|
||||
static int hist_char2type(int c);
|
||||
|
||||
static int in_history __ARGS((int, char_u *, int, int, int));
|
||||
static int in_history(int, char_u *, int, int, int);
|
||||
# ifdef FEAT_EVAL
|
||||
static int calc_hist_idx __ARGS((int histype, int num));
|
||||
static int calc_hist_idx(int histype, int num);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@@ -82,50 +82,50 @@ static int cmd_hkmap = 0; /* Hebrew mapping during command line */
|
||||
static int cmd_fkmap = 0; /* Farsi mapping during command line */
|
||||
#endif
|
||||
|
||||
static int cmdline_charsize __ARGS((int idx));
|
||||
static void set_cmdspos __ARGS((void));
|
||||
static void set_cmdspos_cursor __ARGS((void));
|
||||
static int cmdline_charsize(int idx);
|
||||
static void set_cmdspos(void);
|
||||
static void set_cmdspos_cursor(void);
|
||||
#ifdef FEAT_MBYTE
|
||||
static void correct_cmdspos __ARGS((int idx, int cells));
|
||||
static void correct_cmdspos(int idx, int cells);
|
||||
#endif
|
||||
static void alloc_cmdbuff __ARGS((int len));
|
||||
static int realloc_cmdbuff __ARGS((int len));
|
||||
static void draw_cmdline __ARGS((int start, int len));
|
||||
static void save_cmdline __ARGS((struct cmdline_info *ccp));
|
||||
static void restore_cmdline __ARGS((struct cmdline_info *ccp));
|
||||
static int cmdline_paste __ARGS((int regname, int literally, int remcr));
|
||||
static void alloc_cmdbuff(int len);
|
||||
static int realloc_cmdbuff(int len);
|
||||
static void draw_cmdline(int start, int len);
|
||||
static void save_cmdline(struct cmdline_info *ccp);
|
||||
static void restore_cmdline(struct cmdline_info *ccp);
|
||||
static int cmdline_paste(int regname, int literally, int remcr);
|
||||
#if defined(FEAT_XIM) && (defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MACVIM))
|
||||
static void redrawcmd_preedit __ARGS((void));
|
||||
static void redrawcmd_preedit(void);
|
||||
#endif
|
||||
#ifdef FEAT_WILDMENU
|
||||
static void cmdline_del __ARGS((int from));
|
||||
static void cmdline_del(int from);
|
||||
#endif
|
||||
static void redrawcmdprompt __ARGS((void));
|
||||
static void cursorcmd __ARGS((void));
|
||||
static int ccheck_abbr __ARGS((int));
|
||||
static int nextwild __ARGS((expand_T *xp, int type, int options, int escape));
|
||||
static void escape_fname __ARGS((char_u **pp));
|
||||
static int showmatches __ARGS((expand_T *xp, int wildmenu));
|
||||
static void set_expand_context __ARGS((expand_T *xp));
|
||||
static int ExpandFromContext __ARGS((expand_T *xp, char_u *, int *, char_u ***, int));
|
||||
static int expand_showtail __ARGS((expand_T *xp));
|
||||
static void redrawcmdprompt(void);
|
||||
static void cursorcmd(void);
|
||||
static int ccheck_abbr(int);
|
||||
static int nextwild(expand_T *xp, int type, int options, int escape);
|
||||
static void escape_fname(char_u **pp);
|
||||
static int showmatches(expand_T *xp, int wildmenu);
|
||||
static void set_expand_context(expand_T *xp);
|
||||
static int ExpandFromContext(expand_T *xp, char_u *, int *, char_u ***, int);
|
||||
static int expand_showtail(expand_T *xp);
|
||||
#ifdef FEAT_CMDL_COMPL
|
||||
static int expand_shellcmd __ARGS((char_u *filepat, int *num_file, char_u ***file, int flagsarg));
|
||||
static int ExpandRTDir __ARGS((char_u *pat, int *num_file, char_u ***file, char *dirname[]));
|
||||
static int expand_shellcmd(char_u *filepat, int *num_file, char_u ***file, int flagsarg);
|
||||
static int ExpandRTDir(char_u *pat, int *num_file, char_u ***file, char *dirname[]);
|
||||
# ifdef FEAT_CMDHIST
|
||||
static char_u *get_history_arg __ARGS((expand_T *xp, int idx));
|
||||
static char_u *get_history_arg(expand_T *xp, int idx);
|
||||
# endif
|
||||
# if defined(FEAT_USR_CMDS) && defined(FEAT_EVAL)
|
||||
static int ExpandUserDefined __ARGS((expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file));
|
||||
static int ExpandUserList __ARGS((expand_T *xp, int *num_file, char_u ***file));
|
||||
static int ExpandUserDefined(expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file);
|
||||
static int ExpandUserList(expand_T *xp, int *num_file, char_u ***file);
|
||||
# endif
|
||||
#endif
|
||||
#ifdef FEAT_CMDHIST
|
||||
static void clear_hist_entry __ARGS((histentry_T *hisptr));
|
||||
static void clear_hist_entry(histentry_T *hisptr);
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_CMDWIN
|
||||
static int ex_window __ARGS((void));
|
||||
static int ex_window(void);
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_CMDL_COMPL) || defined(PROTO)
|
||||
@@ -133,7 +133,7 @@ static int
|
||||
#ifdef __BORLANDC__
|
||||
_RTLENTRYF
|
||||
#endif
|
||||
sort_func_compare __ARGS((const void *s1, const void *s2));
|
||||
sort_func_compare(const void *s1, const void *s2);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -4541,7 +4541,7 @@ expand_cmdline(xp, str, col, matchcount, matches)
|
||||
/*
|
||||
* Cleanup matches for help tags: remove "@en" if "en" is the only language.
|
||||
*/
|
||||
static void cleanup_help_tags __ARGS((int num_file, char_u **file));
|
||||
static void cleanup_help_tags(int num_file, char_u **file);
|
||||
|
||||
static void
|
||||
cleanup_help_tags(num_file, file)
|
||||
@@ -4720,7 +4720,7 @@ ExpandFromContext(xp, pat, num_file, file, options)
|
||||
static struct expgen
|
||||
{
|
||||
int context;
|
||||
char_u *((*func)__ARGS((expand_T *, int)));
|
||||
char_u *((*func)(expand_T *, int));
|
||||
int ic;
|
||||
int escaped;
|
||||
} tab[] =
|
||||
@@ -4818,7 +4818,7 @@ ExpandGeneric(xp, regmatch, num_file, file, func, escaped)
|
||||
regmatch_T *regmatch;
|
||||
int *num_file;
|
||||
char_u ***file;
|
||||
char_u *((*func)__ARGS((expand_T *, int)));
|
||||
char_u *((*func)(expand_T *, int));
|
||||
/* returns a string from the list */
|
||||
int escaped;
|
||||
{
|
||||
@@ -5023,7 +5023,7 @@ expand_shellcmd(filepat, num_file, file, flagsarg)
|
||||
|
||||
|
||||
# if defined(FEAT_USR_CMDS) && defined(FEAT_EVAL)
|
||||
static void * call_user_expand_func __ARGS((void *(*user_expand_func) __ARGS((char_u *, int, char_u **, int)), expand_T *xp, int *num_file, char_u ***file));
|
||||
static void * call_user_expand_func(void *(*user_expand_func)(char_u *, int, char_u **, int), expand_T *xp, int *num_file, char_u ***file);
|
||||
|
||||
/*
|
||||
* Call "user_expand_func()" to invoke a user defined VimL function and return
|
||||
@@ -5031,7 +5031,7 @@ static void * call_user_expand_func __ARGS((void *(*user_expand_func) __ARGS((ch
|
||||
*/
|
||||
static void *
|
||||
call_user_expand_func(user_expand_func, xp, num_file, file)
|
||||
void *(*user_expand_func) __ARGS((char_u *, int, char_u **, int));
|
||||
void *(*user_expand_func)(char_u *, int, char_u **, int);
|
||||
expand_T *xp;
|
||||
int *num_file;
|
||||
char_u ***file;
|
||||
@@ -5624,7 +5624,7 @@ get_history_idx(histype)
|
||||
return history[histype][hisidx[histype]].hisnum;
|
||||
}
|
||||
|
||||
static struct cmdline_info *get_ccline_ptr __ARGS((void));
|
||||
static struct cmdline_info *get_ccline_ptr(void);
|
||||
|
||||
/*
|
||||
* Get pointer to the command line info to use. cmdline_paste() may clear
|
||||
@@ -6080,7 +6080,7 @@ static int viminfo_hisidx[HIST_COUNT] = {0, 0, 0, 0};
|
||||
static int viminfo_hislen[HIST_COUNT] = {0, 0, 0, 0};
|
||||
static int viminfo_add_at_front = FALSE;
|
||||
|
||||
static int hist_type2char __ARGS((int type, int use_question));
|
||||
static int hist_type2char(int type, int use_question);
|
||||
|
||||
/*
|
||||
* Translate a history type number to the associated character.
|
||||
|
||||
+20
-20
@@ -13,26 +13,26 @@
|
||||
* Included by main.c, when FEAT_FKMAP is defined.
|
||||
*/
|
||||
|
||||
static int toF_Xor_X_ __ARGS((int c));
|
||||
static int F_is_TyE __ARGS((int c));
|
||||
static int F_is_TyC_TyD __ARGS((int c));
|
||||
static int F_is_TyB_TyC_TyD __ARGS((int src, int offset));
|
||||
static int toF_TyB __ARGS((int c));
|
||||
static void put_curr_and_l_to_X __ARGS((int c));
|
||||
static void put_and_redo __ARGS((int c));
|
||||
static void chg_c_toX_orX __ARGS((void));
|
||||
static void chg_c_to_X_orX_ __ARGS((void));
|
||||
static void chg_c_to_X_or_X __ARGS((void));
|
||||
static void chg_l_to_X_orX_ __ARGS((void));
|
||||
static void chg_l_toXor_X __ARGS((void));
|
||||
static void chg_r_to_Xor_X_ __ARGS((void));
|
||||
static int toF_leading __ARGS((int c));
|
||||
static int toF_Rjoin __ARGS((int c));
|
||||
static int canF_Ljoin __ARGS((int c));
|
||||
static int canF_Rjoin __ARGS((int c));
|
||||
static int F_isterm __ARGS((int c));
|
||||
static int toF_ending __ARGS((int c));
|
||||
static void lrswapbuf __ARGS((char_u *buf, int len));
|
||||
static int toF_Xor_X_(int c);
|
||||
static int F_is_TyE(int c);
|
||||
static int F_is_TyC_TyD(int c);
|
||||
static int F_is_TyB_TyC_TyD(int src, int offset);
|
||||
static int toF_TyB(int c);
|
||||
static void put_curr_and_l_to_X(int c);
|
||||
static void put_and_redo(int c);
|
||||
static void chg_c_toX_orX(void);
|
||||
static void chg_c_to_X_orX_(void);
|
||||
static void chg_c_to_X_or_X(void);
|
||||
static void chg_l_to_X_orX_(void);
|
||||
static void chg_l_toXor_X(void);
|
||||
static void chg_r_to_Xor_X_(void);
|
||||
static int toF_leading(int c);
|
||||
static int toF_Rjoin(int c);
|
||||
static int canF_Ljoin(int c);
|
||||
static int canF_Rjoin(int c);
|
||||
static int F_isterm(int c);
|
||||
static int toF_ending(int c);
|
||||
static void lrswapbuf(char_u *buf, int len);
|
||||
|
||||
/*
|
||||
** Convert the given Farsi character into a _X or _X_ type
|
||||
|
||||
@@ -1251,6 +1251,7 @@
|
||||
* +sniff Sniff interface: "--enable-sniff"
|
||||
* +sun_workshop Sun Workshop integration
|
||||
* +netbeans_intg Netbeans integration
|
||||
* +channel Inter process communication
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -1274,6 +1275,13 @@
|
||||
# undef FEAT_NETBEANS_INTG
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The Channel feature requires +eval.
|
||||
*/
|
||||
#if !defined(FEAT_EVAL) && defined(FEAT_CHANNEL)
|
||||
# undef FEAT_CHANNEL
|
||||
#endif
|
||||
|
||||
/*
|
||||
* +signs Allow signs to be displayed to the left of text lines.
|
||||
* Adds the ":sign" command.
|
||||
|
||||
+38
-38
@@ -32,28 +32,28 @@
|
||||
static int is_dev_fd_file(char_u *fname);
|
||||
#endif
|
||||
#ifdef FEAT_MBYTE
|
||||
static char_u *next_fenc __ARGS((char_u **pp));
|
||||
static char_u *next_fenc(char_u **pp);
|
||||
# ifdef FEAT_EVAL
|
||||
static char_u *readfile_charconvert __ARGS((char_u *fname, char_u *fenc, int *fdp));
|
||||
static char_u *readfile_charconvert(char_u *fname, char_u *fenc, int *fdp);
|
||||
# endif
|
||||
#endif
|
||||
#ifdef FEAT_VIMINFO
|
||||
static void check_marks_read __ARGS((void));
|
||||
static void check_marks_read(void);
|
||||
#endif
|
||||
#ifdef FEAT_CRYPT
|
||||
static char_u *check_for_cryptkey __ARGS((char_u *cryptkey, char_u *ptr, long *sizep, off_t *filesizep, int newfile, char_u *fname, int *did_ask));
|
||||
static char_u *check_for_cryptkey(char_u *cryptkey, char_u *ptr, long *sizep, off_t *filesizep, int newfile, char_u *fname, int *did_ask);
|
||||
#endif
|
||||
#ifdef UNIX
|
||||
static void set_file_time __ARGS((char_u *fname, time_t atime, time_t mtime));
|
||||
static void set_file_time(char_u *fname, time_t atime, time_t mtime);
|
||||
#endif
|
||||
static int set_rw_fname __ARGS((char_u *fname, char_u *sfname));
|
||||
static int msg_add_fileformat __ARGS((int eol_type));
|
||||
static void msg_add_eol __ARGS((void));
|
||||
static int check_mtime __ARGS((buf_T *buf, struct stat *s));
|
||||
static int time_differs __ARGS((long t1, long t2));
|
||||
static int set_rw_fname(char_u *fname, char_u *sfname);
|
||||
static int msg_add_fileformat(int eol_type);
|
||||
static void msg_add_eol(void);
|
||||
static int check_mtime(buf_T *buf, struct stat *s);
|
||||
static int time_differs(long t1, long t2);
|
||||
#ifdef FEAT_AUTOCMD
|
||||
static int apply_autocmds_exarg __ARGS((event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, exarg_T *eap));
|
||||
static int au_find_group __ARGS((char_u *name));
|
||||
static int apply_autocmds_exarg(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, exarg_T *eap);
|
||||
static int au_find_group(char_u *name);
|
||||
|
||||
# define AUGROUP_DEFAULT -1 /* default autocmd group */
|
||||
# define AUGROUP_ERROR -2 /* erroneous autocmd group */
|
||||
@@ -119,25 +119,25 @@ struct bw_info
|
||||
#endif
|
||||
};
|
||||
|
||||
static int buf_write_bytes __ARGS((struct bw_info *ip));
|
||||
static int buf_write_bytes(struct bw_info *ip);
|
||||
|
||||
#ifdef FEAT_MBYTE
|
||||
static linenr_T readfile_linenr __ARGS((linenr_T linecnt, char_u *p, char_u *endp));
|
||||
static int ucs2bytes __ARGS((unsigned c, char_u **pp, int flags));
|
||||
static int need_conversion __ARGS((char_u *fenc));
|
||||
static int get_fio_flags __ARGS((char_u *ptr));
|
||||
static char_u *check_for_bom __ARGS((char_u *p, long size, int *lenp, int flags));
|
||||
static int make_bom __ARGS((char_u *buf, char_u *name));
|
||||
static linenr_T readfile_linenr(linenr_T linecnt, char_u *p, char_u *endp);
|
||||
static int ucs2bytes(unsigned c, char_u **pp, int flags);
|
||||
static int need_conversion(char_u *fenc);
|
||||
static int get_fio_flags(char_u *ptr);
|
||||
static char_u *check_for_bom(char_u *p, long size, int *lenp, int flags);
|
||||
static int make_bom(char_u *buf, char_u *name);
|
||||
# ifdef WIN3264
|
||||
static int get_win_fio_flags __ARGS((char_u *ptr));
|
||||
static int get_win_fio_flags(char_u *ptr);
|
||||
# endif
|
||||
# ifdef MACOS_X
|
||||
static int get_mac_fio_flags __ARGS((char_u *ptr));
|
||||
static int get_mac_fio_flags(char_u *ptr);
|
||||
# endif
|
||||
#endif
|
||||
static int move_lines __ARGS((buf_T *frombuf, buf_T *tobuf));
|
||||
static int move_lines(buf_T *frombuf, buf_T *tobuf);
|
||||
#ifdef TEMPDIRNAMES
|
||||
static void vim_settempdir __ARGS((char_u *tempdir));
|
||||
static void vim_settempdir(char_u *tempdir);
|
||||
#endif
|
||||
#ifdef FEAT_AUTOCMD
|
||||
static char *e_auchangedbuf = N_("E812: Autocommands changed buffer or buffer name");
|
||||
@@ -7849,22 +7849,22 @@ static int current_augroup = AUGROUP_DEFAULT;
|
||||
|
||||
static int au_need_clean = FALSE; /* need to delete marked patterns */
|
||||
|
||||
static void show_autocmd __ARGS((AutoPat *ap, event_T event));
|
||||
static void au_remove_pat __ARGS((AutoPat *ap));
|
||||
static void au_remove_cmds __ARGS((AutoPat *ap));
|
||||
static void au_cleanup __ARGS((void));
|
||||
static int au_new_group __ARGS((char_u *name));
|
||||
static void au_del_group __ARGS((char_u *name));
|
||||
static event_T event_name2nr __ARGS((char_u *start, char_u **end));
|
||||
static char_u *event_nr2name __ARGS((event_T event));
|
||||
static char_u *find_end_event __ARGS((char_u *arg, int have_group));
|
||||
static int event_ignored __ARGS((event_T event));
|
||||
static int au_get_grouparg __ARGS((char_u **argp));
|
||||
static int do_autocmd_event __ARGS((event_T event, char_u *pat, int nested, char_u *cmd, int forceit, int group));
|
||||
static int apply_autocmds_group __ARGS((event_T event, char_u *fname, char_u *fname_io, int force, int group, buf_T *buf, exarg_T *eap));
|
||||
static void auto_next_pat __ARGS((AutoPatCmd *apc, int stop_at_last));
|
||||
static void show_autocmd(AutoPat *ap, event_T event);
|
||||
static void au_remove_pat(AutoPat *ap);
|
||||
static void au_remove_cmds(AutoPat *ap);
|
||||
static void au_cleanup(void);
|
||||
static int au_new_group(char_u *name);
|
||||
static void au_del_group(char_u *name);
|
||||
static event_T event_name2nr(char_u *start, char_u **end);
|
||||
static char_u *event_nr2name(event_T event);
|
||||
static char_u *find_end_event(char_u *arg, int have_group);
|
||||
static int event_ignored(event_T event);
|
||||
static int au_get_grouparg(char_u **argp);
|
||||
static int do_autocmd_event(event_T event, char_u *pat, int nested, char_u *cmd, int forceit, int group);
|
||||
static int apply_autocmds_group(event_T event, char_u *fname, char_u *fname_io, int force, int group, buf_T *buf, exarg_T *eap);
|
||||
static void auto_next_pat(AutoPatCmd *apc, int stop_at_last);
|
||||
#if defined(FEAT_AUTOCMD) || defined(FEAT_WILDIGN)
|
||||
static int match_file_pat __ARGS((char_u *pattern, regprog_T **prog, char_u *fname, char_u *sfname, char_u *tail, int allow_dirs));
|
||||
static int match_file_pat(char_u *pattern, regprog_T **prog, char_u *fname, char_u *sfname, char_u *tail, int allow_dirs);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
+36
-36
@@ -43,27 +43,27 @@ typedef struct
|
||||
#define MAX_LEVEL 20 /* maximum fold depth */
|
||||
|
||||
/* static functions {{{2 */
|
||||
static void newFoldLevelWin __ARGS((win_T *wp));
|
||||
static int checkCloseRec __ARGS((garray_T *gap, linenr_T lnum, int level));
|
||||
static int foldFind __ARGS((garray_T *gap, linenr_T lnum, fold_T **fpp));
|
||||
static int foldLevelWin __ARGS((win_T *wp, linenr_T lnum));
|
||||
static void checkupdate __ARGS((win_T *wp));
|
||||
static void setFoldRepeat __ARGS((linenr_T lnum, long count, int do_open));
|
||||
static linenr_T setManualFold __ARGS((linenr_T lnum, int opening, int recurse, int *donep));
|
||||
static linenr_T setManualFoldWin __ARGS((win_T *wp, linenr_T lnum, int opening, int recurse, int *donep));
|
||||
static void foldOpenNested __ARGS((fold_T *fpr));
|
||||
static void deleteFoldEntry __ARGS((garray_T *gap, int idx, int recursive));
|
||||
static void foldMarkAdjustRecurse __ARGS((garray_T *gap, linenr_T line1, linenr_T line2, long amount, long amount_after));
|
||||
static int getDeepestNestingRecurse __ARGS((garray_T *gap));
|
||||
static int check_closed __ARGS((win_T *win, fold_T *fp, int *use_levelp, int level, int *maybe_smallp, linenr_T lnum_off));
|
||||
static void checkSmall __ARGS((win_T *wp, fold_T *fp, linenr_T lnum_off));
|
||||
static void setSmallMaybe __ARGS((garray_T *gap));
|
||||
static void foldCreateMarkers __ARGS((linenr_T start, linenr_T end));
|
||||
static void foldAddMarker __ARGS((linenr_T lnum, char_u *marker, int markerlen));
|
||||
static void deleteFoldMarkers __ARGS((fold_T *fp, int recursive, linenr_T lnum_off));
|
||||
static void foldDelMarker __ARGS((linenr_T lnum, char_u *marker, int markerlen));
|
||||
static void foldUpdateIEMS __ARGS((win_T *wp, linenr_T top, linenr_T bot));
|
||||
static void parseMarker __ARGS((win_T *wp));
|
||||
static void newFoldLevelWin(win_T *wp);
|
||||
static int checkCloseRec(garray_T *gap, linenr_T lnum, int level);
|
||||
static int foldFind(garray_T *gap, linenr_T lnum, fold_T **fpp);
|
||||
static int foldLevelWin(win_T *wp, linenr_T lnum);
|
||||
static void checkupdate(win_T *wp);
|
||||
static void setFoldRepeat(linenr_T lnum, long count, int do_open);
|
||||
static linenr_T setManualFold(linenr_T lnum, int opening, int recurse, int *donep);
|
||||
static linenr_T setManualFoldWin(win_T *wp, linenr_T lnum, int opening, int recurse, int *donep);
|
||||
static void foldOpenNested(fold_T *fpr);
|
||||
static void deleteFoldEntry(garray_T *gap, int idx, int recursive);
|
||||
static void foldMarkAdjustRecurse(garray_T *gap, linenr_T line1, linenr_T line2, long amount, long amount_after);
|
||||
static int getDeepestNestingRecurse(garray_T *gap);
|
||||
static int check_closed(win_T *win, fold_T *fp, int *use_levelp, int level, int *maybe_smallp, linenr_T lnum_off);
|
||||
static void checkSmall(win_T *wp, fold_T *fp, linenr_T lnum_off);
|
||||
static void setSmallMaybe(garray_T *gap);
|
||||
static void foldCreateMarkers(linenr_T start, linenr_T end);
|
||||
static void foldAddMarker(linenr_T lnum, char_u *marker, int markerlen);
|
||||
static void deleteFoldMarkers(fold_T *fp, int recursive, linenr_T lnum_off);
|
||||
static void foldDelMarker(linenr_T lnum, char_u *marker, int markerlen);
|
||||
static void foldUpdateIEMS(win_T *wp, linenr_T top, linenr_T bot);
|
||||
static void parseMarker(win_T *wp);
|
||||
|
||||
static char *e_nofold = N_("E490: No fold found");
|
||||
|
||||
@@ -2142,18 +2142,18 @@ typedef struct
|
||||
static int fold_changed;
|
||||
|
||||
/* Function declarations. {{{2 */
|
||||
static linenr_T foldUpdateIEMSRecurse __ARGS((garray_T *gap, int level, linenr_T startlnum, fline_T *flp, void (*getlevel)__ARGS((fline_T *)), linenr_T bot, int topflags));
|
||||
static int foldInsert __ARGS((garray_T *gap, int i));
|
||||
static void foldSplit __ARGS((garray_T *gap, int i, linenr_T top, linenr_T bot));
|
||||
static void foldRemove __ARGS((garray_T *gap, linenr_T top, linenr_T bot));
|
||||
static void foldMerge __ARGS((fold_T *fp1, garray_T *gap, fold_T *fp2));
|
||||
static void foldlevelIndent __ARGS((fline_T *flp));
|
||||
static linenr_T foldUpdateIEMSRecurse(garray_T *gap, int level, linenr_T startlnum, fline_T *flp, void (*getlevel)(fline_T *), linenr_T bot, int topflags);
|
||||
static int foldInsert(garray_T *gap, int i);
|
||||
static void foldSplit(garray_T *gap, int i, linenr_T top, linenr_T bot);
|
||||
static void foldRemove(garray_T *gap, linenr_T top, linenr_T bot);
|
||||
static void foldMerge(fold_T *fp1, garray_T *gap, fold_T *fp2);
|
||||
static void foldlevelIndent(fline_T *flp);
|
||||
#ifdef FEAT_DIFF
|
||||
static void foldlevelDiff __ARGS((fline_T *flp));
|
||||
static void foldlevelDiff(fline_T *flp);
|
||||
#endif
|
||||
static void foldlevelExpr __ARGS((fline_T *flp));
|
||||
static void foldlevelMarker __ARGS((fline_T *flp));
|
||||
static void foldlevelSyntax __ARGS((fline_T *flp));
|
||||
static void foldlevelExpr(fline_T *flp);
|
||||
static void foldlevelMarker(fline_T *flp);
|
||||
static void foldlevelSyntax(fline_T *flp);
|
||||
|
||||
/* foldUpdateIEMS() {{{2 */
|
||||
/*
|
||||
@@ -2169,7 +2169,7 @@ foldUpdateIEMS(wp, top, bot)
|
||||
linenr_T start;
|
||||
linenr_T end;
|
||||
fline_T fline;
|
||||
void (*getlevel)__ARGS((fline_T *));
|
||||
void (*getlevel)(fline_T *);
|
||||
int level;
|
||||
fold_T *fp;
|
||||
|
||||
@@ -2422,7 +2422,7 @@ foldUpdateIEMSRecurse(gap, level, startlnum, flp, getlevel, bot, topflags)
|
||||
int level;
|
||||
linenr_T startlnum;
|
||||
fline_T *flp;
|
||||
void (*getlevel)__ARGS((fline_T *));
|
||||
void (*getlevel)(fline_T *);
|
||||
linenr_T bot;
|
||||
int topflags; /* flags used by containing fold */
|
||||
{
|
||||
@@ -3314,9 +3314,9 @@ foldlevelSyntax(flp)
|
||||
/* functions for storing the fold state in a View {{{1 */
|
||||
/* put_folds() {{{2 */
|
||||
#if defined(FEAT_SESSION) || defined(PROTO)
|
||||
static int put_folds_recurse __ARGS((FILE *fd, garray_T *gap, linenr_T off));
|
||||
static int put_foldopen_recurse __ARGS((FILE *fd, win_T *wp, garray_T *gap, linenr_T off));
|
||||
static int put_fold_open_close __ARGS((FILE *fd, fold_T *fp, linenr_T off));
|
||||
static int put_folds_recurse(FILE *fd, garray_T *gap, linenr_T off);
|
||||
static int put_foldopen_recurse(FILE *fd, win_T *wp, garray_T *gap, linenr_T off);
|
||||
static int put_fold_open_close(FILE *fd, fold_T *fp, linenr_T off);
|
||||
|
||||
/*
|
||||
* Write commands to "fd" to restore the manual folds in window "wp".
|
||||
|
||||
+20
-19
@@ -112,25 +112,25 @@ static char_u noremapbuf_init[TYPELEN_INIT]; /* initial typebuf.tb_noremap */
|
||||
|
||||
static int last_recorded_len = 0; /* number of last recorded chars */
|
||||
|
||||
static char_u *get_buffcont __ARGS((buffheader_T *, int));
|
||||
static void add_buff __ARGS((buffheader_T *, char_u *, long n));
|
||||
static void add_num_buff __ARGS((buffheader_T *, long));
|
||||
static void add_char_buff __ARGS((buffheader_T *, int));
|
||||
static int read_readbuffers __ARGS((int advance));
|
||||
static int read_readbuf __ARGS((buffheader_T *buf, int advance));
|
||||
static void start_stuff __ARGS((void));
|
||||
static int read_redo __ARGS((int, int));
|
||||
static void copy_redo __ARGS((int));
|
||||
static void init_typebuf __ARGS((void));
|
||||
static void gotchars __ARGS((char_u *, int));
|
||||
static void may_sync_undo __ARGS((void));
|
||||
static void closescript __ARGS((void));
|
||||
static int vgetorpeek __ARGS((int));
|
||||
static void map_free __ARGS((mapblock_T **));
|
||||
static void validate_maphash __ARGS((void));
|
||||
static void showmap __ARGS((mapblock_T *mp, int local));
|
||||
static char_u *get_buffcont(buffheader_T *, int);
|
||||
static void add_buff(buffheader_T *, char_u *, long n);
|
||||
static void add_num_buff(buffheader_T *, long);
|
||||
static void add_char_buff(buffheader_T *, int);
|
||||
static int read_readbuffers(int advance);
|
||||
static int read_readbuf(buffheader_T *buf, int advance);
|
||||
static void start_stuff(void);
|
||||
static int read_redo(int, int);
|
||||
static void copy_redo(int);
|
||||
static void init_typebuf(void);
|
||||
static void gotchars(char_u *, int);
|
||||
static void may_sync_undo(void);
|
||||
static void closescript(void);
|
||||
static int vgetorpeek(int);
|
||||
static void map_free(mapblock_T **);
|
||||
static void validate_maphash(void);
|
||||
static void showmap(mapblock_T *mp, int local);
|
||||
#ifdef FEAT_EVAL
|
||||
static char_u *eval_map_expr __ARGS((char_u *str, int c));
|
||||
static char_u *eval_map_expr(char_u *str, int c);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -2149,7 +2149,8 @@ vgetorpeek(advance)
|
||||
else
|
||||
{
|
||||
LANGMAP_ADJUST(c1,
|
||||
(State & (CMDLINE | INSERT)) == 0);
|
||||
(State & (CMDLINE | INSERT)) == 0
|
||||
&& get_real_state() != SELECTMODE);
|
||||
nolmaplen = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
+11
-10
@@ -845,19 +845,19 @@ EXTERN vimconv_T output_conv; /* type of output conversion */
|
||||
* The value is set in mb_init();
|
||||
*/
|
||||
/* length of char in bytes, including following composing chars */
|
||||
EXTERN int (*mb_ptr2len) __ARGS((char_u *p)) INIT(= latin_ptr2len);
|
||||
EXTERN int (*mb_ptr2len)(char_u *p) INIT(= latin_ptr2len);
|
||||
/* idem, with limit on string length */
|
||||
EXTERN int (*mb_ptr2len_len) __ARGS((char_u *p, int size)) INIT(= latin_ptr2len_len);
|
||||
EXTERN int (*mb_ptr2len_len)(char_u *p, int size) INIT(= latin_ptr2len_len);
|
||||
/* byte length of char */
|
||||
EXTERN int (*mb_char2len) __ARGS((int c)) INIT(= latin_char2len);
|
||||
EXTERN int (*mb_char2len)(int c) INIT(= latin_char2len);
|
||||
/* convert char to bytes, return the length */
|
||||
EXTERN int (*mb_char2bytes) __ARGS((int c, char_u *buf)) INIT(= latin_char2bytes);
|
||||
EXTERN int (*mb_ptr2cells) __ARGS((char_u *p)) INIT(= latin_ptr2cells);
|
||||
EXTERN int (*mb_ptr2cells_len) __ARGS((char_u *p, int size)) INIT(= latin_ptr2cells_len);
|
||||
EXTERN int (*mb_char2cells) __ARGS((int c)) INIT(= latin_char2cells);
|
||||
EXTERN int (*mb_off2cells) __ARGS((unsigned off, unsigned max_off)) INIT(= latin_off2cells);
|
||||
EXTERN int (*mb_ptr2char) __ARGS((char_u *p)) INIT(= latin_ptr2char);
|
||||
EXTERN int (*mb_head_off) __ARGS((char_u *base, char_u *p)) INIT(= latin_head_off);
|
||||
EXTERN int (*mb_char2bytes)(int c, char_u *buf) INIT(= latin_char2bytes);
|
||||
EXTERN int (*mb_ptr2cells)(char_u *p) INIT(= latin_ptr2cells);
|
||||
EXTERN int (*mb_ptr2cells_len)(char_u *p, int size) INIT(= latin_ptr2cells_len);
|
||||
EXTERN int (*mb_char2cells)(int c) INIT(= latin_char2cells);
|
||||
EXTERN int (*mb_off2cells)(unsigned off, unsigned max_off) INIT(= latin_off2cells);
|
||||
EXTERN int (*mb_ptr2char)(char_u *p) INIT(= latin_ptr2char);
|
||||
EXTERN int (*mb_head_off)(char_u *base, char_u *p) INIT(= latin_head_off);
|
||||
|
||||
# if defined(USE_ICONV) && defined(DYNAMIC_ICONV)
|
||||
/* Pointers to functions and variables to be loaded at runtime */
|
||||
@@ -1527,6 +1527,7 @@ EXTERN char_u e_readonly[] INIT(= N_("E45: 'readonly' option is set (add ! to ov
|
||||
#ifdef FEAT_EVAL
|
||||
EXTERN char_u e_readonlyvar[] INIT(= N_("E46: Cannot change read-only variable \"%s\""));
|
||||
EXTERN char_u e_readonlysbx[] INIT(= N_("E794: Cannot set variable in the sandbox: \"%s\""));
|
||||
EXTERN char_u e_emptykey[] INIT(= N_("E713: Cannot use empty key for Dictionary"));
|
||||
#endif
|
||||
#ifdef FEAT_QUICKFIX
|
||||
EXTERN char_u e_readerrf[] INIT(= N_("E47: Error while reading errorfile"));
|
||||
|
||||
@@ -14,34 +14,34 @@
|
||||
gui_T gui;
|
||||
|
||||
#if defined(FEAT_MBYTE) && !defined(FEAT_GUI_GTK)
|
||||
static void set_guifontwide __ARGS((char_u *font_name));
|
||||
static void set_guifontwide(char_u *font_name);
|
||||
#endif
|
||||
static void gui_check_pos __ARGS((void));
|
||||
static void gui_position_components __ARGS((int));
|
||||
static void gui_outstr __ARGS((char_u *, int));
|
||||
static int gui_screenchar __ARGS((int off, int flags, guicolor_T fg, guicolor_T bg, int back));
|
||||
static void gui_check_pos(void);
|
||||
static void gui_position_components(int);
|
||||
static void gui_outstr(char_u *, int);
|
||||
static int gui_screenchar(int off, int flags, guicolor_T fg, guicolor_T bg, int back);
|
||||
#ifdef FEAT_GUI_GTK
|
||||
static int gui_screenstr __ARGS((int off, int len, int flags, guicolor_T fg, guicolor_T bg, int back));
|
||||
static int gui_screenstr(int off, int len, int flags, guicolor_T fg, guicolor_T bg, int back);
|
||||
#endif
|
||||
static void gui_delete_lines __ARGS((int row, int count));
|
||||
static void gui_insert_lines __ARGS((int row, int count));
|
||||
static void fill_mouse_coord __ARGS((char_u *p, int col, int row));
|
||||
static void gui_delete_lines(int row, int count);
|
||||
static void gui_insert_lines(int row, int count);
|
||||
static void fill_mouse_coord(char_u *p, int col, int row);
|
||||
#if defined(FEAT_GUI_TABLINE) || defined(PROTO)
|
||||
static int gui_has_tabline __ARGS((void));
|
||||
static int gui_has_tabline(void);
|
||||
#endif
|
||||
static void gui_do_scrollbar __ARGS((win_T *wp, int which, int enable));
|
||||
static colnr_T scroll_line_len __ARGS((linenr_T lnum));
|
||||
static linenr_T gui_find_longest_lnum __ARGS((void));
|
||||
static void gui_update_horiz_scrollbar __ARGS((int));
|
||||
static void gui_set_fg_color __ARGS((char_u *name));
|
||||
static void gui_set_bg_color __ARGS((char_u *name));
|
||||
static win_T *xy2win __ARGS((int x, int y));
|
||||
static void gui_do_scrollbar(win_T *wp, int which, int enable);
|
||||
static colnr_T scroll_line_len(linenr_T lnum);
|
||||
static linenr_T gui_find_longest_lnum(void);
|
||||
static void gui_update_horiz_scrollbar(int);
|
||||
static void gui_set_fg_color(char_u *name);
|
||||
static void gui_set_bg_color(char_u *name);
|
||||
static win_T *xy2win(int x, int y);
|
||||
|
||||
#if defined(UNIX) && !defined(MACOS_X) && !defined(__APPLE__)
|
||||
# define MAY_FORK
|
||||
static void gui_do_fork __ARGS((void));
|
||||
static void gui_do_fork(void);
|
||||
|
||||
static int gui_read_child_pipe __ARGS((int fd));
|
||||
static int gui_read_child_pipe(int fd);
|
||||
|
||||
/* Return values for gui_read_child_pipe */
|
||||
enum {
|
||||
@@ -52,7 +52,7 @@ enum {
|
||||
|
||||
#endif /* MAY_FORK */
|
||||
|
||||
static void gui_attempt_start __ARGS((void));
|
||||
static void gui_attempt_start(void);
|
||||
|
||||
static int can_update_cursor = TRUE; /* can display the cursor */
|
||||
|
||||
@@ -5064,8 +5064,8 @@ ex_gui(eap)
|
||||
* of the argument ending up after the shell prompt. */
|
||||
msg_clr_eos_force();
|
||||
gui_start();
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
netbeans_gui_register();
|
||||
#ifdef FEAT_CHANNEL
|
||||
channel_gui_register_all();
|
||||
#endif
|
||||
}
|
||||
if (!ends_excmd(*eap->arg))
|
||||
@@ -5078,7 +5078,7 @@ ex_gui(eap)
|
||||
/*
|
||||
* This is shared between Athena, Motif and GTK.
|
||||
*/
|
||||
static void gfp_setname __ARGS((char_u *fname, void *cookie));
|
||||
static void gfp_setname(char_u *fname, void *cookie);
|
||||
|
||||
/*
|
||||
* Callback function for do_in_runtimepath().
|
||||
@@ -5252,7 +5252,7 @@ gui_update_screen()
|
||||
#endif
|
||||
|
||||
#if defined(FIND_REPLACE_DIALOG) || defined(PROTO)
|
||||
static void concat_esc __ARGS((garray_T *gap, char_u *text, int what));
|
||||
static void concat_esc(garray_T *gap, char_u *text, int what);
|
||||
|
||||
/*
|
||||
* Get the text to use in a find/replace dialog. Uses the last search pattern
|
||||
@@ -5478,7 +5478,7 @@ gui_do_findrepl(flags, find_text, repl_text, down)
|
||||
|| defined(FEAT_GUI_MACVIM)
|
||||
|
||||
#ifdef FEAT_WINDOWS
|
||||
static void gui_wingoto_xy __ARGS((int x, int y));
|
||||
static void gui_wingoto_xy(int x, int y);
|
||||
|
||||
/*
|
||||
* Jump to the window at specified point (x, y).
|
||||
|
||||
+55
-55
@@ -172,36 +172,36 @@ static int SFstatus = SEL_FILE_NULL;
|
||||
|
||||
/***************** static functions */
|
||||
|
||||
static void SFsetText __ARGS((char *path));
|
||||
static void SFtextChanged __ARGS((void));
|
||||
static char *SFgetText __ARGS((void));
|
||||
static void SFupdatePath __ARGS((void));
|
||||
static int SFgetDir __ARGS((SFDir *dir));
|
||||
static void SFdrawLists __ARGS((int doScroll));
|
||||
static void SFdrawList __ARGS((int n, int doScroll));
|
||||
static void SFclearList __ARGS((int n, int doScroll));
|
||||
static void SFbuttonPressList __ARGS((Widget w, int n, XButtonPressedEvent *event));
|
||||
static void SFbuttonReleaseList __ARGS((Widget w, int n, XButtonReleasedEvent *event));
|
||||
static void SFdirModTimer __ARGS((XtPointer cl, XtIntervalId *id));
|
||||
static char SFstatChar __ARGS((struct stat *statBuf));
|
||||
static void SFdrawStrings __ARGS((Window w, SFDir *dir, int from, int to));
|
||||
static int SFnewInvertEntry __ARGS((int n, XMotionEvent *event));
|
||||
static void SFinvertEntry __ARGS((int n));
|
||||
static void SFenterList __ARGS((Widget w, int n, XEnterWindowEvent *event));
|
||||
static void SFleaveList __ARGS((Widget w, int n, XEvent *event));
|
||||
static void SFmotionList __ARGS((Widget w, int n, XMotionEvent *event));
|
||||
static void SFvFloatSliderMovedCallback __ARGS((Widget w, XtPointer n, XtPointer fnew));
|
||||
static void SFvSliderMovedCallback __ARGS((Widget w, int n, int nw));
|
||||
static void SFvAreaSelectedCallback __ARGS((Widget w, XtPointer n, XtPointer pnew));
|
||||
static void SFhSliderMovedCallback __ARGS((Widget w, XtPointer n, XtPointer nw));
|
||||
static void SFhAreaSelectedCallback __ARGS((Widget w, XtPointer n, XtPointer pnew));
|
||||
static void SFpathSliderMovedCallback __ARGS((Widget w, XtPointer client_data, XtPointer nw));
|
||||
static void SFpathAreaSelectedCallback __ARGS((Widget w, XtPointer client_data, XtPointer pnew));
|
||||
static Boolean SFworkProc __ARGS((void));
|
||||
static int SFcompareEntries __ARGS((const void *p, const void *q));
|
||||
static void SFprepareToReturn __ARGS((void));
|
||||
static void SFcreateWidgets __ARGS((Widget toplevel, char *prompt, char *ok, char *cancel));
|
||||
static void SFsetColors __ARGS((guicolor_T bg, guicolor_T fg, guicolor_T scroll_bg, guicolor_T scrollfg));
|
||||
static void SFsetText(char *path);
|
||||
static void SFtextChanged(void);
|
||||
static char *SFgetText(void);
|
||||
static void SFupdatePath(void);
|
||||
static int SFgetDir(SFDir *dir);
|
||||
static void SFdrawLists(int doScroll);
|
||||
static void SFdrawList(int n, int doScroll);
|
||||
static void SFclearList(int n, int doScroll);
|
||||
static void SFbuttonPressList(Widget w, int n, XButtonPressedEvent *event);
|
||||
static void SFbuttonReleaseList(Widget w, int n, XButtonReleasedEvent *event);
|
||||
static void SFdirModTimer(XtPointer cl, XtIntervalId *id);
|
||||
static char SFstatChar(struct stat *statBuf);
|
||||
static void SFdrawStrings(Window w, SFDir *dir, int from, int to);
|
||||
static int SFnewInvertEntry(int n, XMotionEvent *event);
|
||||
static void SFinvertEntry(int n);
|
||||
static void SFenterList(Widget w, int n, XEnterWindowEvent *event);
|
||||
static void SFleaveList(Widget w, int n, XEvent *event);
|
||||
static void SFmotionList(Widget w, int n, XMotionEvent *event);
|
||||
static void SFvFloatSliderMovedCallback(Widget w, XtPointer n, XtPointer fnew);
|
||||
static void SFvSliderMovedCallback(Widget w, int n, int nw);
|
||||
static void SFvAreaSelectedCallback(Widget w, XtPointer n, XtPointer pnew);
|
||||
static void SFhSliderMovedCallback(Widget w, XtPointer n, XtPointer nw);
|
||||
static void SFhAreaSelectedCallback(Widget w, XtPointer n, XtPointer pnew);
|
||||
static void SFpathSliderMovedCallback(Widget w, XtPointer client_data, XtPointer nw);
|
||||
static void SFpathAreaSelectedCallback(Widget w, XtPointer client_data, XtPointer pnew);
|
||||
static Boolean SFworkProc(void);
|
||||
static int SFcompareEntries(const void *p, const void *q);
|
||||
static void SFprepareToReturn(void);
|
||||
static void SFcreateWidgets(Widget toplevel, char *prompt, char *ok, char *cancel);
|
||||
static void SFsetColors(guicolor_T bg, guicolor_T fg, guicolor_T scroll_bg, guicolor_T scrollfg);
|
||||
|
||||
/***************** xstat.h */
|
||||
|
||||
@@ -237,7 +237,7 @@ static SFLogin *SFlogins;
|
||||
|
||||
static int SFtwiddle = 0;
|
||||
|
||||
static int SFchdir __ARGS((char *path));
|
||||
static int SFchdir(char *path);
|
||||
|
||||
static int
|
||||
SFchdir(path)
|
||||
@@ -257,7 +257,7 @@ SFchdir(path)
|
||||
return result;
|
||||
}
|
||||
|
||||
static void SFfree __ARGS((int i));
|
||||
static void SFfree(int i);
|
||||
|
||||
static void
|
||||
SFfree(i)
|
||||
@@ -281,7 +281,7 @@ SFfree(i)
|
||||
dir->dir = NULL;
|
||||
}
|
||||
|
||||
static void SFstrdup __ARGS((char **s1, char *s2));
|
||||
static void SFstrdup(char **s1, char *s2);
|
||||
|
||||
static void
|
||||
SFstrdup(s1, s2)
|
||||
@@ -291,7 +291,7 @@ SFstrdup(s1, s2)
|
||||
*s1 = strcpy(XtMalloc((unsigned)(strlen(s2) + 1)), s2);
|
||||
}
|
||||
|
||||
static void SFunreadableDir __ARGS((SFDir *dir));
|
||||
static void SFunreadableDir(SFDir *dir);
|
||||
|
||||
static void
|
||||
SFunreadableDir(dir)
|
||||
@@ -307,7 +307,7 @@ SFunreadableDir(dir)
|
||||
dir->nChars = strlen(cannotOpen);
|
||||
}
|
||||
|
||||
static void SFreplaceText __ARGS((SFDir *dir, char *str));
|
||||
static void SFreplaceText(SFDir *dir, char *str);
|
||||
|
||||
static void
|
||||
SFreplaceText(dir, str)
|
||||
@@ -330,7 +330,7 @@ SFreplaceText(dir, str)
|
||||
SFtextChanged();
|
||||
}
|
||||
|
||||
static void SFexpand __ARGS((char *str));
|
||||
static void SFexpand(char *str);
|
||||
|
||||
static void
|
||||
SFexpand(str)
|
||||
@@ -387,7 +387,7 @@ SFexpand(str)
|
||||
XtFree(growing);
|
||||
}
|
||||
|
||||
static int SFfindFile __ARGS((SFDir *dir, char *str));
|
||||
static int SFfindFile(SFDir *dir, char *str);
|
||||
|
||||
static int
|
||||
SFfindFile(dir, str)
|
||||
@@ -488,7 +488,7 @@ SFfindFile(dir, str)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void SFunselect __ARGS((void));
|
||||
static void SFunselect(void);
|
||||
|
||||
static void
|
||||
SFunselect()
|
||||
@@ -502,7 +502,7 @@ SFunselect()
|
||||
dir->endSelection = -1;
|
||||
}
|
||||
|
||||
static int SFcompareLogins __ARGS((const void *p, const void *q));
|
||||
static int SFcompareLogins(const void *p, const void *q);
|
||||
|
||||
static int
|
||||
SFcompareLogins(p, q)
|
||||
@@ -511,7 +511,7 @@ SFcompareLogins(p, q)
|
||||
return strcmp(((SFLogin *)p)->name, ((SFLogin *)q)->name);
|
||||
}
|
||||
|
||||
static void SFgetHomeDirs __ARGS((void));
|
||||
static void SFgetHomeDirs(void);
|
||||
|
||||
static void
|
||||
SFgetHomeDirs()
|
||||
@@ -579,7 +579,7 @@ SFgetHomeDirs()
|
||||
(void)strcat(entries[i].real, "/");
|
||||
}
|
||||
|
||||
static int SFfindHomeDir __ARGS((char *begin, char *end));
|
||||
static int SFfindHomeDir(char *begin, char *end);
|
||||
|
||||
static int
|
||||
SFfindHomeDir(begin, end)
|
||||
@@ -882,7 +882,7 @@ SFbuttonReleaseList(w, n, event)
|
||||
}
|
||||
}
|
||||
|
||||
static int SFcheckDir __ARGS((int n, SFDir *dir));
|
||||
static int SFcheckDir(int n, SFDir *dir);
|
||||
|
||||
static int
|
||||
SFcheckDir(n, dir)
|
||||
@@ -948,7 +948,7 @@ SFcheckDir(n, dir)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int SFcheckFiles __ARGS((SFDir *dir));
|
||||
static int SFcheckFiles(SFDir *dir);
|
||||
|
||||
static int
|
||||
SFcheckFiles(dir)
|
||||
@@ -1097,7 +1097,7 @@ static int SFcurrentListY;
|
||||
|
||||
static XtIntervalId SFscrollTimerId;
|
||||
|
||||
static void SFinitFont __ARGS((void));
|
||||
static void SFinitFont(void);
|
||||
|
||||
static void
|
||||
SFinitFont()
|
||||
@@ -1148,7 +1148,7 @@ SFinitFont()
|
||||
#endif
|
||||
}
|
||||
|
||||
static void SFcreateGC __ARGS((void));
|
||||
static void SFcreateGC(void);
|
||||
|
||||
static void
|
||||
SFcreateGC()
|
||||
@@ -1283,7 +1283,7 @@ SFclearList(n, doScroll)
|
||||
}
|
||||
}
|
||||
|
||||
static void SFdeleteEntry __ARGS((SFDir *dir, SFEntry *entry));
|
||||
static void SFdeleteEntry(SFDir *dir, SFEntry *entry);
|
||||
|
||||
static void
|
||||
SFdeleteEntry(dir, entry)
|
||||
@@ -1337,7 +1337,7 @@ SFdeleteEntry(dir, entry)
|
||||
#endif
|
||||
}
|
||||
|
||||
static void SFwriteStatChar __ARGS((char *name, int last, struct stat *statBuf));
|
||||
static void SFwriteStatChar(char *name, int last, struct stat *statBuf);
|
||||
|
||||
static void
|
||||
SFwriteStatChar(name, last, statBuf)
|
||||
@@ -1348,7 +1348,7 @@ SFwriteStatChar(name, last, statBuf)
|
||||
name[last] = SFstatChar(statBuf);
|
||||
}
|
||||
|
||||
static int SFstatAndCheck __ARGS((SFDir *dir, SFEntry *entry));
|
||||
static int SFstatAndCheck(SFDir *dir, SFEntry *entry);
|
||||
|
||||
static int
|
||||
SFstatAndCheck(dir, entry)
|
||||
@@ -1562,7 +1562,7 @@ SFinvertEntry(n)
|
||||
SFentryHeight);
|
||||
}
|
||||
|
||||
static unsigned long SFscrollTimerInterval __ARGS((void));
|
||||
static unsigned long SFscrollTimerInterval(void);
|
||||
|
||||
static unsigned long
|
||||
SFscrollTimerInterval()
|
||||
@@ -1591,7 +1591,7 @@ SFscrollTimerInterval()
|
||||
return (unsigned long)t;
|
||||
}
|
||||
|
||||
static void SFscrollTimer __ARGS((XtPointer p, XtIntervalId *id));
|
||||
static void SFscrollTimer(XtPointer p, XtIntervalId *id);
|
||||
|
||||
static void
|
||||
SFscrollTimer(p, id)
|
||||
@@ -2191,7 +2191,7 @@ static char *oneLineTextEditTranslations = "\
|
||||
Ctrl<Key>M: redraw-display()\n\
|
||||
";
|
||||
|
||||
static void SFexposeList __ARGS((Widget w, XtPointer n, XEvent *event, Boolean *cont));
|
||||
static void SFexposeList(Widget w, XtPointer n, XEvent *event, Boolean *cont);
|
||||
|
||||
static void
|
||||
SFexposeList(w, n, event, cont)
|
||||
@@ -2206,7 +2206,7 @@ SFexposeList(w, n, event, cont)
|
||||
SFdrawList((int)(long)n, SF_DO_NOT_SCROLL);
|
||||
}
|
||||
|
||||
static void SFmodVerifyCallback __ARGS((Widget w, XtPointer client_data, XEvent *event, Boolean *cont));
|
||||
static void SFmodVerifyCallback(Widget w, XtPointer client_data, XEvent *event, Boolean *cont);
|
||||
|
||||
static void
|
||||
SFmodVerifyCallback(w, client_data, event, cont)
|
||||
@@ -2224,7 +2224,7 @@ SFmodVerifyCallback(w, client_data, event, cont)
|
||||
SFstatus = SEL_FILE_TEXT;
|
||||
}
|
||||
|
||||
static void SFokCallback __ARGS((Widget w, XtPointer cl, XtPointer cd));
|
||||
static void SFokCallback(Widget w, XtPointer cl, XtPointer cd);
|
||||
|
||||
static void
|
||||
SFokCallback(w, cl, cd)
|
||||
@@ -2241,7 +2241,7 @@ static XtCallbackRec SFokSelect[] =
|
||||
{ NULL, (XtPointer) NULL },
|
||||
};
|
||||
|
||||
static void SFcancelCallback __ARGS((Widget w, XtPointer cl, XtPointer cd));
|
||||
static void SFcancelCallback(Widget w, XtPointer cl, XtPointer cd);
|
||||
|
||||
static void
|
||||
SFcancelCallback(w, cl, cd)
|
||||
@@ -2258,7 +2258,7 @@ static XtCallbackRec SFcancelSelect[] =
|
||||
{ NULL, (XtPointer) NULL },
|
||||
};
|
||||
|
||||
static void SFdismissAction __ARGS((Widget w, XEvent *event, String *params, Cardinal *num_params));
|
||||
static void SFdismissAction(Widget w, XEvent *event, String *params, Cardinal *num_params);
|
||||
|
||||
static void
|
||||
SFdismissAction(w, event, params, num_params)
|
||||
|
||||
+20
-20
@@ -125,27 +125,27 @@ static XtResource resources[] =
|
||||
};
|
||||
#undef Offset
|
||||
|
||||
static void ClassInitialize __ARGS((void));
|
||||
static void Initialize __ARGS((Widget, Widget, ArgList, Cardinal *));
|
||||
static void Destroy __ARGS((Widget));
|
||||
static void Realize __ARGS((Widget, Mask *, XSetWindowAttributes *));
|
||||
static void Resize __ARGS((Widget));
|
||||
static void Redisplay __ARGS((Widget, XEvent *, Region));
|
||||
static Boolean SetValues __ARGS((Widget, Widget, Widget, ArgList, Cardinal *));
|
||||
static void ClassInitialize(void);
|
||||
static void Initialize(Widget, Widget, ArgList, Cardinal *);
|
||||
static void Destroy(Widget);
|
||||
static void Realize(Widget, Mask *, XSetWindowAttributes *);
|
||||
static void Resize(Widget);
|
||||
static void Redisplay(Widget, XEvent *, Region);
|
||||
static Boolean SetValues(Widget, Widget, Widget, ArgList, Cardinal *);
|
||||
|
||||
static void HandleThumb __ARGS((Widget, XEvent *, String *, Cardinal *));
|
||||
static void MoveThumb __ARGS((Widget, XEvent *, String *, Cardinal *));
|
||||
static void NotifyThumb __ARGS((Widget, XEvent *, String *, Cardinal *));
|
||||
static void NotifyScroll __ARGS((Widget, XEvent *, String *, Cardinal *));
|
||||
static void EndScroll __ARGS((Widget, XEvent *, String *, Cardinal *));
|
||||
static void ScrollOneLineUp __ARGS((Widget, XEvent *, String *, Cardinal *));
|
||||
static void ScrollOneLineDown __ARGS((Widget, XEvent *, String *, Cardinal *));
|
||||
static void ScrollPageUp __ARGS((Widget, XEvent *, String *, Cardinal *));
|
||||
static void ScrollPageDown __ARGS((Widget, XEvent *, String *, Cardinal *));
|
||||
static void ScrollSome __ARGS((Widget w, XEvent *event, int call_data));
|
||||
static void _Xaw3dDrawShadows __ARGS((Widget, XEvent *, Region, int));
|
||||
static void AllocTopShadowGC __ARGS((Widget));
|
||||
static void AllocBotShadowGC __ARGS((Widget));
|
||||
static void HandleThumb(Widget, XEvent *, String *, Cardinal *);
|
||||
static void MoveThumb(Widget, XEvent *, String *, Cardinal *);
|
||||
static void NotifyThumb(Widget, XEvent *, String *, Cardinal *);
|
||||
static void NotifyScroll(Widget, XEvent *, String *, Cardinal *);
|
||||
static void EndScroll(Widget, XEvent *, String *, Cardinal *);
|
||||
static void ScrollOneLineUp(Widget, XEvent *, String *, Cardinal *);
|
||||
static void ScrollOneLineDown(Widget, XEvent *, String *, Cardinal *);
|
||||
static void ScrollPageUp(Widget, XEvent *, String *, Cardinal *);
|
||||
static void ScrollPageDown(Widget, XEvent *, String *, Cardinal *);
|
||||
static void ScrollSome(Widget w, XEvent *event, int call_data);
|
||||
static void _Xaw3dDrawShadows(Widget, XEvent *, Region, int);
|
||||
static void AllocTopShadowGC(Widget);
|
||||
static void AllocBotShadowGC(Widget);
|
||||
|
||||
static XtActionsRec actions[] =
|
||||
{
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@ typedef struct _ScrollbarClassRec *ScrollbarWidgetClass;
|
||||
|
||||
extern WidgetClass vim_scrollbarWidgetClass;
|
||||
|
||||
extern void vim_XawScrollbarSetThumb __ARGS((Widget, double, double, double));
|
||||
extern void vim_XawScrollbarSetThumb(Widget, double, double, double);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
+25
-25
@@ -49,15 +49,15 @@ static XtIntervalId timer = 0; /* 0 = expired, otherwise active */
|
||||
|
||||
/* Used to figure out menu ordering */
|
||||
static vimmenu_T *a_cur_menu = NULL;
|
||||
static Cardinal athena_calculate_ins_pos __ARGS((Widget));
|
||||
static Cardinal athena_calculate_ins_pos(Widget);
|
||||
|
||||
static Pixmap gui_athena_create_pullright_pixmap __ARGS((Widget));
|
||||
static void gui_athena_menu_timeout __ARGS((XtPointer, XtIntervalId *));
|
||||
static void gui_athena_popup_callback __ARGS((Widget, XtPointer, XtPointer));
|
||||
static void gui_athena_delayed_arm_action __ARGS((Widget, XEvent *, String *,
|
||||
Cardinal *));
|
||||
static void gui_athena_popdown_submenus_action __ARGS((Widget, XEvent *,
|
||||
String *, Cardinal *));
|
||||
static Pixmap gui_athena_create_pullright_pixmap(Widget);
|
||||
static void gui_athena_menu_timeout(XtPointer, XtIntervalId *);
|
||||
static void gui_athena_popup_callback(Widget, XtPointer, XtPointer);
|
||||
static void gui_athena_delayed_arm_action(Widget, XEvent *, String *,
|
||||
Cardinal *);
|
||||
static void gui_athena_popdown_submenus_action(Widget, XEvent *,
|
||||
String *, Cardinal *);
|
||||
static XtActionsRec pullAction[2] = {
|
||||
{ "menu-delayedpopup", (XtActionProc)gui_athena_delayed_arm_action},
|
||||
{ "menu-popdownsubmenus", (XtActionProc)gui_athena_popdown_submenus_action}
|
||||
@@ -65,16 +65,16 @@ static XtActionsRec pullAction[2] = {
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_TOOLBAR
|
||||
static void gui_mch_reset_focus __ARGS((void));
|
||||
static void gui_mch_reset_focus(void);
|
||||
static Widget toolBar = (Widget)0;
|
||||
#endif
|
||||
|
||||
static void gui_athena_scroll_cb_jump __ARGS((Widget, XtPointer, XtPointer));
|
||||
static void gui_athena_scroll_cb_scroll __ARGS((Widget, XtPointer, XtPointer));
|
||||
static void gui_athena_scroll_cb_jump(Widget, XtPointer, XtPointer);
|
||||
static void gui_athena_scroll_cb_scroll(Widget, XtPointer, XtPointer);
|
||||
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_MENU)
|
||||
static void gui_athena_menu_colors __ARGS((Widget id));
|
||||
static void gui_athena_menu_colors(Widget id);
|
||||
#endif
|
||||
static void gui_athena_scroll_colors __ARGS((Widget id));
|
||||
static void gui_athena_scroll_colors(Widget id);
|
||||
|
||||
#ifdef FEAT_MENU
|
||||
static XtTranslations popupTrans, parentTrans, menuTrans, supermenuTrans;
|
||||
@@ -442,8 +442,8 @@ gui_x11_destroy_widgets()
|
||||
# include <X11/xpm.h>
|
||||
# endif
|
||||
|
||||
static void createXpmImages __ARGS((char_u *path, char **xpm, Pixmap *sen));
|
||||
static void get_toolbar_pixmap __ARGS((vimmenu_T *menu, Pixmap *sen));
|
||||
static void createXpmImages(char_u *path, char **xpm, Pixmap *sen);
|
||||
static void get_toolbar_pixmap(vimmenu_T *menu, Pixmap *sen);
|
||||
|
||||
/*
|
||||
* Allocated a pixmap for toolbar menu "menu".
|
||||
@@ -643,13 +643,13 @@ gui_x11_set_back_color()
|
||||
* Menu stuff.
|
||||
*/
|
||||
|
||||
static char_u *make_pull_name __ARGS((char_u * name));
|
||||
static Widget get_popup_entry __ARGS((Widget w));
|
||||
static Widget submenu_widget __ARGS((Widget));
|
||||
static Boolean has_submenu __ARGS((Widget));
|
||||
static void gui_mch_submenu_change __ARGS((vimmenu_T *mp, int colors));
|
||||
static void gui_athena_menu_font __ARGS((Widget id));
|
||||
static Boolean gui_athena_menu_has_submenus __ARGS((Widget, Widget));
|
||||
static char_u *make_pull_name(char_u * name);
|
||||
static Widget get_popup_entry(Widget w);
|
||||
static Widget submenu_widget(Widget);
|
||||
static Boolean has_submenu(Widget);
|
||||
static void gui_mch_submenu_change(vimmenu_T *mp, int colors);
|
||||
static void gui_athena_menu_font(Widget id);
|
||||
static Boolean gui_athena_menu_has_submenus(Widget, Widget);
|
||||
|
||||
void
|
||||
gui_mch_enable_menu(flag)
|
||||
@@ -2066,9 +2066,9 @@ gui_mch_browse(saving, title, dflt, ext, initdir, filter)
|
||||
static int dialogStatus;
|
||||
static Atom dialogatom;
|
||||
|
||||
static void keyhit_callback __ARGS((Widget w, XtPointer client_data, XEvent *event, Boolean *cont));
|
||||
static void butproc __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
||||
static void dialog_wm_handler __ARGS((Widget w, XtPointer client_data, XEvent *event, Boolean *dum));
|
||||
static void keyhit_callback(Widget w, XtPointer client_data, XEvent *event, Boolean *cont);
|
||||
static void butproc(Widget w, XtPointer client_data, XtPointer call_data);
|
||||
static void dialog_wm_handler(Widget w, XtPointer client_data, XEvent *event, Boolean *dum);
|
||||
|
||||
/*
|
||||
* Callback function for the textfield. When CR is hit this works like
|
||||
|
||||
+19
-19
@@ -160,26 +160,26 @@ static BalloonEval *current_beval = NULL;
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_GUI_GTK
|
||||
static void addEventHandler __ARGS((GtkWidget *, BalloonEval *));
|
||||
static void removeEventHandler __ARGS((BalloonEval *));
|
||||
static gint target_event_cb __ARGS((GtkWidget *, GdkEvent *, gpointer));
|
||||
static gint mainwin_event_cb __ARGS((GtkWidget *, GdkEvent *, gpointer));
|
||||
static void pointer_event __ARGS((BalloonEval *, int, int, unsigned));
|
||||
static void key_event __ARGS((BalloonEval *, unsigned, int));
|
||||
static gint timeout_cb __ARGS((gpointer));
|
||||
static gint balloon_expose_event_cb __ARGS((GtkWidget *, GdkEventExpose *, gpointer));
|
||||
static void addEventHandler(GtkWidget *, BalloonEval *);
|
||||
static void removeEventHandler(BalloonEval *);
|
||||
static gint target_event_cb(GtkWidget *, GdkEvent *, gpointer);
|
||||
static gint mainwin_event_cb(GtkWidget *, GdkEvent *, gpointer);
|
||||
static void pointer_event(BalloonEval *, int, int, unsigned);
|
||||
static void key_event(BalloonEval *, unsigned, int);
|
||||
static gint timeout_cb(gpointer);
|
||||
static gint balloon_expose_event_cb(GtkWidget *, GdkEventExpose *, gpointer);
|
||||
#else
|
||||
static void addEventHandler __ARGS((Widget, BalloonEval *));
|
||||
static void removeEventHandler __ARGS((BalloonEval *));
|
||||
static void pointerEventEH __ARGS((Widget, XtPointer, XEvent *, Boolean *));
|
||||
static void pointerEvent __ARGS((BalloonEval *, XEvent *));
|
||||
static void timerRoutine __ARGS((XtPointer, XtIntervalId *));
|
||||
static void addEventHandler(Widget, BalloonEval *);
|
||||
static void removeEventHandler(BalloonEval *);
|
||||
static void pointerEventEH(Widget, XtPointer, XEvent *, Boolean *);
|
||||
static void pointerEvent(BalloonEval *, XEvent *);
|
||||
static void timerRoutine(XtPointer, XtIntervalId *);
|
||||
#endif
|
||||
static void cancelBalloon __ARGS((BalloonEval *));
|
||||
static void requestBalloon __ARGS((BalloonEval *));
|
||||
static void drawBalloon __ARGS((BalloonEval *));
|
||||
static void undrawBalloon __ARGS((BalloonEval *beval));
|
||||
static void createBalloonEvalWindow __ARGS((BalloonEval *));
|
||||
static void cancelBalloon(BalloonEval *);
|
||||
static void requestBalloon(BalloonEval *);
|
||||
static void drawBalloon(BalloonEval *);
|
||||
static void undrawBalloon(BalloonEval *beval);
|
||||
static void createBalloonEvalWindow(BalloonEval *);
|
||||
|
||||
|
||||
|
||||
@@ -195,7 +195,7 @@ static void createBalloonEvalWindow __ARGS((BalloonEval *));
|
||||
gui_mch_create_beval_area(target, mesg, mesgCB, clientData)
|
||||
void *target;
|
||||
char_u *mesg;
|
||||
void (*mesgCB)__ARGS((BalloonEval *, int));
|
||||
void (*mesgCB)(BalloonEval *, int);
|
||||
void *clientData;
|
||||
{
|
||||
#ifndef FEAT_GUI_GTK
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ typedef struct BalloonEvalStruct
|
||||
#endif
|
||||
int ts; /* tabstop setting for this buffer */
|
||||
char_u *msg;
|
||||
void (*msgCB)__ARGS((struct BalloonEvalStruct *, int));
|
||||
void (*msgCB)(struct BalloonEvalStruct *, int);
|
||||
void *clientData; /* For callback */
|
||||
#if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32) \
|
||||
&& !defined(FEAT_GUI_MACVIM)
|
||||
|
||||
+32
-32
@@ -83,29 +83,29 @@ static int tearoff_val = (int)XmTEAR_OFF_ENABLED;
|
||||
static Widget menuBar;
|
||||
#endif
|
||||
|
||||
static void scroll_cb __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
||||
static void scroll_cb(Widget w, XtPointer client_data, XtPointer call_data);
|
||||
#ifdef FEAT_GUI_TABLINE
|
||||
static void tabline_cb __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
||||
static void tabline_button_cb __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
||||
static void tabline_menu_cb __ARGS((Widget w, XtPointer closure, XEvent *e, Boolean *continue_dispatch));
|
||||
static void tabline_balloon_cb __ARGS((BalloonEval *beval, int state));
|
||||
static void tabline_cb(Widget w, XtPointer client_data, XtPointer call_data);
|
||||
static void tabline_button_cb(Widget w, XtPointer client_data, XtPointer call_data);
|
||||
static void tabline_menu_cb(Widget w, XtPointer closure, XEvent *e, Boolean *continue_dispatch);
|
||||
static void tabline_balloon_cb(BalloonEval *beval, int state);
|
||||
#endif
|
||||
#ifdef FEAT_TOOLBAR
|
||||
# ifdef FEAT_FOOTER
|
||||
static void toolbarbutton_enter_cb __ARGS((Widget, XtPointer, XEvent *, Boolean *));
|
||||
static void toolbarbutton_leave_cb __ARGS((Widget, XtPointer, XEvent *, Boolean *));
|
||||
static void toolbarbutton_enter_cb(Widget, XtPointer, XEvent *, Boolean *);
|
||||
static void toolbarbutton_leave_cb(Widget, XtPointer, XEvent *, Boolean *);
|
||||
# endif
|
||||
static void reset_focus __ARGS((void));
|
||||
static void reset_focus(void);
|
||||
#endif
|
||||
#ifdef FEAT_FOOTER
|
||||
static int gui_mch_compute_footer_height __ARGS((void));
|
||||
static int gui_mch_compute_footer_height(void);
|
||||
#endif
|
||||
#ifdef WSDEBUG
|
||||
static void attachDump(Widget, char *);
|
||||
#endif
|
||||
|
||||
static void gui_motif_menu_colors __ARGS((Widget id));
|
||||
static void gui_motif_scroll_colors __ARGS((Widget id));
|
||||
static void gui_motif_menu_colors(Widget id);
|
||||
static void gui_motif_scroll_colors(Widget id);
|
||||
|
||||
#if (XmVersion >= 1002)
|
||||
# define STRING_TAG XmFONTLIST_DEFAULT_TAG
|
||||
@@ -310,7 +310,7 @@ tabline_balloon_cb(beval, state)
|
||||
|
||||
static XtExposeProc old_label_expose = NULL;
|
||||
|
||||
static void label_expose __ARGS((Widget _w, XEvent *_event, Region _region));
|
||||
static void label_expose(Widget _w, XEvent *_event, Region _region);
|
||||
|
||||
static void
|
||||
label_expose(_w, _event, _region)
|
||||
@@ -777,14 +777,14 @@ gui_motif_fontset2fontlist(fontset)
|
||||
* Menu stuff.
|
||||
*/
|
||||
|
||||
static void gui_motif_add_actext __ARGS((vimmenu_T *menu));
|
||||
static void gui_motif_add_actext(vimmenu_T *menu);
|
||||
#if (XmVersion >= 1002)
|
||||
static void toggle_tearoff __ARGS((Widget wid));
|
||||
static void gui_mch_recurse_tearoffs __ARGS((vimmenu_T *menu));
|
||||
static void toggle_tearoff(Widget wid);
|
||||
static void gui_mch_recurse_tearoffs(vimmenu_T *menu);
|
||||
#endif
|
||||
static void submenu_change __ARGS((vimmenu_T *mp, int colors));
|
||||
static void submenu_change(vimmenu_T *mp, int colors);
|
||||
|
||||
static void do_set_mnemonics __ARGS((int enable));
|
||||
static void do_set_mnemonics(int enable);
|
||||
static int menu_enabled = TRUE;
|
||||
|
||||
void
|
||||
@@ -1192,9 +1192,9 @@ gui_mch_compute_menu_height(id)
|
||||
*/
|
||||
#include "gui_x11_pm.h"
|
||||
|
||||
static int check_xpm __ARGS((char_u *path));
|
||||
static char **get_toolbar_pixmap __ARGS((vimmenu_T *menu, char **fname));
|
||||
static int add_pixmap_args __ARGS((vimmenu_T *menu, Arg *args, int n));
|
||||
static int check_xpm(char_u *path);
|
||||
static char **get_toolbar_pixmap(vimmenu_T *menu, char **fname);
|
||||
static int add_pixmap_args(vimmenu_T *menu, Arg *args, int n);
|
||||
|
||||
/*
|
||||
* Read an Xpm file. Return OK or FAIL.
|
||||
@@ -2124,7 +2124,7 @@ suppress_dialog_mnemonics(Widget dialog)
|
||||
}
|
||||
|
||||
#if defined(FEAT_BROWSE) || defined(FEAT_GUI_DIALOG)
|
||||
static void set_fontlist __ARGS((Widget wg));
|
||||
static void set_fontlist(Widget wg);
|
||||
|
||||
/*
|
||||
* Use the 'guifont' or 'guifontset' as a fontlist for a dialog widget.
|
||||
@@ -2197,8 +2197,8 @@ static char *browse_fname = NULL;
|
||||
static XmStringCharSet charset = (XmStringCharSet) XmSTRING_DEFAULT_CHARSET;
|
||||
/* used to set up XmStrings */
|
||||
|
||||
static void DialogCancelCB __ARGS((Widget, XtPointer, XtPointer));
|
||||
static void DialogAcceptCB __ARGS((Widget, XtPointer, XtPointer));
|
||||
static void DialogCancelCB(Widget, XtPointer, XtPointer);
|
||||
static void DialogAcceptCB(Widget, XtPointer, XtPointer);
|
||||
|
||||
/*
|
||||
* This function is used to translate the predefined label text of the
|
||||
@@ -2209,7 +2209,7 @@ static void DialogAcceptCB __ARGS((Widget, XtPointer, XtPointer));
|
||||
* - equalize the messages between different GUI implementations as far as
|
||||
* possible.
|
||||
*/
|
||||
static void set_predefined_label __ARGS((Widget parent, String name, char *new_label));
|
||||
static void set_predefined_label(Widget parent, String name, char *new_label);
|
||||
|
||||
static void
|
||||
set_predefined_label(parent, name, new_label)
|
||||
@@ -2446,8 +2446,8 @@ DialogAcceptCB(w, client_data, call_data)
|
||||
|
||||
static int dialogStatus;
|
||||
|
||||
static void keyhit_callback __ARGS((Widget w, XtPointer client_data, XEvent *event, Boolean *cont));
|
||||
static void butproc __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
||||
static void keyhit_callback(Widget w, XtPointer client_data, XEvent *event, Boolean *cont);
|
||||
static void butproc(Widget w, XtPointer client_data, XtPointer call_data);
|
||||
|
||||
/*
|
||||
* Callback function for the textfield. When CR is hit this works like
|
||||
@@ -3540,12 +3540,12 @@ typedef struct _SharedFindReplace
|
||||
static SharedFindReplace find_widgets = {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
|
||||
static SharedFindReplace repl_widgets = {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
|
||||
|
||||
static void find_replace_destroy_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
||||
static void find_replace_dismiss_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
||||
static void entry_activate_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
||||
static void find_replace_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
||||
static void find_replace_keypress __ARGS((Widget w, SharedFindReplace * frdp, XKeyEvent * event));
|
||||
static void find_replace_dialog_create __ARGS((char_u *entry_text, int do_replace));
|
||||
static void find_replace_destroy_callback(Widget w, XtPointer client_data, XtPointer call_data);
|
||||
static void find_replace_dismiss_callback(Widget w, XtPointer client_data, XtPointer call_data);
|
||||
static void entry_activate_callback(Widget w, XtPointer client_data, XtPointer call_data);
|
||||
static void find_replace_callback(Widget w, XtPointer client_data, XtPointer call_data);
|
||||
static void find_replace_keypress(Widget w, SharedFindReplace * frdp, XKeyEvent * event);
|
||||
static void find_replace_dialog_create(char_u *entry_text, int do_replace);
|
||||
|
||||
static void
|
||||
find_replace_destroy_callback(w, client_data, call_data)
|
||||
|
||||
+5
-24
@@ -331,9 +331,9 @@ gui_mch_set_rendering_options(char_u *s)
|
||||
# define UINT_PTR UINT
|
||||
#endif
|
||||
|
||||
static void make_tooltip __ARGS((BalloonEval *beval, char *text, POINT pt));
|
||||
static void delete_tooltip __ARGS((BalloonEval *beval));
|
||||
static VOID CALLBACK BevalTimerProc __ARGS((HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime));
|
||||
static void make_tooltip(BalloonEval *beval, char *text, POINT pt);
|
||||
static void delete_tooltip(BalloonEval *beval);
|
||||
static VOID CALLBACK BevalTimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
|
||||
|
||||
static BalloonEval *cur_beval = NULL;
|
||||
static UINT_PTR BevalTimerId = 0;
|
||||
@@ -553,9 +553,6 @@ typedef BOOL (WINAPI *TGetMonitorInfo)(_HMONITOR, _MONITORINFO *);
|
||||
static TMonitorFromWindow pMonitorFromWindow = NULL;
|
||||
static TGetMonitorInfo pGetMonitorInfo = NULL;
|
||||
static HANDLE user32_lib = NULL;
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
int WSInitialized = FALSE; /* WinSock is initialized */
|
||||
#endif
|
||||
/*
|
||||
* Return TRUE when running under Windows NT 3.x or Win32s, both of which have
|
||||
* less fancy GUI APIs.
|
||||
@@ -844,6 +841,7 @@ _OnWindowPosChanged(
|
||||
const LPWINDOWPOS lpwpos)
|
||||
{
|
||||
static int x = 0, y = 0, cx = 0, cy = 0;
|
||||
extern int WSInitialized;
|
||||
|
||||
if (WSInitialized && (lpwpos->x != x || lpwpos->y != y
|
||||
|| lpwpos->cx != cx || lpwpos->cy != cy))
|
||||
@@ -4933,7 +4931,7 @@ gui_mch_post_balloon(beval, mesg)
|
||||
gui_mch_create_beval_area(target, mesg, mesgCB, clientData)
|
||||
void *target; /* ignored, always use s_textArea */
|
||||
char_u *mesg;
|
||||
void (*mesgCB)__ARGS((BalloonEval *, int));
|
||||
void (*mesgCB)(BalloonEval *, int);
|
||||
void *clientData;
|
||||
{
|
||||
/* partially stolen from gui_beval.c */
|
||||
@@ -5048,21 +5046,4 @@ netbeans_draw_multisign_indicator(int row)
|
||||
SetPixel(s_hdc, x+3, y++, gui.currFgColor);
|
||||
SetPixel(s_hdc, x+2, y, gui.currFgColor);
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize the Winsock dll.
|
||||
*/
|
||||
void
|
||||
netbeans_init_winsock()
|
||||
{
|
||||
WSADATA wsaData;
|
||||
int wsaerr;
|
||||
|
||||
if (WSInitialized)
|
||||
return;
|
||||
|
||||
wsaerr = WSAStartup(MAKEWORD(2, 2), &wsaData);
|
||||
if (wsaerr == 0)
|
||||
WSInitialized = TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
+7
-4
@@ -320,8 +320,8 @@ static OSVERSIONINFO os_version; /* like it says. Init in gui_mch_init() */
|
||||
|
||||
#ifdef FEAT_BEVAL
|
||||
/* balloon-eval WM_NOTIFY_HANDLER */
|
||||
static void Handle_WM_Notify __ARGS((HWND hwnd, LPNMHDR pnmh));
|
||||
static void TrackUserActivity __ARGS((UINT uMsg));
|
||||
static void Handle_WM_Notify(HWND hwnd, LPNMHDR pnmh);
|
||||
static void TrackUserActivity(UINT uMsg);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -1779,10 +1779,13 @@ process_message(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
#ifdef FEAT_CHANNEL
|
||||
if (msg.message == WM_NETBEANS)
|
||||
{
|
||||
netbeans_read();
|
||||
int channel_idx = channel_socket2idx((sock_T)msg.wParam);
|
||||
|
||||
if (channel_idx >= 0)
|
||||
channel_read(channel_idx);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
+20
-20
@@ -123,9 +123,9 @@ static XFontSet current_fontset = NULL;
|
||||
XDrawImageString16(dpy, win, gc, x, y, (XChar2b *)str, n); \
|
||||
} while (0)
|
||||
|
||||
static int check_fontset_sanity __ARGS((XFontSet fs));
|
||||
static int fontset_width __ARGS((XFontSet fs));
|
||||
static int fontset_ascent __ARGS((XFontSet fs));
|
||||
static int check_fontset_sanity(XFontSet fs);
|
||||
static int fontset_width(XFontSet fs);
|
||||
static int fontset_ascent(XFontSet fs);
|
||||
#endif
|
||||
|
||||
static guicolor_T prev_fg_color = INVALCOLOR;
|
||||
@@ -136,26 +136,26 @@ static guicolor_T prev_sp_color = INVALCOLOR;
|
||||
static XButtonPressedEvent last_mouse_event;
|
||||
#endif
|
||||
|
||||
static int find_closest_color __ARGS((Colormap colormap, XColor *colorPtr));
|
||||
static void gui_x11_timer_cb __ARGS((XtPointer timed_out, XtIntervalId *interval_id));
|
||||
static void gui_x11_visibility_cb __ARGS((Widget w, XtPointer dud, XEvent *event, Boolean *dum));
|
||||
static void gui_x11_expose_cb __ARGS((Widget w, XtPointer dud, XEvent *event, Boolean *dum));
|
||||
static void gui_x11_resize_window_cb __ARGS((Widget w, XtPointer dud, XEvent *event, Boolean *dum));
|
||||
static void gui_x11_focus_change_cb __ARGS((Widget w, XtPointer data, XEvent *event, Boolean *dum));
|
||||
static void gui_x11_enter_cb __ARGS((Widget w, XtPointer data, XEvent *event, Boolean *dum));
|
||||
static void gui_x11_leave_cb __ARGS((Widget w, XtPointer data, XEvent *event, Boolean *dum));
|
||||
static void gui_x11_mouse_cb __ARGS((Widget w, XtPointer data, XEvent *event, Boolean *dum));
|
||||
static int find_closest_color(Colormap colormap, XColor *colorPtr);
|
||||
static void gui_x11_timer_cb(XtPointer timed_out, XtIntervalId *interval_id);
|
||||
static void gui_x11_visibility_cb(Widget w, XtPointer dud, XEvent *event, Boolean *dum);
|
||||
static void gui_x11_expose_cb(Widget w, XtPointer dud, XEvent *event, Boolean *dum);
|
||||
static void gui_x11_resize_window_cb(Widget w, XtPointer dud, XEvent *event, Boolean *dum);
|
||||
static void gui_x11_focus_change_cb(Widget w, XtPointer data, XEvent *event, Boolean *dum);
|
||||
static void gui_x11_enter_cb(Widget w, XtPointer data, XEvent *event, Boolean *dum);
|
||||
static void gui_x11_leave_cb(Widget w, XtPointer data, XEvent *event, Boolean *dum);
|
||||
static void gui_x11_mouse_cb(Widget w, XtPointer data, XEvent *event, Boolean *dum);
|
||||
#ifdef FEAT_SNIFF
|
||||
static void gui_x11_sniff_request_cb __ARGS((XtPointer closure, int *source, XtInputId *id));
|
||||
static void gui_x11_sniff_request_cb(XtPointer closure, int *source, XtInputId *id);
|
||||
#endif
|
||||
static void gui_x11_check_copy_area __ARGS((void));
|
||||
static void gui_x11_check_copy_area(void);
|
||||
#ifdef FEAT_CLIENTSERVER
|
||||
static void gui_x11_send_event_handler __ARGS((Widget, XtPointer, XEvent *, Boolean *));
|
||||
static void gui_x11_send_event_handler(Widget, XtPointer, XEvent *, Boolean *);
|
||||
#endif
|
||||
static void gui_x11_wm_protocol_handler __ARGS((Widget, XtPointer, XEvent *, Boolean *));
|
||||
static void gui_x11_blink_cb __ARGS((XtPointer timed_out, XtIntervalId *interval_id));
|
||||
static Cursor gui_x11_create_blank_mouse __ARGS((void));
|
||||
static void draw_curl __ARGS((int row, int col, int cells));
|
||||
static void gui_x11_wm_protocol_handler(Widget, XtPointer, XEvent *, Boolean *);
|
||||
static void gui_x11_blink_cb(XtPointer timed_out, XtIntervalId *interval_id);
|
||||
static Cursor gui_x11_create_blank_mouse(void);
|
||||
static void draw_curl(int row, int col, int cells);
|
||||
|
||||
|
||||
/*
|
||||
@@ -1312,7 +1312,7 @@ gui_mch_init_check()
|
||||
*/
|
||||
static XtInputId _xsmp_xtinputid;
|
||||
|
||||
static void local_xsmp_handle_requests __ARGS((XtPointer c, int *s, XtInputId *i));
|
||||
static void local_xsmp_handle_requests(XtPointer c, int *s, XtInputId *i);
|
||||
|
||||
static void
|
||||
local_xsmp_handle_requests(c, s, i)
|
||||
|
||||
+4
-4
@@ -35,10 +35,10 @@ static char_u stack[20] = {0};
|
||||
static int last_l = -1, last_ll = -1;
|
||||
static int hangul_keyboard_type = HANGUL_DEFAULT_KEYBOARD;
|
||||
|
||||
static void convert_ks_to_3 __ARGS((const char_u *src, int *fp, int *mp, int *lp));
|
||||
static int convert_3_to_ks __ARGS((int fv, int mv, int lv, char_u *des));
|
||||
static int hangul_automata2 __ARGS((char_u *buf, unsigned int *c));
|
||||
static int hangul_automata3 __ARGS((char_u *buf, unsigned int *c));
|
||||
static void convert_ks_to_3(const char_u *src, int *fp, int *mp, int *lp);
|
||||
static int convert_3_to_ks(int fv, int mv, int lv, char_u *des);
|
||||
static int hangul_automata2(char_u *buf, unsigned int *c);
|
||||
static int hangul_automata3(char_u *buf, unsigned int *c);
|
||||
|
||||
#define push(x) {stack[ sp++ ] = *(x); stack[sp++] = *((x)+1);}
|
||||
#define pop(x) {*((x) + 1) = stack[--sp]; *(x) = stack[--sp];}
|
||||
|
||||
+51
-51
@@ -135,21 +135,21 @@ typedef struct
|
||||
int ff; /* seen form feed character */
|
||||
} prt_pos_T;
|
||||
|
||||
static char_u *parse_list_options __ARGS((char_u *option_str, option_table_T *table, int table_size));
|
||||
static char_u *parse_list_options(char_u *option_str, option_table_T *table, int table_size);
|
||||
|
||||
#ifdef FEAT_SYN_HL
|
||||
static long_u darken_rgb __ARGS((long_u rgb));
|
||||
static long_u prt_get_term_color __ARGS((int colorindex));
|
||||
static long_u darken_rgb(long_u rgb);
|
||||
static long_u prt_get_term_color(int colorindex);
|
||||
#endif
|
||||
static void prt_set_fg __ARGS((long_u fg));
|
||||
static void prt_set_bg __ARGS((long_u bg));
|
||||
static void prt_set_font __ARGS((int bold, int italic, int underline));
|
||||
static void prt_line_number __ARGS((prt_settings_T *psettings, int page_line, linenr_T lnum));
|
||||
static void prt_header __ARGS((prt_settings_T *psettings, int pagenum, linenr_T lnum));
|
||||
static void prt_message __ARGS((char_u *s));
|
||||
static colnr_T hardcopy_line __ARGS((prt_settings_T *psettings, int page_line, prt_pos_T *ppos));
|
||||
static void prt_set_fg(long_u fg);
|
||||
static void prt_set_bg(long_u bg);
|
||||
static void prt_set_font(int bold, int italic, int underline);
|
||||
static void prt_line_number(prt_settings_T *psettings, int page_line, linenr_T lnum);
|
||||
static void prt_header(prt_settings_T *psettings, int pagenum, linenr_T lnum);
|
||||
static void prt_message(char_u *s);
|
||||
static colnr_T hardcopy_line(prt_settings_T *psettings, int page_line, prt_pos_T *ppos);
|
||||
#ifdef FEAT_SYN_HL
|
||||
static void prt_get_attr __ARGS((int hl_id, prt_text_attr_T* pattr, int modec));
|
||||
static void prt_get_attr(int hl_id, prt_text_attr_T* pattr, int modec);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -1337,47 +1337,47 @@ static struct prt_dsc_comment_S prt_dsc_table[] =
|
||||
PRT_DSC_ENDCOMMENTS_TYPE}
|
||||
};
|
||||
|
||||
static void prt_write_file_raw_len __ARGS((char_u *buffer, int bytes));
|
||||
static void prt_write_file __ARGS((char_u *buffer));
|
||||
static void prt_write_file_len __ARGS((char_u *buffer, int bytes));
|
||||
static void prt_write_string __ARGS((char *s));
|
||||
static void prt_write_int __ARGS((int i));
|
||||
static void prt_write_boolean __ARGS((int b));
|
||||
static void prt_def_font __ARGS((char *new_name, char *encoding, int height, char *font));
|
||||
static void prt_real_bits __ARGS((double real, int precision, int *pinteger, int *pfraction));
|
||||
static void prt_write_real __ARGS((double val, int prec));
|
||||
static void prt_def_var __ARGS((char *name, double value, int prec));
|
||||
static void prt_flush_buffer __ARGS((void));
|
||||
static void prt_resource_name __ARGS((char_u *filename, void *cookie));
|
||||
static int prt_find_resource __ARGS((char *name, struct prt_ps_resource_S *resource));
|
||||
static int prt_open_resource __ARGS((struct prt_ps_resource_S *resource));
|
||||
static int prt_check_resource __ARGS((struct prt_ps_resource_S *resource, char_u *version));
|
||||
static void prt_dsc_start __ARGS((void));
|
||||
static void prt_dsc_noarg __ARGS((char *comment));
|
||||
static void prt_dsc_textline __ARGS((char *comment, char *text));
|
||||
static void prt_dsc_text __ARGS((char *comment, char *text));
|
||||
static void prt_dsc_ints __ARGS((char *comment, int count, int *ints));
|
||||
static void prt_dsc_requirements __ARGS((int duplex, int tumble, int collate, int color, int num_copies));
|
||||
static void prt_dsc_docmedia __ARGS((char *paper_name, double width, double height, double weight, char *colour, char *type));
|
||||
static void prt_dsc_resources __ARGS((char *comment, char *type, char *strings));
|
||||
static void prt_dsc_font_resource __ARGS((char *resource, struct prt_ps_font_S *ps_font));
|
||||
static float to_device_units __ARGS((int idx, double physsize, int def_number));
|
||||
static void prt_page_margins __ARGS((double width, double height, double *left, double *right, double *top, double *bottom));
|
||||
static void prt_font_metrics __ARGS((int font_scale));
|
||||
static int prt_get_cpl __ARGS((void));
|
||||
static int prt_get_lpp __ARGS((void));
|
||||
static int prt_add_resource __ARGS((struct prt_ps_resource_S *resource));
|
||||
static int prt_resfile_next_line __ARGS((void));
|
||||
static int prt_resfile_strncmp __ARGS((int offset, char *string, int len));
|
||||
static int prt_resfile_skip_nonws __ARGS((int offset));
|
||||
static int prt_resfile_skip_ws __ARGS((int offset));
|
||||
static int prt_next_dsc __ARGS((struct prt_dsc_line_S *p_dsc_line));
|
||||
static void prt_write_file_raw_len(char_u *buffer, int bytes);
|
||||
static void prt_write_file(char_u *buffer);
|
||||
static void prt_write_file_len(char_u *buffer, int bytes);
|
||||
static void prt_write_string(char *s);
|
||||
static void prt_write_int(int i);
|
||||
static void prt_write_boolean(int b);
|
||||
static void prt_def_font(char *new_name, char *encoding, int height, char *font);
|
||||
static void prt_real_bits(double real, int precision, int *pinteger, int *pfraction);
|
||||
static void prt_write_real(double val, int prec);
|
||||
static void prt_def_var(char *name, double value, int prec);
|
||||
static void prt_flush_buffer(void);
|
||||
static void prt_resource_name(char_u *filename, void *cookie);
|
||||
static int prt_find_resource(char *name, struct prt_ps_resource_S *resource);
|
||||
static int prt_open_resource(struct prt_ps_resource_S *resource);
|
||||
static int prt_check_resource(struct prt_ps_resource_S *resource, char_u *version);
|
||||
static void prt_dsc_start(void);
|
||||
static void prt_dsc_noarg(char *comment);
|
||||
static void prt_dsc_textline(char *comment, char *text);
|
||||
static void prt_dsc_text(char *comment, char *text);
|
||||
static void prt_dsc_ints(char *comment, int count, int *ints);
|
||||
static void prt_dsc_requirements(int duplex, int tumble, int collate, int color, int num_copies);
|
||||
static void prt_dsc_docmedia(char *paper_name, double width, double height, double weight, char *colour, char *type);
|
||||
static void prt_dsc_resources(char *comment, char *type, char *strings);
|
||||
static void prt_dsc_font_resource(char *resource, struct prt_ps_font_S *ps_font);
|
||||
static float to_device_units(int idx, double physsize, int def_number);
|
||||
static void prt_page_margins(double width, double height, double *left, double *right, double *top, double *bottom);
|
||||
static void prt_font_metrics(int font_scale);
|
||||
static int prt_get_cpl(void);
|
||||
static int prt_get_lpp(void);
|
||||
static int prt_add_resource(struct prt_ps_resource_S *resource);
|
||||
static int prt_resfile_next_line(void);
|
||||
static int prt_resfile_strncmp(int offset, char *string, int len);
|
||||
static int prt_resfile_skip_nonws(int offset);
|
||||
static int prt_resfile_skip_ws(int offset);
|
||||
static int prt_next_dsc(struct prt_dsc_line_S *p_dsc_line);
|
||||
#ifdef FEAT_MBYTE
|
||||
static int prt_build_cid_fontname __ARGS((int font, char_u *name, int name_len));
|
||||
static void prt_def_cidfont __ARGS((char *new_name, int height, char *cidfont));
|
||||
static void prt_dup_cidfont __ARGS((char *original_name, char *new_name));
|
||||
static int prt_match_encoding __ARGS((char *p_encoding, struct prt_ps_mbfont_S *p_cmap, struct prt_ps_encoding_S **pp_mbenc));
|
||||
static int prt_match_charset __ARGS((char *p_charset, struct prt_ps_mbfont_S *p_cmap, struct prt_ps_charset_S **pp_mbchar));
|
||||
static int prt_build_cid_fontname(int font, char_u *name, int name_len);
|
||||
static void prt_def_cidfont(char *new_name, int height, char *cidfont);
|
||||
static void prt_dup_cidfont(char *original_name, char *new_name);
|
||||
static int prt_match_encoding(char *p_encoding, struct prt_ps_mbfont_S *p_cmap, struct prt_ps_encoding_S **pp_mbenc);
|
||||
static int prt_match_charset(char *p_charset, struct prt_ps_mbfont_S *p_cmap, struct prt_ps_charset_S **pp_mbchar);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ static long hash_count_perturb = 0; /* count number of "misses" */
|
||||
/* Magic value for algorithm that walks through the array. */
|
||||
#define PERTURB_SHIFT 5
|
||||
|
||||
static int hash_may_resize __ARGS((hashtab_T *ht, int minitems));
|
||||
static int hash_may_resize(hashtab_T *ht, int minitems);
|
||||
|
||||
#if 0 /* currently not used */
|
||||
/*
|
||||
|
||||
+36
-36
@@ -20,43 +20,43 @@
|
||||
#endif
|
||||
#include "if_cscope.h"
|
||||
|
||||
static void cs_usage_msg __ARGS((csid_e x));
|
||||
static int cs_add __ARGS((exarg_T *eap));
|
||||
static void cs_stat_emsg __ARGS((char *fname));
|
||||
static int cs_add_common __ARGS((char *, char *, char *));
|
||||
static int cs_check_for_connections __ARGS((void));
|
||||
static int cs_check_for_tags __ARGS((void));
|
||||
static int cs_cnt_connections __ARGS((void));
|
||||
static void cs_reading_emsg __ARGS((int idx));
|
||||
static int cs_cnt_matches __ARGS((int idx));
|
||||
static char * cs_create_cmd __ARGS((char *csoption, char *pattern));
|
||||
static int cs_create_connection __ARGS((int i));
|
||||
static void do_cscope_general __ARGS((exarg_T *eap, int make_split));
|
||||
static void cs_usage_msg(csid_e x);
|
||||
static int cs_add(exarg_T *eap);
|
||||
static void cs_stat_emsg(char *fname);
|
||||
static int cs_add_common(char *, char *, char *);
|
||||
static int cs_check_for_connections(void);
|
||||
static int cs_check_for_tags(void);
|
||||
static int cs_cnt_connections(void);
|
||||
static void cs_reading_emsg(int idx);
|
||||
static int cs_cnt_matches(int idx);
|
||||
static char * cs_create_cmd(char *csoption, char *pattern);
|
||||
static int cs_create_connection(int i);
|
||||
static void do_cscope_general(exarg_T *eap, int make_split);
|
||||
#ifdef FEAT_QUICKFIX
|
||||
static void cs_file_results __ARGS((FILE *, int *));
|
||||
static void cs_file_results(FILE *, int *);
|
||||
#endif
|
||||
static void cs_fill_results __ARGS((char *, int , int *, char ***,
|
||||
char ***, int *));
|
||||
static int cs_find __ARGS((exarg_T *eap));
|
||||
static int cs_find_common __ARGS((char *opt, char *pat, int, int, int, char_u *cmdline));
|
||||
static int cs_help __ARGS((exarg_T *eap));
|
||||
static void clear_csinfo __ARGS((int i));
|
||||
static int cs_insert_filelist __ARGS((char *, char *, char *,
|
||||
struct stat *));
|
||||
static int cs_kill __ARGS((exarg_T *eap));
|
||||
static void cs_kill_execute __ARGS((int, char *));
|
||||
static cscmd_T * cs_lookup_cmd __ARGS((exarg_T *eap));
|
||||
static char * cs_make_vim_style_matches __ARGS((char *, char *,
|
||||
char *, char *));
|
||||
static char * cs_manage_matches __ARGS((char **, char **, int, mcmd_e));
|
||||
static char * cs_parse_results __ARGS((int cnumber, char *buf, int bufsize, char **context, char **linenumber, char **search));
|
||||
static char * cs_pathcomponents __ARGS((char *path));
|
||||
static void cs_print_tags_priv __ARGS((char **, char **, int));
|
||||
static int cs_read_prompt __ARGS((int));
|
||||
static void cs_release_csp __ARGS((int, int freefnpp));
|
||||
static int cs_reset __ARGS((exarg_T *eap));
|
||||
static char * cs_resolve_file __ARGS((int, char *));
|
||||
static int cs_show __ARGS((exarg_T *eap));
|
||||
static void cs_fill_results(char *, int , int *, char ***,
|
||||
char ***, int *);
|
||||
static int cs_find(exarg_T *eap);
|
||||
static int cs_find_common(char *opt, char *pat, int, int, int, char_u *cmdline);
|
||||
static int cs_help(exarg_T *eap);
|
||||
static void clear_csinfo(int i);
|
||||
static int cs_insert_filelist(char *, char *, char *,
|
||||
struct stat *);
|
||||
static int cs_kill(exarg_T *eap);
|
||||
static void cs_kill_execute(int, char *);
|
||||
static cscmd_T * cs_lookup_cmd(exarg_T *eap);
|
||||
static char * cs_make_vim_style_matches(char *, char *,
|
||||
char *, char *);
|
||||
static char * cs_manage_matches(char **, char **, int, mcmd_e);
|
||||
static char * cs_parse_results(int cnumber, char *buf, int bufsize, char **context, char **linenumber, char **search);
|
||||
static char * cs_pathcomponents(char *path);
|
||||
static void cs_print_tags_priv(char **, char **, int);
|
||||
static int cs_read_prompt(int);
|
||||
static void cs_release_csp(int, int freefnpp);
|
||||
static int cs_reset(exarg_T *eap);
|
||||
static char * cs_resolve_file(int, char *);
|
||||
static int cs_show(exarg_T *eap);
|
||||
|
||||
|
||||
static csinfo_T * csinfo = NULL;
|
||||
@@ -1405,7 +1405,7 @@ clear_csinfo(i)
|
||||
}
|
||||
|
||||
#ifndef UNIX
|
||||
static char *GetWin32Error __ARGS((void));
|
||||
static char *GetWin32Error(void);
|
||||
|
||||
static char *
|
||||
GetWin32Error()
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@
|
||||
|
||||
typedef struct {
|
||||
char * name;
|
||||
int (*func) __ARGS((exarg_T *eap));
|
||||
int (*func)(exarg_T *eap);
|
||||
char * help;
|
||||
char * usage;
|
||||
int cansplit; /* if supports splitting window */
|
||||
|
||||
+7
-1
@@ -499,6 +499,12 @@ luaV_pushtypval(lua_State *L, typval_T *tv)
|
||||
case VAR_DICT:
|
||||
luaV_pushdict(L, tv->vval.v_dict);
|
||||
break;
|
||||
case VAR_SPECIAL:
|
||||
if (tv->vval.v_number <= VVAL_TRUE)
|
||||
lua_pushinteger(L, (int) tv->vval.v_number);
|
||||
else
|
||||
lua_pushnil(L);
|
||||
break;
|
||||
default:
|
||||
lua_pushnil(L);
|
||||
}
|
||||
@@ -510,7 +516,7 @@ luaV_totypval (lua_State *L, int pos, typval_T *tv)
|
||||
{
|
||||
switch(lua_type(L, pos)) {
|
||||
case LUA_TBOOLEAN:
|
||||
tv->v_type = VAR_NUMBER;
|
||||
tv->v_type = VAR_SPECIAL;
|
||||
tv->vval.v_number = (varnumber_T) lua_toboolean(L, pos);
|
||||
break;
|
||||
case LUA_TSTRING:
|
||||
|
||||
+12
-4
@@ -1290,7 +1290,7 @@ mzscheme_init(void)
|
||||
#endif
|
||||
if (load_base_module_failed || startup_mzscheme())
|
||||
{
|
||||
EMSG(_("Exxx: Sorry, this command is disabled, the MzScheme's racket/base module could not be loaded."));
|
||||
EMSG(_("E895: Sorry, this command is disabled, the MzScheme's racket/base module could not be loaded."));
|
||||
return -1;
|
||||
}
|
||||
initialized = TRUE;
|
||||
@@ -3084,6 +3084,14 @@ vim_to_mzscheme_impl(typval_T *vim_value, int depth, Scheme_Hash_Table *visited)
|
||||
|
||||
MZ_GC_UNREG();
|
||||
}
|
||||
else if (vim_value->v_type == VAR_SPECIAL)
|
||||
{
|
||||
if (vim_value->vval.v_number <= VVAL_TRUE)
|
||||
result = scheme_make_integer((long)vim_value->vval.v_number);
|
||||
else
|
||||
result = scheme_null;
|
||||
MZ_GC_CHECK();
|
||||
}
|
||||
else
|
||||
{
|
||||
result = scheme_void;
|
||||
@@ -3148,8 +3156,8 @@ mzscheme_to_vim_impl(Scheme_Object *obj, typval_T *tv, int depth,
|
||||
copy_tv(found, tv);
|
||||
else if (SCHEME_VOIDP(obj))
|
||||
{
|
||||
tv->v_type = VAR_NUMBER;
|
||||
tv->vval.v_number = 0;
|
||||
tv->v_type = VAR_SPECIAL;
|
||||
tv->vval.v_number = VVAL_NULL;
|
||||
}
|
||||
else if (SCHEME_INTP(obj))
|
||||
{
|
||||
@@ -3158,7 +3166,7 @@ mzscheme_to_vim_impl(Scheme_Object *obj, typval_T *tv, int depth,
|
||||
}
|
||||
else if (SCHEME_BOOLP(obj))
|
||||
{
|
||||
tv->v_type = VAR_NUMBER;
|
||||
tv->v_type = VAR_SPECIAL;
|
||||
tv->vval.v_number = SCHEME_TRUEP(obj);
|
||||
}
|
||||
# ifdef FEAT_FLOAT
|
||||
|
||||
+4
-4
@@ -125,9 +125,9 @@
|
||||
/* Compatibility hacks over */
|
||||
|
||||
static PerlInterpreter *perl_interp = NULL;
|
||||
static void xs_init __ARGS((pTHX));
|
||||
static void VIM_init __ARGS((void));
|
||||
EXTERN_C void boot_DynaLoader __ARGS((pTHX_ CV*));
|
||||
static void xs_init(pTHX);
|
||||
static void VIM_init(void);
|
||||
EXTERN_C void boot_DynaLoader(pTHX_ CV*);
|
||||
|
||||
/*
|
||||
* For dynamic linked perl.
|
||||
@@ -1090,7 +1090,7 @@ perl_to_vim(sv, rettv)
|
||||
item2 = av_fetch((AV *)sv, size, 0);
|
||||
|
||||
if (item2 == NULL || *item2 == NULL ||
|
||||
perl_to_vim(*item2, &item->li_tv) == FAIL)
|
||||
perl_to_vim(*item2, &item->li_tv) == FAIL)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -810,6 +810,25 @@ VimToPython(typval_T *our_tv, int depth, PyObject *lookup_dict)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (our_tv->v_type == VAR_SPECIAL)
|
||||
{
|
||||
if (our_tv->vval.v_number == VVAL_FALSE)
|
||||
{
|
||||
ret = Py_False;
|
||||
Py_INCREF(ret);
|
||||
}
|
||||
else if (our_tv->vval.v_number == VVAL_TRUE)
|
||||
{
|
||||
ret = Py_True;
|
||||
Py_INCREF(ret);
|
||||
}
|
||||
else
|
||||
{
|
||||
Py_INCREF(Py_None);
|
||||
ret = Py_None;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
Py_INCREF(Py_None);
|
||||
|
||||
+1
-1
@@ -692,7 +692,7 @@ python3_enabled(int verbose)
|
||||
/* Load the standard Python exceptions - don't import the symbols from the
|
||||
* DLL, as this can cause errors (importing data symbols is not reliable).
|
||||
*/
|
||||
static void get_py3_exceptions __ARGS((void));
|
||||
static void get_py3_exceptions(void);
|
||||
|
||||
static void
|
||||
get_py3_exceptions()
|
||||
|
||||
@@ -1040,6 +1040,11 @@ static VALUE vim_to_ruby(typval_T *tv)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (tv->v_type == VAR_SPECIAL)
|
||||
{
|
||||
if (tv->vval.v_number <= VVAL_TRUE)
|
||||
result = INT2NUM(tv->vval.v_number);
|
||||
} /* else return Qnil; */
|
||||
|
||||
return result;
|
||||
|
||||
+15
-15
@@ -126,21 +126,21 @@ static char *init_cmds[]= {
|
||||
|
||||
/*-------- Function Prototypes ----------------------------------*/
|
||||
|
||||
static int ConnectToSniffEmacs __ARGS((void));
|
||||
static void sniff_connect __ARGS((void));
|
||||
static void HandleSniffRequest __ARGS((char* buffer));
|
||||
static int get_request __ARGS((int fd, char *buf, int maxlen));
|
||||
static void WriteToSniff __ARGS((char *str));
|
||||
static void SendRequest __ARGS((struct sn_cmd *command, char* symbol));
|
||||
static void vi_msg __ARGS((char *));
|
||||
static void vi_error_msg __ARGS((char *));
|
||||
static char *vi_symbol_under_cursor __ARGS((void));
|
||||
static void vi_open_file __ARGS((char *));
|
||||
static char *vi_buffer_name __ARGS((void));
|
||||
static buf_T *vi_find_buffer __ARGS((char *));
|
||||
static void vi_exec_cmd __ARGS((char *));
|
||||
static void vi_set_cursor_pos __ARGS((long char_nr));
|
||||
static long vi_cursor_pos __ARGS((void));
|
||||
static int ConnectToSniffEmacs(void);
|
||||
static void sniff_connect(void);
|
||||
static void HandleSniffRequest(char* buffer);
|
||||
static int get_request(int fd, char *buf, int maxlen);
|
||||
static void WriteToSniff(char *str);
|
||||
static void SendRequest(struct sn_cmd *command, char* symbol);
|
||||
static void vi_msg(char *);
|
||||
static void vi_error_msg(char *);
|
||||
static char *vi_symbol_under_cursor(void);
|
||||
static void vi_open_file(char *);
|
||||
static char *vi_buffer_name(void);
|
||||
static buf_T *vi_find_buffer(char *);
|
||||
static void vi_exec_cmd(char *);
|
||||
static void vi_set_cursor_pos(long char_nr);
|
||||
static long vi_cursor_pos(void);
|
||||
|
||||
/* debug trace */
|
||||
#if 0
|
||||
|
||||
+3
-3
@@ -9,8 +9,8 @@ extern int want_sniff_request;
|
||||
extern int sniff_request_waiting;
|
||||
extern int sniff_connected;
|
||||
extern int fd_from_sniff;
|
||||
extern void sniff_disconnect __ARGS((int immediately));
|
||||
extern void ProcessSniffRequests __ARGS((void));
|
||||
extern void ex_sniff __ARGS((exarg_T *eap));
|
||||
extern void sniff_disconnect(int immediately);
|
||||
extern void ProcessSniffRequests(void);
|
||||
extern void ex_sniff(exarg_T *eap);
|
||||
|
||||
#endif
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user