mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
Remove EBCDIC: Clean up comments
This commit is contained in:
@@ -89,9 +89,6 @@ int buf_init_chartab(buf_T *buf, int global)
|
|||||||
// Set the default size for printable characters:
|
// Set the default size for printable characters:
|
||||||
// From <Space> to '~' is 1 (printable), others are 2 (not printable).
|
// From <Space> to '~' is 1 (printable), others are 2 (not printable).
|
||||||
// This also inits all 'isident' and 'isfname' flags to FALSE.
|
// This also inits all 'isident' and 'isfname' flags to FALSE.
|
||||||
//
|
|
||||||
// EBCDIC: all chars below ' ' are not printable, all others are
|
|
||||||
// printable.
|
|
||||||
c = 0;
|
c = 0;
|
||||||
|
|
||||||
while (c < ' ') {
|
while (c < ' ') {
|
||||||
@@ -583,11 +580,8 @@ void transchar_nonprint(char_u *buf, int c)
|
|||||||
buf[2] = NUL;
|
buf[2] = NUL;
|
||||||
} else {
|
} else {
|
||||||
// 0x80 - 0x9f and 0xff
|
// 0x80 - 0x9f and 0xff
|
||||||
// TODO: EBCDIC I don't know what to do with this chars, so I display
|
|
||||||
// them as '~?' for now
|
|
||||||
buf[0] = '~';
|
buf[0] = '~';
|
||||||
buf[1] = (c - 0x80) ^ 0x40;
|
buf[1] = (c - 0x80) ^ 0x40;
|
||||||
// 0xff displayed as ~?
|
|
||||||
buf[2] = NUL;
|
buf[2] = NUL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -409,7 +409,6 @@ vim_findfile_init (
|
|||||||
* The octet after a '**' is used as a (binary) counter.
|
* The octet after a '**' is used as a (binary) counter.
|
||||||
* So '**3' is transposed to '**^C' ('^C' is ASCII value 3)
|
* So '**3' is transposed to '**^C' ('^C' is ASCII value 3)
|
||||||
* or '**76' is transposed to '**N'( 'N' is ASCII value 76).
|
* or '**76' is transposed to '**N'( 'N' is ASCII value 76).
|
||||||
* For EBCDIC you get different character values.
|
|
||||||
* If no restrict is given after '**' the default is used.
|
* If no restrict is given after '**' the default is used.
|
||||||
* Due to this technique the path looks awful if you print it as a
|
* Due to this technique the path looks awful if you print it as a
|
||||||
* string.
|
* string.
|
||||||
|
@@ -543,9 +543,7 @@ AppendToRedobuffLit (
|
|||||||
/* Put a string of normal characters in the redo buffer (that's
|
/* Put a string of normal characters in the redo buffer (that's
|
||||||
* faster). */
|
* faster). */
|
||||||
start = s;
|
start = s;
|
||||||
while (*s >= ' '
|
while (*s >= ' ' && *s < DEL && (len < 0 || s - str < len))
|
||||||
&& *s < DEL /* EBCDIC: all chars above space are normal */
|
|
||||||
&& (len < 0 || s - str < len))
|
|
||||||
++s;
|
++s;
|
||||||
|
|
||||||
/* Don't put '0' or '^' as last character, just in case a CTRL-D is
|
/* Don't put '0' or '^' as last character, just in case a CTRL-D is
|
||||||
@@ -567,7 +565,7 @@ AppendToRedobuffLit (
|
|||||||
if (c < ' ' || c == DEL || (*s == NUL && (c == '0' || c == '^')))
|
if (c < ' ' || c == DEL || (*s == NUL && (c == '0' || c == '^')))
|
||||||
add_char_buff(&redobuff, Ctrl_V);
|
add_char_buff(&redobuff, Ctrl_V);
|
||||||
|
|
||||||
/* CTRL-V '0' must be inserted as CTRL-V 048 (EBCDIC: xf0) */
|
/* CTRL-V '0' must be inserted as CTRL-V 048 */
|
||||||
if (*s == NUL && c == '0')
|
if (*s == NUL && c == '0')
|
||||||
add_buff(&redobuff, (char_u *)"048", 3L);
|
add_buff(&redobuff, (char_u *)"048", 3L);
|
||||||
else
|
else
|
||||||
|
@@ -1502,9 +1502,7 @@ static void prt_flush_buffer(void)
|
|||||||
prt_write_real(prt_text_run, 2);
|
prt_write_real(prt_text_run, 2);
|
||||||
prt_write_string("ul\n");
|
prt_write_string("ul\n");
|
||||||
}
|
}
|
||||||
/* Draw the text
|
// Draw the text
|
||||||
* Note: we write text out raw - EBCDIC conversion is handled in the
|
|
||||||
* PostScript world via the font encoding vector. */
|
|
||||||
if (prt_out_mbyte)
|
if (prt_out_mbyte)
|
||||||
prt_write_string("<");
|
prt_write_string("<");
|
||||||
else
|
else
|
||||||
@@ -3031,9 +3029,7 @@ int mch_print_text_out(char_u *p, int len)
|
|||||||
if (ch < 32 || ch == '(' || ch == ')' || ch == '\\') {
|
if (ch < 32 || ch == '(' || ch == ')' || ch == '\\') {
|
||||||
/* Convert non-printing characters to either their escape or octal
|
/* Convert non-printing characters to either their escape or octal
|
||||||
* sequence, ensures PS sent over a serial line does not interfere
|
* sequence, ensures PS sent over a serial line does not interfere
|
||||||
* with the comms protocol. Note: For EBCDIC we need to write out
|
* with the comms protocol.
|
||||||
* the escape sequences as ASCII codes!
|
|
||||||
* Note 2: Char codes < 32 are identical in EBCDIC and ASCII AFAIK!
|
|
||||||
*/
|
*/
|
||||||
ga_append(&prt_ps_buffer, IF_EB('\\', 0134));
|
ga_append(&prt_ps_buffer, IF_EB('\\', 0134));
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
|
@@ -8,9 +8,6 @@
|
|||||||
* (a normal mark is a lnum/col pair, the same as a file position)
|
* (a normal mark is a lnum/col pair, the same as a file position)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* (Note: for EBCDIC there are more than 26, because there are gaps in the
|
|
||||||
* alphabet coding. To minimize changes to the code, I decided to just
|
|
||||||
* increase the number of possible marks. */
|
|
||||||
#define NMARKS ('z' - 'a' + 1) /* max. # of named marks */
|
#define NMARKS ('z' - 'a' + 1) /* max. # of named marks */
|
||||||
#define JUMPLISTSIZE 100 /* max. # of marks in jump list */
|
#define JUMPLISTSIZE 100 /* max. # of marks in jump list */
|
||||||
#define TAGSTACKSIZE 20 /* max. # of tags in tag stack */
|
#define TAGSTACKSIZE 20 /* max. # of tags in tag stack */
|
||||||
|
@@ -1147,10 +1147,7 @@ static void stuffescaped(char_u *arg, int literally)
|
|||||||
* stuff K_SPECIAL to get the effect of a special key when "literally"
|
* stuff K_SPECIAL to get the effect of a special key when "literally"
|
||||||
* is TRUE. */
|
* is TRUE. */
|
||||||
start = arg;
|
start = arg;
|
||||||
while ((*arg >= ' '
|
while ((*arg >= ' ' && *arg < DEL) || (*arg == K_SPECIAL && !literally))
|
||||||
&& *arg < DEL /* EBCDIC: chars above space are normal */
|
|
||||||
)
|
|
||||||
|| (*arg == K_SPECIAL && !literally))
|
|
||||||
++arg;
|
++arg;
|
||||||
if (arg > start)
|
if (arg > start)
|
||||||
stuffReadbuffLen(start, (long)(arg - start));
|
stuffReadbuffLen(start, (long)(arg - start));
|
||||||
|
@@ -8009,7 +8009,6 @@ static void init_spellfile(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Init the chartab used for spelling for ASCII.
|
// Init the chartab used for spelling for ASCII.
|
||||||
// EBCDIC is not supported!
|
|
||||||
static void clear_spell_chartab(spelltab_T *sp)
|
static void clear_spell_chartab(spelltab_T *sp)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
Reference in New Issue
Block a user