summaryrefslogtreecommitdiffstats
path: root/ncurses/base/legacy_coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'ncurses/base/legacy_coding.c')
-rw-r--r--ncurses/base/legacy_coding.c25
1 files changed, 8 insertions, 17 deletions
diff --git a/ncurses/base/legacy_coding.c b/ncurses/base/legacy_coding.c
index d8c8020..1c2f160 100644
--- a/ncurses/base/legacy_coding.c
+++ b/ncurses/base/legacy_coding.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 2005,2009 Free Software Foundation, Inc. *
+ * Copyright (c) 2005 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 *
@@ -27,31 +27,22 @@
****************************************************************************/
/****************************************************************************
- * Author: Thomas E. Dickey 2005 *
- * Juergen Pfeifer 2009 *
+ * Author: Thomas E. Dickey *
****************************************************************************/
#include <curses.priv.h>
-MODULE_ID("$Id: legacy_coding.c,v 1.5 2009/10/24 22:15:00 tom Exp $")
+MODULE_ID("$Id: legacy_coding.c,v 1.2 2005/12/17 23:38:17 tom Exp $")
NCURSES_EXPORT(int)
-NCURSES_SP_NAME(use_legacy_coding) (NCURSES_SP_DCLx int level)
+use_legacy_coding(int level)
{
int result = ERR;
- T((T_CALLED("use_legacy_coding(%p,%d)"), (void *) SP_PARM, level));
- if (level >= 0 && level <= 2 && SP_PARM != 0) {
- result = SP_PARM->_legacy_coding;
- SP_PARM->_legacy_coding = level;
+ T((T_CALLED("use_legacy_coding(%d)"), level));
+ if (level >= 0 && level <= 2 && SP != 0) {
+ result = SP->_legacy_coding;
+ SP->_legacy_coding = level;
}
returnCode(result);
}
-
-#if NCURSES_SP_FUNCS
-NCURSES_EXPORT(int)
-use_legacy_coding(int level)
-{
- return NCURSES_SP_NAME(use_legacy_coding) (CURRENT_SCREEN, level);
-}
-#endif
OpenPOWER on IntegriCloud