mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
misc: UNIX => Unix #4022
Although UNIX is a registered trademark of The Open Group, it doesn't really matter whether we refer to these systems as UNIX, Unix, or Unix-like. So, for consistency, refer to them collectively as Unix. Related: http://www.greens.org/about/unix.html http://www.unixica.com/html/unixunix.html
This commit is contained in:

committed by
Michael Reed

parent
0735b05c82
commit
a7ade5c832
2
clint.py
2
clint.py
@@ -3316,7 +3316,7 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]):
|
|||||||
_SetVerboseLevel(vlevel)
|
_SetVerboseLevel(vlevel)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Support the UNIX convention of using "-" for stdin. Note that
|
# Support the Unix convention of using "-" for stdin. Note that
|
||||||
# we are not opening the file with universal newline support
|
# we are not opening the file with universal newline support
|
||||||
# (which codecs doesn't support anyway), so the resulting lines do
|
# (which codecs doesn't support anyway), so the resulting lines do
|
||||||
# contain trailing '\r' characters if we are reading a file that
|
# contain trailing '\r' characters if we are reading a file that
|
||||||
|
@@ -24,7 +24,7 @@ check_include_files(strings.h HAVE_STRINGS_H)
|
|||||||
check_include_files(sys/wait.h HAVE_SYS_WAIT_H)
|
check_include_files(sys/wait.h HAVE_SYS_WAIT_H)
|
||||||
if(NOT HAVE_SYS_WAIT_H AND UNIX)
|
if(NOT HAVE_SYS_WAIT_H AND UNIX)
|
||||||
# See if_cscope.c
|
# See if_cscope.c
|
||||||
message(SEND_ERROR "header sys/wait.h is required for UNIX")
|
message(SEND_ERROR "header sys/wait.h is required for Unix")
|
||||||
endif()
|
endif()
|
||||||
check_include_files(sys/utsname.h HAVE_SYS_UTSNAME_H)
|
check_include_files(sys/utsname.h HAVE_SYS_UTSNAME_H)
|
||||||
check_include_files(utime.h HAVE_UTIME_H)
|
check_include_files(utime.h HAVE_UTIME_H)
|
||||||
|
@@ -75,7 +75,7 @@ Can be used to edit files starting with a hyphen
|
|||||||
.Pq Sq - .
|
.Pq Sq - .
|
||||||
.It Fl -literal
|
.It Fl -literal
|
||||||
Interpret filenames literally, that is, do not expand wildcards.
|
Interpret filenames literally, that is, do not expand wildcards.
|
||||||
Has no effect on UNIX-like systems, where the shell expands wildcards.
|
Has no effect on Unix-like systems, where the shell expands wildcards.
|
||||||
.It Fl e
|
.It Fl e
|
||||||
Ex mode.
|
Ex mode.
|
||||||
See
|
See
|
||||||
|
@@ -111,7 +111,7 @@ The letter encoding used is the Vim extended ISIR-3342 standard with a built
|
|||||||
in function to convert between Vim extended ISIR-3342 and ISIR-3342 standard.
|
in function to convert between Vim extended ISIR-3342 and ISIR-3342 standard.
|
||||||
|
|
||||||
For document portability reasons, the letter encoding is kept the same across
|
For document portability reasons, the letter encoding is kept the same across
|
||||||
different platforms (i.e. UNIX's, NT/95/98, MS DOS, ...).
|
different platforms (i.e. Unix, Windows, ...).
|
||||||
|
|
||||||
|
|
||||||
o Keyboard
|
o Keyboard
|
||||||
|
@@ -595,7 +595,7 @@ Format description:
|
|||||||
ignored.
|
ignored.
|
||||||
2. Each entry starts with line that has format "{type} with timestamp
|
2. Each entry starts with line that has format "{type} with timestamp
|
||||||
{timestamp}:". {timestamp} is |strftime()|-formatted string representing
|
{timestamp}:". {timestamp} is |strftime()|-formatted string representing
|
||||||
actual UNIX timestamp value. First strftime() argument is equal to
|
actual Unix timestamp value. First strftime() argument is equal to
|
||||||
`%Y-%m-%dT%H:%M:%S`. When writing this timestamp is parsed using
|
`%Y-%m-%dT%H:%M:%S`. When writing this timestamp is parsed using
|
||||||
|msgpack#strptime()|, with caching (it remembers which timestamp produced
|
|msgpack#strptime()|, with caching (it remembers which timestamp produced
|
||||||
particular strftime() output and uses this value if you did not change
|
particular strftime() output and uses this value if you did not change
|
||||||
|
@@ -251,7 +251,7 @@ Vim would never have become what it is now, without the help of these people!
|
|||||||
lots of patches
|
lots of patches
|
||||||
Ingo Wilken Tcl interface
|
Ingo Wilken Tcl interface
|
||||||
Mike Williams PostScript printing
|
Mike Williams PostScript printing
|
||||||
Juergen Weigert Lattice version, AUX improvements, UNIX and
|
Juergen Weigert Lattice version, AUX improvements, Unix and
|
||||||
MS-DOS ports, autoconf
|
MS-DOS ports, autoconf
|
||||||
Stefan 'Sec' Zehl Maintainer of vim.org
|
Stefan 'Sec' Zehl Maintainer of vim.org
|
||||||
|
|
||||||
|
@@ -1084,7 +1084,7 @@ x A single character, with no special meaning, matches itself
|
|||||||
*[:backspace:]* [:backspace:] the <BS> character
|
*[:backspace:]* [:backspace:] the <BS> character
|
||||||
The brackets in character class expressions are additional to the
|
The brackets in character class expressions are additional to the
|
||||||
brackets delimiting a collection. For example, the following is a
|
brackets delimiting a collection. For example, the following is a
|
||||||
plausible pattern for a UNIX filename: "[-./[:alnum:]_~]\+" That is,
|
plausible pattern for a Unix filename: "[-./[:alnum:]_~]\+" That is,
|
||||||
a list of at least one character, each of which is either '-', '.',
|
a list of at least one character, each of which is either '-', '.',
|
||||||
'/', alphabetic, numeric, '_' or '~'.
|
'/', alphabetic, numeric, '_' or '~'.
|
||||||
These items only work for 8-bit characters.
|
These items only work for 8-bit characters.
|
||||||
|
@@ -78,7 +78,7 @@ mistakes; you can correct them later. To enter the following programmer's
|
|||||||
limerick, this is what you type: >
|
limerick, this is what you type: >
|
||||||
|
|
||||||
iA very intelligent turtle
|
iA very intelligent turtle
|
||||||
Found programming UNIX a hurdle
|
Found programming Unix a hurdle
|
||||||
|
|
||||||
After typing "turtle" you press the <Enter> key to start a new line. Finally
|
After typing "turtle" you press the <Enter> key to start a new line. Finally
|
||||||
you press the <Esc> key to stop Insert mode and go back to Normal mode. You
|
you press the <Esc> key to stop Insert mode and go back to Normal mode. You
|
||||||
@@ -86,7 +86,7 @@ now have two lines of text in your Vim window:
|
|||||||
|
|
||||||
+---------------------------------------+
|
+---------------------------------------+
|
||||||
|A very intelligent turtle |
|
|A very intelligent turtle |
|
||||||
|Found programming UNIX a hurdle |
|
|Found programming Unix a hurdle |
|
||||||
|~ |
|
|~ |
|
||||||
|~ |
|
|~ |
|
||||||
| |
|
| |
|
||||||
@@ -108,7 +108,7 @@ of the window. This indicates you are in Insert mode.
|
|||||||
|
|
||||||
+---------------------------------------+
|
+---------------------------------------+
|
||||||
|A very intelligent turtle |
|
|A very intelligent turtle |
|
||||||
|Found programming UNIX a hurdle |
|
|Found programming Unix a hurdle |
|
||||||
|~ |
|
|~ |
|
||||||
|~ |
|
|~ |
|
||||||
|-- INSERT -- |
|
|-- INSERT -- |
|
||||||
@@ -185,7 +185,7 @@ look like this:
|
|||||||
|
|
||||||
+---------------------------------------+
|
+---------------------------------------+
|
||||||
|intelligent turtle |
|
|intelligent turtle |
|
||||||
|Found programming UNIX a hurdle |
|
|Found programming Unix a hurdle |
|
||||||
|~ |
|
|~ |
|
||||||
|~ |
|
|~ |
|
||||||
| |
|
| |
|
||||||
@@ -200,7 +200,7 @@ insert mode (the final <Esc>). The result:
|
|||||||
|
|
||||||
+---------------------------------------+
|
+---------------------------------------+
|
||||||
|A young intelligent turtle |
|
|A young intelligent turtle |
|
||||||
|Found programming UNIX a hurdle |
|
|Found programming Unix a hurdle |
|
||||||
|~ |
|
|~ |
|
||||||
|~ |
|
|~ |
|
||||||
| |
|
| |
|
||||||
@@ -213,7 +213,7 @@ To delete a whole line use the "dd" command. The following line will
|
|||||||
then move up to fill the gap:
|
then move up to fill the gap:
|
||||||
|
|
||||||
+---------------------------------------+
|
+---------------------------------------+
|
||||||
|Found programming UNIX a hurdle |
|
|Found programming Unix a hurdle |
|
||||||
|~ |
|
|~ |
|
||||||
|~ |
|
|~ |
|
||||||
|~ |
|
|~ |
|
||||||
@@ -330,7 +330,7 @@ Insert mode. Then you can type the text for the new line.
|
|||||||
Suppose the cursor is somewhere in the first of these two lines:
|
Suppose the cursor is somewhere in the first of these two lines:
|
||||||
|
|
||||||
A very intelligent turtle ~
|
A very intelligent turtle ~
|
||||||
Found programming UNIX a hurdle ~
|
Found programming Unix a hurdle ~
|
||||||
|
|
||||||
If you now use the "o" command and type new text: >
|
If you now use the "o" command and type new text: >
|
||||||
|
|
||||||
@@ -340,7 +340,7 @@ The result is:
|
|||||||
|
|
||||||
A very intelligent turtle ~
|
A very intelligent turtle ~
|
||||||
That liked using Vim ~
|
That liked using Vim ~
|
||||||
Found programming UNIX a hurdle ~
|
Found programming Unix a hurdle ~
|
||||||
|
|
||||||
The "O" command (uppercase) opens a line above the cursor.
|
The "O" command (uppercase) opens a line above the cursor.
|
||||||
|
|
||||||
|
@@ -134,10 +134,10 @@ The following command makes the mouse work like a Microsoft Windows mouse: >
|
|||||||
|
|
||||||
:behave mswin
|
:behave mswin
|
||||||
|
|
||||||
The default behavior of the mouse on UNIX systems is xterm. The default
|
The default behavior of the mouse on Unix systems is xterm. The default
|
||||||
behavior on a Microsoft Windows system is selected during the installation
|
behavior on Windows systems is selected during the installation process. For
|
||||||
process. For details about what the two behaviors are, see |:behave|. Here
|
details about what the two behaviors are, see |:behave|. Here follows a
|
||||||
follows a summary.
|
summary.
|
||||||
|
|
||||||
|
|
||||||
XTERM MOUSE BEHAVIOR
|
XTERM MOUSE BEHAVIOR
|
||||||
|
@@ -698,10 +698,10 @@ still be something that an external command can do better or faster.
|
|||||||
through an external program. In other words, it runs the system command
|
through an external program. In other words, it runs the system command
|
||||||
represented by {program}, giving it the block of text represented by {motion}
|
represented by {program}, giving it the block of text represented by {motion}
|
||||||
as input. The output of this command then replaces the selected block.
|
as input. The output of this command then replaces the selected block.
|
||||||
Because this summarizes badly if you are unfamiliar with UNIX filters, take
|
Because this summarizes badly if you are unfamiliar with Unix filters, take
|
||||||
a look at an example. The sort command sorts a file. If you execute the
|
a look at an example. The sort command sorts a file. If you execute the
|
||||||
following command, the unsorted file input.txt will be sorted and written to
|
following command, the unsorted file input.txt will be sorted and written to
|
||||||
output.txt. (This works on both UNIX and Microsoft Windows.) >
|
output.txt. This works on both Unix and Windows. >
|
||||||
|
|
||||||
sort <input.txt >output.txt
|
sort <input.txt >output.txt
|
||||||
|
|
||||||
|
@@ -309,7 +309,7 @@ matches can be found.
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
*12.8* Find where a word is used
|
*12.8* Find where a word is used
|
||||||
|
|
||||||
If you are a UNIX user, you can use a combination of Vim and the grep command
|
If you are a Unix user, you can use a combination of Vim and the grep command
|
||||||
to edit all the files that contain a given word. This is extremely useful if
|
to edit all the files that contain a given word. This is extremely useful if
|
||||||
you are working on a program and want to view or edit all the files that
|
you are working on a program and want to view or edit all the files that
|
||||||
contain a specific variable.
|
contain a specific variable.
|
||||||
@@ -324,7 +324,7 @@ will only list the files containing the word and not print the matching lines.
|
|||||||
The word it is searching for is "frame_counter". Actually, this can be any
|
The word it is searching for is "frame_counter". Actually, this can be any
|
||||||
regular expression. (Note: What grep uses for regular expressions is not
|
regular expression. (Note: What grep uses for regular expressions is not
|
||||||
exactly the same as what Vim uses.)
|
exactly the same as what Vim uses.)
|
||||||
The entire command is enclosed in backticks (`). This tells the UNIX shell
|
The entire command is enclosed in backticks (`). This tells the Unix shell
|
||||||
to run this command and pretend that the results were typed on the command
|
to run this command and pretend that the results were typed on the command
|
||||||
line. So what happens is that the grep command is run and produces a list of
|
line. So what happens is that the grep command is run and produces a list of
|
||||||
files, these files are put on the Vim command line. This results in Vim
|
files, these files are put on the Vim command line. This results in Vim
|
||||||
|
@@ -25,7 +25,7 @@ Back in the early days, the old Teletype machines used two characters to
|
|||||||
start a new line. One to move the carriage back to the first position
|
start a new line. One to move the carriage back to the first position
|
||||||
(carriage return, <CR>), another to move the paper up (line feed, <LF>).
|
(carriage return, <CR>), another to move the paper up (line feed, <LF>).
|
||||||
When computers came out, storage was expensive. Some people decided that
|
When computers came out, storage was expensive. Some people decided that
|
||||||
they did not need two characters for end-of-line. The UNIX people decided
|
they did not need two characters for end-of-line. The Unix people decided
|
||||||
they could use <Line Feed> only for end-of-line. The Apple people
|
they could use <Line Feed> only for end-of-line. The Apple people
|
||||||
standardized on <CR>. The MS-DOS (and Microsoft Windows) folks decided to
|
standardized on <CR>. The MS-DOS (and Microsoft Windows) folks decided to
|
||||||
keep the old <CR><LF>.
|
keep the old <CR><LF>.
|
||||||
@@ -97,12 +97,12 @@ CONVERSION
|
|||||||
|
|
||||||
You can use the 'fileformat' option to convert from one file format to
|
You can use the 'fileformat' option to convert from one file format to
|
||||||
another. Suppose, for example, that you have an MS-DOS file named README.TXT
|
another. Suppose, for example, that you have an MS-DOS file named README.TXT
|
||||||
that you want to convert to UNIX format. Start by editing the MS-DOS format
|
that you want to convert to Unix format. Start by editing the MS-DOS format
|
||||||
file: >
|
file: >
|
||||||
vim README.TXT
|
vim README.TXT
|
||||||
|
|
||||||
Vim will recognize this as a dos format file. Now change the file format to
|
Vim will recognize this as a dos format file. Now change the file format to
|
||||||
UNIX: >
|
Unix: >
|
||||||
|
|
||||||
:set fileformat=unix
|
:set fileformat=unix
|
||||||
:write
|
:write
|
||||||
|
@@ -951,30 +951,26 @@ void do_bang(int addr_count, exarg_T *eap, int forceit, int do_in, int do_out)
|
|||||||
xfree(newcmd);
|
xfree(newcmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
// do_filter: filter lines through a command given by the user
|
||||||
* do_filter: filter lines through a command given by the user
|
//
|
||||||
*
|
// We mostly use temp files and the call_shell() routine here. This would
|
||||||
* We mostly use temp files and the call_shell() routine here. This would
|
// normally be done using pipes on a Unix system, but this is more portable
|
||||||
* normally be done using pipes on a UNIX machine, but this is more portable
|
// to non-Unix systems. The call_shell() routine needs to be able
|
||||||
* to non-unix machines. The call_shell() routine needs to be able
|
// to deal with redirection somehow, and should handle things like looking
|
||||||
* to deal with redirection somehow, and should handle things like looking
|
// at the PATH env. variable, and adding reasonable extensions to the
|
||||||
* at the PATH env. variable, and adding reasonable extensions to the
|
// command name given by the user. All reasonable versions of call_shell()
|
||||||
* command name given by the user. All reasonable versions of call_shell()
|
// do this.
|
||||||
* do this.
|
// Alternatively, if on Unix and redirecting input or output, but not both,
|
||||||
* Alternatively, if on Unix and redirecting input or output, but not both,
|
// and the 'shelltemp' option isn't set, use pipes.
|
||||||
* and the 'shelltemp' option isn't set, use pipes.
|
// We use input redirection if do_in is TRUE.
|
||||||
* We use input redirection if do_in is TRUE.
|
// We use output redirection if do_out is TRUE.
|
||||||
* We use output redirection if do_out is TRUE.
|
static void do_filter(
|
||||||
*/
|
|
||||||
static void
|
|
||||||
do_filter (
|
|
||||||
linenr_T line1,
|
linenr_T line1,
|
||||||
linenr_T line2,
|
linenr_T line2,
|
||||||
exarg_T *eap, /* for forced 'ff' and 'fenc' */
|
exarg_T *eap, /* for forced 'ff' and 'fenc' */
|
||||||
char_u *cmd,
|
char_u *cmd,
|
||||||
int do_in,
|
int do_in,
|
||||||
int do_out
|
int do_out)
|
||||||
)
|
|
||||||
{
|
{
|
||||||
char_u *itmp = NULL;
|
char_u *itmp = NULL;
|
||||||
char_u *otmp = NULL;
|
char_u *otmp = NULL;
|
||||||
@@ -1690,7 +1686,7 @@ check_overwrite (
|
|||||||
&& os_file_exists(ffname)) {
|
&& os_file_exists(ffname)) {
|
||||||
if (!eap->forceit && !eap->append) {
|
if (!eap->forceit && !eap->append) {
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
/* with UNIX it is possible to open a directory */
|
// It is possible to open a directory on Unix.
|
||||||
if (os_isdir(ffname)) {
|
if (os_isdir(ffname)) {
|
||||||
EMSG2(_(e_isadir2), ffname);
|
EMSG2(_(e_isadir2), ffname);
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
@@ -6843,9 +6843,9 @@ void ex_cd(exarg_T *eap)
|
|||||||
prev_dir = NULL;
|
prev_dir = NULL;
|
||||||
|
|
||||||
#if defined(UNIX)
|
#if defined(UNIX)
|
||||||
/* for UNIX ":cd" means: go to home directory */
|
// On Unix ":cd" means: go to home directory.
|
||||||
if (*new_dir == NUL) {
|
if (*new_dir == NUL) {
|
||||||
/* use NameBuff for home directory name */
|
// Use NameBuff for home directory name.
|
||||||
expand_env((char_u *)"$HOME", NameBuff, MAXPATHL);
|
expand_env((char_u *)"$HOME", NameBuff, MAXPATHL);
|
||||||
new_dir = NameBuff;
|
new_dir = NameBuff;
|
||||||
}
|
}
|
||||||
|
@@ -596,7 +596,7 @@ static int command_line_execute(VimState *state, int key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (s->j > 0) {
|
if (s->j > 0) {
|
||||||
// TODO(tarruda): this is only for DOS/UNIX systems - need to put in
|
// TODO(tarruda): this is only for DOS/Unix systems - need to put in
|
||||||
// machine-specific stuff here and in upseg init
|
// machine-specific stuff here and in upseg init
|
||||||
cmdline_del(s->j);
|
cmdline_del(s->j);
|
||||||
put_on_cmdline(upseg + 1, 3, false);
|
put_on_cmdline(upseg + 1, 3, false);
|
||||||
|
@@ -1841,9 +1841,7 @@ static void sig_handler(int s) {
|
|||||||
*/
|
*/
|
||||||
static void cs_release_csp(size_t i, int freefnpp)
|
static void cs_release_csp(size_t i, int freefnpp)
|
||||||
{
|
{
|
||||||
/*
|
// Trying to exit normally (not sure whether it is fit to Unix cscope)
|
||||||
* Trying to exit normally (not sure whether it is fit to UNIX cscope
|
|
||||||
*/
|
|
||||||
if (csinfo[i].to_fp != NULL) {
|
if (csinfo[i].to_fp != NULL) {
|
||||||
(void)fputs("q\n", csinfo[i].to_fp);
|
(void)fputs("q\n", csinfo[i].to_fp);
|
||||||
(void)fflush(csinfo[i].to_fp);
|
(void)fflush(csinfo[i].to_fp);
|
||||||
|
@@ -63,7 +63,7 @@ bool os_libcall(const char *libname,
|
|||||||
|
|
||||||
// call the library and save the result
|
// call the library and save the result
|
||||||
// TODO(aktau): catch signals and use jmp (if available) to handle
|
// TODO(aktau): catch signals and use jmp (if available) to handle
|
||||||
// exceptions. jmp's on UNIX seem to interact trickily with signals as
|
// exceptions. jmp's on Unix seem to interact trickily with signals as
|
||||||
// well. So for now we only support those libraries that are well-behaved.
|
// well. So for now we only support those libraries that are well-behaved.
|
||||||
if (str_out) {
|
if (str_out) {
|
||||||
str_str_fn sfn = (str_str_fn) fn;
|
str_str_fn sfn = (str_str_fn) fn;
|
||||||
|
@@ -290,7 +290,7 @@ void expand_env_esc(char_u *srcp, char_u *dst, int dstlen, bool esc, bool one,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(UNIX)
|
#if defined(UNIX)
|
||||||
// Verify that we have found the end of a UNIX ${VAR} style variable
|
// Verify that we have found the end of a Unix ${VAR} style variable
|
||||||
if (src[1] == '{' && *tail != '}') {
|
if (src[1] == '{' && *tail != '}') {
|
||||||
var = NULL;
|
var = NULL;
|
||||||
} else {
|
} else {
|
||||||
|
@@ -93,7 +93,7 @@ struct tm *os_localtime_r(const time_t *restrict clock,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Obtains the current UNIX timestamp and adjusts it to local time
|
/// Obtains the current Unix timestamp and adjusts it to local time.
|
||||||
///
|
///
|
||||||
/// @param result Pointer to a 'struct tm' where the result should be placed
|
/// @param result Pointer to a 'struct tm' where the result should be placed
|
||||||
/// @return A pointer to a 'struct tm' in the current time zone (the 'result'
|
/// @return A pointer to a 'struct tm' in the current time zone (the 'result'
|
||||||
@@ -104,7 +104,7 @@ struct tm *os_get_localtime(struct tm *result) FUNC_ATTR_NONNULL_ALL
|
|||||||
return os_localtime_r(&rawtime, result);
|
return os_localtime_r(&rawtime, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Obtains the current UNIX timestamp
|
/// Obtains the current Unix timestamp.
|
||||||
///
|
///
|
||||||
/// @return Seconds since epoch.
|
/// @return Seconds since epoch.
|
||||||
Timestamp os_time(void)
|
Timestamp os_time(void)
|
||||||
|
@@ -196,7 +196,7 @@ char_u *get_past_head(char_u *path)
|
|||||||
int vim_ispathsep(int c)
|
int vim_ispathsep(int c)
|
||||||
{
|
{
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
return c == '/'; /* UNIX has ':' inside file names */
|
return c == '/'; // Unix has ':' inside file names
|
||||||
#else
|
#else
|
||||||
# ifdef BACKSLASH_IN_FILENAME
|
# ifdef BACKSLASH_IN_FILENAME
|
||||||
return c == ':' || c == '/' || c == '\\';
|
return c == ':' || c == '/' || c == '\\';
|
||||||
|
@@ -148,8 +148,8 @@ describe('env function', function()
|
|||||||
local name = 'NEOVIM_UNIT_TEST_EXPAND_ENV_ESCN'
|
local name = 'NEOVIM_UNIT_TEST_EXPAND_ENV_ESCN'
|
||||||
local value = 'NEOVIM_UNIT_TEST_EXPAND_ENV_ESCV'
|
local value = 'NEOVIM_UNIT_TEST_EXPAND_ENV_ESCV'
|
||||||
os_setenv(name, value, 1)
|
os_setenv(name, value, 1)
|
||||||
-- TODO(bobtwinkles) This only tests UNIX expansions. There should be a
|
-- TODO(bobtwinkles) This only tests Unix expansions. There should be a
|
||||||
-- test for windows as well
|
-- test for Windows as well
|
||||||
local input1 = to_cstr('$NEOVIM_UNIT_TEST_EXPAND_ENV_ESCN/test')
|
local input1 = to_cstr('$NEOVIM_UNIT_TEST_EXPAND_ENV_ESCN/test')
|
||||||
local input2 = to_cstr('${NEOVIM_UNIT_TEST_EXPAND_ENV_ESCN}/test')
|
local input2 = to_cstr('${NEOVIM_UNIT_TEST_EXPAND_ENV_ESCN}/test')
|
||||||
local output_buff1 = cstr(255, '')
|
local output_buff1 = cstr(255, '')
|
||||||
|
2
third-party/CMakeLists.txt
vendored
2
third-party/CMakeLists.txt
vendored
@@ -55,7 +55,7 @@ endif()
|
|||||||
|
|
||||||
# Cross compiling: use these for dependencies built for the
|
# Cross compiling: use these for dependencies built for the
|
||||||
# HOST system, when not crosscompiling these should be the
|
# HOST system, when not crosscompiling these should be the
|
||||||
# same as DEPS_*. Except when targeting UNIX in which case
|
# same as DEPS_*. Except when targeting Unix in which case
|
||||||
# want all the dependencies to use the same compiler.
|
# want all the dependencies to use the same compiler.
|
||||||
if(CMAKE_CROSSCOMPILING AND NOT UNIX)
|
if(CMAKE_CROSSCOMPILING AND NOT UNIX)
|
||||||
set(HOSTDEPS_INSTALL_DIR "${CMAKE_BINARY_DIR}/host")
|
set(HOSTDEPS_INSTALL_DIR "${CMAKE_BINARY_DIR}/host")
|
||||||
|
2
third-party/cmake/BuildMsgpack.cmake
vendored
2
third-party/cmake/BuildMsgpack.cmake
vendored
@@ -53,7 +53,7 @@ if(MINGW AND CMAKE_CROSSCOMPILING)
|
|||||||
# Hack to avoid -rdynamic in Mingw
|
# Hack to avoid -rdynamic in Mingw
|
||||||
-DCMAKE_SHARED_LIBRARY_LINK_C_FLAGS="")
|
-DCMAKE_SHARED_LIBRARY_LINK_C_FLAGS="")
|
||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
# Same as UNIX without fPIC
|
# Same as Unix without fPIC
|
||||||
set(MSGPACK_CONFIGURE_COMMAND ${CMAKE_COMMAND} ${DEPS_BUILD_DIR}/src/msgpack
|
set(MSGPACK_CONFIGURE_COMMAND ${CMAKE_COMMAND} ${DEPS_BUILD_DIR}/src/msgpack
|
||||||
-DMSGPACK_ENABLE_CXX=OFF
|
-DMSGPACK_ENABLE_CXX=OFF
|
||||||
-DMSGPACK_BUILD_TESTS=OFF
|
-DMSGPACK_BUILD_TESTS=OFF
|
||||||
|
Reference in New Issue
Block a user