Remove EBCDIC: Clean up comments

This commit is contained in:
Pavel Platto 2014-06-05 11:23:30 +03:00
parent 2e831e56c7
commit e1dd98512f
7 changed files with 5 additions and 25 deletions

View File

@ -89,9 +89,6 @@ int buf_init_chartab(buf_T *buf, int global)
// Set the default size for printable characters:
// From <Space> to '~' is 1 (printable), others are 2 (not printable).
// This also inits all 'isident' and 'isfname' flags to FALSE.
//
// EBCDIC: all chars below ' ' are not printable, all others are
// printable.
c = 0;
while (c < ' ') {
@ -583,11 +580,8 @@ void transchar_nonprint(char_u *buf, int c)
buf[2] = NUL;
} else {
// 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[1] = (c - 0x80) ^ 0x40;
// 0xff displayed as ~?
buf[2] = NUL;
}
}

View File

@ -409,7 +409,6 @@ vim_findfile_init (
* The octet after a '**' is used as a (binary) counter.
* So '**3' is transposed to '**^C' ('^C' is ASCII value 3)
* 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.
* Due to this technique the path looks awful if you print it as a
* string.

View File

@ -543,9 +543,7 @@ AppendToRedobuffLit (
/* Put a string of normal characters in the redo buffer (that's
* faster). */
start = s;
while (*s >= ' '
&& *s < DEL /* EBCDIC: all chars above space are normal */
&& (len < 0 || s - str < len))
while (*s >= ' ' && *s < DEL && (len < 0 || s - str < len))
++s;
/* 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 == '^')))
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')
add_buff(&redobuff, (char_u *)"048", 3L);
else

View File

@ -1502,9 +1502,7 @@ static void prt_flush_buffer(void)
prt_write_real(prt_text_run, 2);
prt_write_string("ul\n");
}
/* Draw the text
* Note: we write text out raw - EBCDIC conversion is handled in the
* PostScript world via the font encoding vector. */
// Draw the text
if (prt_out_mbyte)
prt_write_string("<");
else
@ -3031,9 +3029,7 @@ int mch_print_text_out(char_u *p, int len)
if (ch < 32 || ch == '(' || ch == ')' || ch == '\\') {
/* Convert non-printing characters to either their escape or octal
* sequence, ensures PS sent over a serial line does not interfere
* with the comms protocol. Note: For EBCDIC we need to write out
* the escape sequences as ASCII codes!
* Note 2: Char codes < 32 are identical in EBCDIC and ASCII AFAIK!
* with the comms protocol.
*/
ga_append(&prt_ps_buffer, IF_EB('\\', 0134));
switch (ch) {

View File

@ -8,9 +8,6 @@
* (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 JUMPLISTSIZE 100 /* max. # of marks in jump list */
#define TAGSTACKSIZE 20 /* max. # of tags in tag stack */

View File

@ -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"
* is TRUE. */
start = arg;
while ((*arg >= ' '
&& *arg < DEL /* EBCDIC: chars above space are normal */
)
|| (*arg == K_SPECIAL && !literally))
while ((*arg >= ' ' && *arg < DEL) || (*arg == K_SPECIAL && !literally))
++arg;
if (arg > start)
stuffReadbuffLen(start, (long)(arg - start));

View File

@ -8009,7 +8009,6 @@ static void init_spellfile(void)
}
// Init the chartab used for spelling for ASCII.
// EBCDIC is not supported!
static void clear_spell_chartab(spelltab_T *sp)
{
int i;