Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,222 @@
#ifndef lint
#ifdef VERBOSE_REV_INFO
static char rcs_id[] = "$XConsortium: TermPrimParse.c /main/1 1996/04/21 19:18:12 drk $";
#endif /* VERBOSE_REV_INFO */
#endif /* lint */
/* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#include "TermHeader.h"
#include "TermPrimDebug.h"
#include "TermPrimP.h"
#include "TermPrimData.h"
#include "TermPrimBuffer.h"
#include "TermPrimParseTable.h"
#include "TermPrimFunction.h"
/******************************************************************************
*
* #### ##### # ######
* # # # # # #
* # # # ### # ##### ###
* # ##### ### # # ###
* # # # # # # # #
* #### # # # ###### # #
*
*
* ##### #### ##### ## #####
* # # # # # # # #
* ##### #### ### # # # #####
* # # # ### # ###### # #
* # # # # # # # # # #
* ##### #### # # # # #####
*/
void
_DtTermPrimParseLF
(
Widget w
)
{
(void) _DtTermPrimFuncLF(w, 1, fromParser);
return;
}
void
_DtTermPrimParseBackspace(Widget w)
{
(void) _DtTermPrimFuncBackspace(w, 1, fromParser);
return;
}
void
_DtTermPrimParseTab(Widget w)
{
(void) _DtTermPrimFuncTab(w, 1, fromParser);
return;
}
void
_DtTermPrimParseCR
(
Widget w
)
{
(void) _DtTermPrimFuncCR(w, 1, fromParser);
return;
}
void
_DtTermPrimParseBell(Widget w)
{
(void) _DtTermPrimBell(w);
return;
}
/*** CURSOR MOTION ************************************************************
*
* #### # # ##### #### #### #####
* # # # # # # # # # # #
* # # # # # #### # # # #
* # # # ##### # # # #####
* # # # # # # # # # # # #
* #### #### # # #### #### # #
*
*
* # # #### ##### # #### # #
* ## ## # # # # # # ## #
* # ## # # # # # # # # # #
* # # # # # # # # # # #
* # # # # # # # # # ##
* # # #### # # #### # #
*/
void
_DtTermPrimParseCursorRight(Widget w)
{
(void) _DtTermPrimFuncForwardCharacter(w, 1, fromParser);
return;
}
void
_DtTermPrimParseCursorLeft(Widget w)
{
(void) _DtTermPrimFuncBackwardCharacter(w, 1, fromParser);
return;
}
void
_DtTermPrimParseCursorDown(Widget w)
{
(void) _DtTermPrimFuncNextLine(w, 1, fromParser);
return;
}
void
_DtTermPrimParseCursorUp(Widget w)
{
(void) _DtTermPrimFuncPreviousLine(w, 1, fromParser);
return;
}
/*** TAB FUNCTIONS ************************************************************
*
* ##### ## #####
* # # # # #
* # # # #####
* # ###### # #
* # # # # #
* # # # #####
*
*
* ###### # # # # #### ##### # #### # # ####
* # # # ## # # # # # # # ## # #
* ##### # # # # # # # # # # # # # ####
* # # # # # # # # # # # # # # #
* # # # # ## # # # # # # # ## # #
* # #### # # #### # # #### # # ####
*/
void
_DtTermPrimParseTabSet(Widget w)
{
(void) _DtTermPrimFuncTabSet(w, 1, fromParser);
return;
}
void
_DtTermPrimParseTabClear(Widget w)
{
(void) _DtTermPrimFuncTabClear(w, 1, fromParser);
return;
}
void
_DtTermPrimParseTabClearAll(Widget w)
{
(void) _DtTermPrimFuncTabClearAll(w, 1, fromParser);
return;
}
/*** MARGIN FUNCTION **********************************************************
*
* # # ## ##### #### # # #
* ## ## # # # # # # # ## #
* # ## # # # # # # # # # #
* # # ###### ##### # ### # # # #
* # # # # # # # # # # ##
* # # # # # # #### # # #
*
*
* ###### # # # # #### ##### # #### # # ####
* # # # ## # # # # # # # ## # #
* ##### # # # # # # # # # # # # # ####
* # # # # # # # # # # # # # # #
* # # # # ## # # # # # # # ## # #
* # #### # # #### # # #### # # ####
*/
void
_DtTermPrimParseMarginSetLeft(Widget w)
{
(void) _DtTermPrimFuncMarginSetLeft(w, 1, fromParser);
return;
}
void
_DtTermPrimParseMarginSetRight(Widget w)
{
(void) _DtTermPrimFuncMarginSetRight(w, 1, fromParser);
return;
}
void
_DtTermPrimParseMarginClear(Widget w)
{
(void) _DtTermPrimFuncMarginClear(w, 1, fromParser);
return;
}
/*
** _DtTermPrimParseWriteChar
**
** this should never be called
*/
void
_DtTermPrimParseWriteChar
(
Widget w
)
{
fprintf(stdout, "Oops, somehow _DtTermPrimParseWriteChar got called.\n");
}