diff options
author | Ralph Giles <ralph.giles@artifex.com> | 2007-09-25 13:25:19 +0000 |
---|---|---|
committer | Ralph Giles <ralph.giles@artifex.com> | 2007-09-25 13:25:19 +0000 |
commit | 890eb9a40bc457842f6eb453ba80aaae3cb681c4 (patch) | |
tree | 40f4745baa46000bce84de983964eadbc5d43060 /pl/plulfont.c | |
parent | 238427fbba237490abf0e685c6ce4e03337f1955 (diff) |
Replace the 'private' define with the now standard C keyword 'static'.
The compilers we support have supported static for some time now, so
it makes sense to use it by default. This also makes the code less
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/ghostpcl/trunk/ghostpcl@2923 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pl/plulfont.c')
-rw-r--r-- | pl/plulfont.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pl/plulfont.c b/pl/plulfont.c index c0c5fccb5..629a7e520 100644 --- a/pl/plulfont.c +++ b/pl/plulfont.c @@ -48,8 +48,8 @@ PIF_STATE pIFS = &IFS; /* * fco and plugin handles which must be freed when the interpreter shuts down */ -private SW16 fcHndlPlAry[16]; -private bool plugins_opened = false; +static SW16 fcHndlPlAry[16]; +static bool plugins_opened = false; /* NB fixme - we might as well require an environment variable for the fco names and plugins, these change every UFST release */ @@ -69,7 +69,7 @@ const char *UFSTPLUGINS="mtfonts/pcl45/mt3/plug__xi.fco"; /* return a null terminated array of strings on the heap from str0:str1:str:. Use gs separator */ -private +static char **build_strs(gs_memory_t *mem, char *str, char separator) { int i; @@ -131,7 +131,7 @@ char **build_strs(gs_memory_t *mem, char *str, char separator) return list; } -private void +static void free_strs(gs_memory_t *mem, char **str_of_strs) { int i; @@ -149,7 +149,7 @@ free_strs(gs_memory_t *mem, char **str_of_strs) /* these are lists of fco's and plugins relative to the root directory they can be set by an environment variable or defaults. */ -private char ** +static char ** pl_ufst_get_list(gs_memory_t *mem, char *key, char *defaultval) { char pathname[MAXPATHLEN]; |