ncursesw-morphos/ncurses/llib-ltict
Thomas E. Dickey a8e3f06ac3 ncurses 6.0 - patch 20170422
+ build-fix for termcap-configuration (report by Chi-Hsuan Yen).
+ improve terminfo manual page discussion of control- and graphics-
  characters.
+ remove tic warning about "^?" in string capabilities, which was
  marked as an extension (cf: 20000610, 20110820); however all Unix
  implementations support this and X/Open Curses does not address it.
  On the other hand, termcap never did support this feature.
+ correct missing comma-separator between string capabilities in
  icl6402 and m2-nam -TD
+ restore rmir/smir in ansi+idc to better match original ansiterm+idc,
  add alias ansiterm (report by Robert King).
+ amend an old check for ambiguous use of "ma" in terminfo versus
  a termcap use, if the capability is cancelled to treat it as number.
+ correct a case in _nc_captoinfo() which read "%%" and emitted "%".
+ modify sscanf calls in _nc_infotocap() for patterns "%{number}%+%c"
  and "%'char'%+%c" to check that the final character is really 'c',
  avoiding a case in icl6404 which cannot be converted to termcap.
+ in _nc_infotocap(), add a check to ensure that terminfo "^?" is not
  written to termcap, because the BSDs did not implement that.
+ in _nc_tic_expand() and _nc_infotocap(), improve string-length check
  when deciding whether to use "^X" or "\xxx" format for control
  characters, to make the output of tic/infocmp more predictable.
+ limit termcap "%d" width to 2 digits on input, and use "%2" in
  preference to "%02" on output.
+ correct terminfo/termcap conversion of "%02" and "%03" into "%2" and
  "%3"; the result repeated the last character.
+ add man/scr_dump.5 to document screen-dump format.
2017-04-22 22:55:55 +00:00

203 lines
5.3 KiB
Plaintext

/****************************************************************************
* Copyright (c) 2013-2016,2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* "Software"), to deal in the Software without restriction, including *
* without limitation the rights to use, copy, modify, merge, publish, *
* distribute, distribute with modifications, sublicense, and/or sell *
* copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *
* The above copyright notice and this permission notice shall be included *
* in all copies or substantial portions of the Software. *
* *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
* IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
* THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
* *
* Except as contained in this notice, the name(s) of the above copyright *
* holders shall not be used in advertising or otherwise to promote the *
* sale, use or other dealings in this Software without prior written *
* authorization. *
****************************************************************************/
/****************************************************************************
* Author: Thomas E. Dickey 2013-on *
****************************************************************************/
/* LINTLIBRARY */
/* ./tinfo/alloc_entry.c */
#include <curses.priv.h>
#undef _nc_init_entry
void _nc_init_entry(
ENTRY *const tp)
{ /* void */ }
#undef _nc_copy_entry
ENTRY *_nc_copy_entry(
ENTRY *oldp)
{ return(*(ENTRY **)0); }
#undef _nc_save_str
char *_nc_save_str(
const char *const string)
{ return(*(char **)0); }
#undef _nc_wrap_entry
void _nc_wrap_entry(
ENTRY *const ep,
NCURSES_BOOL copy_strings)
{ /* void */ }
#undef _nc_merge_entry
void _nc_merge_entry(
ENTRY *const target,
ENTRY *const source)
{ /* void */ }
/* ./tinfo/captoinfo.c */
#undef _nc_captoinfo
char *_nc_captoinfo(
const char *cap,
const char *s,
int const parameterized)
{ return(*(char **)0); }
#undef _nc_infotocap
char *_nc_infotocap(
const char *cap,
const char *str,
int const parameterized)
{ return(*(char **)0); }
/* ./tinfo/comp_expand.c */
#undef _nc_tic_expand
char *_nc_tic_expand(
const char *srcp,
NCURSES_BOOL tic_format,
int numbers)
{ return(*(char **)0); }
/* ./tinfo/comp_parse.c */
#undef _nc_check_termtype2
void (*_nc_check_termtype2)(
TERMTYPE2 *p1,
NCURSES_BOOL p2);
#undef _nc_entry_match
NCURSES_BOOL _nc_entry_match(
char *n1,
char *n2)
{ return(*(NCURSES_BOOL *)0); }
#undef _nc_read_entry_source
void _nc_read_entry_source(
FILE *fp,
char *buf,
int literal,
NCURSES_BOOL silent,
NCURSES_BOOL (*hook)(
ENTRY *p1))
{ /* void */ }
#undef _nc_resolve_uses2
int _nc_resolve_uses2(
NCURSES_BOOL fullresolve,
NCURSES_BOOL literal)
{ return(*(int *)0); }
/* ./tinfo/comp_scan.c */
#undef _nc_syntax
int _nc_syntax;
#undef _nc_strict_bsd
int _nc_strict_bsd;
#undef _nc_curr_file_pos
long _nc_curr_file_pos;
#undef _nc_comment_start
long _nc_comment_start;
#undef _nc_comment_end
long _nc_comment_end;
#undef _nc_start_line
long _nc_start_line;
#undef _nc_curr_token
struct token _nc_curr_token;
#undef _nc_disable_period
NCURSES_BOOL _nc_disable_period;
#undef _nc_reset_input
void _nc_reset_input(
FILE *fp,
char *buf)
{ /* void */ }
#undef _nc_get_token
int _nc_get_token(
NCURSES_BOOL silent)
{ return(*(int *)0); }
#undef _nc_trans_string
int _nc_trans_string(
char *ptr,
char *last)
{ return(*(int *)0); }
#undef _nc_push_token
void _nc_push_token(
int tokclass)
{ /* void */ }
#undef _nc_panic_mode
void _nc_panic_mode(
char ch)
{ /* void */ }
/* ./tinfo/parse_entry.c */
#undef _nc_parse_entry
int _nc_parse_entry(
ENTRY *entryp,
int literal,
NCURSES_BOOL silent)
{ return(*(int *)0); }
#undef _nc_capcmp
int _nc_capcmp(
const char *s,
const char *t)
{ return(*(int *)0); }
/* ./tinfo/write_entry.c */
#undef _nc_set_writedir
void _nc_set_writedir(
const char *dir)
{ /* void */ }
#undef _nc_write_entry
void _nc_write_entry(
TERMTYPE2 *const tp)
{ /* void */ }
#undef _nc_write_object
int _nc_write_object(
TERMTYPE2 *tp,
char *buffer,
unsigned *offset,
unsigned limit)
{ return(*(int *)0); }
#undef _nc_tic_written
int _nc_tic_written(void)
{ return(*(int *)0); }