]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - ppdc/ppdc.h
Import changes from CUPS 1.4svn-r8704.
[thirdparty/cups.git] / ppdc / ppdc.h
index b75f40dec72ecdfc14dc6b4264398b58d1d8a966..24c9f2c269ef15d1ad80167a556c441041d2bd4b 100644 (file)
@@ -3,7 +3,7 @@
 //
 //   Definitions for the CUPS PPD Compiler.
 //
-//   Copyright 2007-2008 by Apple Inc.
+//   Copyright 2007-2009 by Apple Inc.
 //   Copyright 2002-2007 by Easy Software Products.
 //
 //   These coded instructions, statements, and computer programs are the
 // Include necessary headers...
 //
 
-#  include <cups/string.h>
-
 #  include <cups/file.h>
 #  include <stdlib.h>
-#  include <errno.h>
 
 
 //
 // Macros...
 //
 
-#  ifdef DEBUG
-#    define PPDC_NAME(s)       const char *class_name() { return (s); }
-#    define PPDC_NEW           fprintf(stderr, "DEBUG: %p new %s\n", this, class_name())
-#    define PPDC_NEWVAL(s)     fprintf(stderr, "DEBUG: %p new %s(\"%s\")\n", this, class_name(), s)
-#    define PPDC_DELETE                fprintf(stderr, "DEBUG: %p delete %s\n", this, class_name())
-#  else
-#    define PPDC_NAME(s)
-#    define PPDC_NEW
-#    define PPDC_NEWVAL(s)
-#    define PPDC_DELETE
-#  endif // DEBUG
+#  define PPDC_NAME(s) const char *class_name() { return (s); }
 
 
 //
@@ -113,9 +100,7 @@ class ppdcShared                    //// Shared Data Value
   ppdcShared();
   virtual ~ppdcShared();
 
-#  ifdef DEBUG
   virtual const char *class_name() = 0;
-#  endif // DEBUG
 
   void         retain();
   void         release();
@@ -426,6 +411,7 @@ class ppdcDriver                    //// Printer Driver Data
   ppdcAttr     *find_attr(const char *k, const char *s);
   ppdcGroup    *find_group(const char *n);
   ppdcOption   *find_option(const char *n);
+  ppdcOption   *find_option_group(const char *n, ppdcGroup **mg);
 
   void         set_custom_size_code(const char *c);
   void         set_default_font(ppdcFont *f);