summaryrefslogtreecommitdiff
path: root/gs/src/gdevsco.c
diff options
context:
space:
mode:
authorRalph Giles <ralph.giles@artifex.com>2007-09-25 13:31:24 +0000
committerRalph Giles <ralph.giles@artifex.com>2007-09-25 13:31:24 +0000
commit4dbf3a1c72ca3e0771ba4e60a0b8a729383be2a5 (patch)
tree2001fecf4779bb5991c3849167dd1c09ccc6b982 /gs/src/gdevsco.c
parent615b82a47c8a14fd043b3ead5fc13d1fc38b8ad3 (diff)
Replace the 'private' define with the now standard C keyword 'static'.
DETAILS: The compilers we support have supported static for some time now, so idiomatic, and removes one of the obstacles to compiling Ghostscript as C++. The patch also removes support for compilation with -dNOPRIVATE, which is not longer necessary with modern debuggers. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8250 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gdevsco.c')
-rw-r--r--gs/src/gdevsco.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gs/src/gdevsco.c b/gs/src/gdevsco.c
index b9a3559da..f33487e46 100644
--- a/gs/src/gdevsco.c
+++ b/gs/src/gdevsco.c
@@ -47,9 +47,9 @@ extern int ioctl(int, int,...);
extern int open(const char *, int,...);
#endif
-private int console_fd = -1; /* file descriptor of console */
+static int console_fd = -1; /* file descriptor of console */
fb_ptr fb_addr; /* address of frame buffer for unix */
-private int cur_mode = -1; /* current video mode */
+static int cur_mode = -1; /* current video mode */
/* open the console */
/* possible files to open:
@@ -58,9 +58,9 @@ private int cur_mode = -1; /* current video mode */
* /dev/tty = current terminal
*/
-private void open_console(void);
+static void open_console(void);
-private void
+static void
open_console()
{
const char *dev;
@@ -135,7 +135,7 @@ outport2(uint port, byte index, byte data)
/* interrupt signal handler */
/* restore the video mode and exit */
-private void
+static void
ega_int_handler(int sig)
{
ega_close((gx_device *) NULL);
@@ -151,7 +151,7 @@ ega_int_handler(int sig)
#ifdef SIGTSTP
/* user tried to stop us. restore video and stop */
-private void
+static void
ega_tstp_handler(int sig)
{
#if 1
@@ -169,7 +169,7 @@ ega_tstp_handler(int sig)
#ifdef SIGCONT
/* we were unstopped. reopen video */
-private void
+static void
ega_cont_handler(int sig)
{
#if 1