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 /pcl/pcfsel.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 'pcl/pcfsel.c')
-rw-r--r-- | pcl/pcfsel.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pcl/pcfsel.c b/pcl/pcfsel.c index 52cd1dfb6..6a5f1d2cb 100644 --- a/pcl/pcfsel.c +++ b/pcl/pcfsel.c @@ -61,7 +61,7 @@ static const char * const score_name[] = { "fontnumber" }; -private void +static void dprint_cc(const byte *pcc) { dprintf8("cc=%02x %02x %02x %02x %02x %02x %02x %02x", pcc[0], pcc[1], pcc[2], pcc[3], pcc[4], pcc[5], pcc[6], pcc[7]); @@ -77,7 +77,7 @@ dprint_font_params_t(const pl_font_params_t *pfp) #include "plftable.h" -private void +static void dprint_font_name(const pl_font_t *pfont) { int i; @@ -102,7 +102,7 @@ dprint_font_name(const pl_font_t *pfont) } } -private void +static void dprint_font_t(const pl_font_t *pfont) { dprint_font_name(pfont); @@ -113,7 +113,7 @@ dprint_font_t(const pl_font_t *pfont) dprint_font_params_t(&pfont->params); } -private void +static void dprintf_font_scoring(const char *type, const pl_font_t *pfont, match_score_t score) { int i; @@ -133,7 +133,7 @@ dprintf_font_scoring(const char *type, const pl_font_t *pfont, match_score_t sco the requested map is not available or to the requested symbol set if it is available. 2 is returned for no matching symbol set, 1 for mismatched vocabulary and 0 if the sets match. */ -private int +static int check_support(const pcl_state_t *pcs, uint symbol_set, const pl_font_t *fp, pl_symbol_map_t **mapp) { @@ -164,7 +164,7 @@ check_support(const pcl_state_t *pcs, uint symbol_set, const pl_font_t *fp, /* a font may be scalable but we want to treat it a bitmap for the purpose of selection. Right now lineprinter is the only example of this */ -private bool +static bool font_is_scalable_selection_wise(const pl_font_t *fp) { if (fp->params.typeface_family == 0) @@ -176,7 +176,7 @@ font_is_scalable_selection_wise(const pl_font_t *fp) /* Compute a font's score against selection parameters. TRM 8-27. * Also set *mapp to the symbol map to be used if this font wins. */ -private void +static void score_match(const pcl_state_t *pcs, const pcl_font_selection_t *pfs, const pl_font_t *fp, pl_symbol_map_t **mapp, match_score_t score) { |