fis-gtm/sr_unix/iottdefsp.h

60 lines
1.5 KiB
C

/****************************************************************
* *
* Copyright 2001, 2006 Fidelity Information Services, Inc *
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
* under a license. If you do not know the terms of *
* the license, please stop and do not read further. *
* *
****************************************************************/
#ifdef UNICODE_SUPPORTED
#include "gtm_utf8.h"
#endif
#define ASCII_ESC 27 /* this ASCII value is needed on any platform */
#define EBCDIC_ESC 39
#define ASCII_CR 13
#define EBCDIC_CR 13
#define ASCII_LF 10
#define EBCDIC_LF 37
#define ASCII_FF 12
#define EBCDIC_FF 12
#define ASCII_BS 8
#define EBCDIC_BS 22
#define VT 11
#define ASCII_TTEOL "\012"
#define EBCDIC_TTEOL "\025"
#define ESC ASCII_ESC
#define NATIVE_ESC ASCII_ESC
#define NATIVE_CR ASCII_CR
#define NATIVE_LF ASCII_LF
#define NATIVE_FF ASCII_FF
#define NATIVE_BS ASCII_BS
#define NATIVE_VT VT
#ifdef KEEP_zOS_EBCDIC
#define NATIVE_TTEOL ((ascii != io_ptr->out_code_set) ? EBCDIC_TTEOL : ASCII_TTEOL)
#else
#define NATIVE_TTEOL ASCII_TTEOL
#endif
/* Editing control characters */
#define CTRL_A '\001'
#define CTRL_B '\002'
#define CTRL_D '\004'
#define CTRL_E '\005'
#define CTRL_F '\006'
#define CTRL_K '\013'
#define CTRL_U '\025'
#define EDIT_SOL CTRL_A
#define EDIT_LEFT CTRL_B
#define EDIT_DELETE CTRL_D
#define EDIT_EOL CTRL_E
#define EDIT_RIGHT CTRL_F
#define EDIT_DEOL CTRL_K
#define EDIT_ERASE CTRL_U