* Local functions...
*/
-void check_basics(const char *filename);
-int check_constraints(ppd_file_t *ppd, int errors, int verbose, int warn);
-int check_defaults(ppd_file_t *ppd, int errors, int verbose, int warn);
-int check_filters(ppd_file_t *ppd, const char *root, int errors,
- int verbose, int warn);
-int check_translations(ppd_file_t *ppd, int errors, int verbose, int warn);
-void show_conflicts(ppd_file_t *ppd);
-void usage(void);
-int valid_utf8(const char *s);
+static void check_basics(const char *filename);
+static int check_constraints(ppd_file_t *ppd, int errors, int verbose,
+ int warn);
+static int check_defaults(ppd_file_t *ppd, int errors, int verbose,
+ int warn);
+static int check_filters(ppd_file_t *ppd, const char *root, int errors,
+ int verbose, int warn);
+static int check_translations(ppd_file_t *ppd, int errors, int verbose,\
+ int warn);
+static void show_conflicts(ppd_file_t *ppd);
+static void usage(void);
+static int valid_utf8(const char *s);
/*
* 'check_basics()' - Check for CR LF, mixed line endings, and blank lines.
*/
-void
+static void
check_basics(const char *filename) /* I - PPD file to check */
{
cups_file_t *fp; /* File pointer */
* 'check_constraints()' - Check UIConstraints in the PPD file.
*/
-int /* O - Errors found */
+static int /* O - Errors found */
check_constraints(ppd_file_t *ppd, /* I - PPD file */
int errors, /* I - Errors found */
int verbose, /* I - Verbosity level */
* 'check_defaults()' - Check default option keywords in the PPD file.
*/
-int /* O - Errors found */
+static int /* O - Errors found */
check_defaults(ppd_file_t *ppd, /* I - PPD file */
int errors, /* I - Errors found */
int verbose, /* I - Verbosity level */
* 'check_filters()' - Check filters in the PPD file.
*/
-int /* O - Errors found */
+static int /* O - Errors found */
check_filters(ppd_file_t *ppd, /* I - PPD file */
const char *root, /* I - Root directory */
int errors, /* I - Errors found */
* 'check_translations()' - Check translations in the PPD file.
*/
-int /* O - Errors found */
+static int /* O - Errors found */
check_translations(ppd_file_t *ppd, /* I - PPD file */
int errors, /* I - Errors found */
int verbose, /* I - Verbosity level */
* 'show_conflicts()' - Show option conflicts in a PPD file.
*/
-void
+static void
show_conflicts(ppd_file_t *ppd) /* I - PPD to check */
{
int i, j; /* Looping variables */
* 'usage()' - Show program usage...
*/
-void
+static void
usage(void)
{
_cupsLangPuts(stdout,
* 'valid_utf8()' - Check whether a string contains valid UTF-8 text.
*/
-int /* O - 1 if valid, 0 if not */
+static int /* O - 1 if valid, 0 if not */
valid_utf8(const char *s) /* I - String to check */
{
while (*s)