]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-shared.cxx
4 // Shared data class for the CUPS PPD Compiler.
6 // Copyright 2007-2009 by Apple Inc.
7 // Copyright 2002-2005 by Easy Software Products.
9 // These coded instructions, statements, and computer programs are the
10 // property of Apple Inc. and are protected by Federal copyright
11 // law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 // which should have been included with this file. If this file is
13 // file is missing or damaged, see the license at "http://www.cups.org/".
17 // ppdcShared::ppdcShared() - Create shared data.
18 // ppdcShared::~ppdcShared() - Destroy shared data.
19 // ppdcShared::release() - Decrement the use count and delete as needed.
20 // ppdcShared::retain() - Increment the use count for this data.
24 // Include necessary headers...
27 #include "ppdc-private.h"
31 // 'ppdcShared::ppdcShared()' - Create shared data.
34 ppdcShared::ppdcShared()
41 // 'ppdcShared::~ppdcShared()' - Destroy shared data.
44 ppdcShared::~ppdcShared()
50 // 'ppdcShared::release()' - Decrement the use count and delete as needed.
54 ppdcShared::release(void)
56 DEBUG_printf(("%s: %p release use=%d", class_name(), this, use
));
63 fprintf(stderr
, "ERROR: Over-release of %s: %p\n", class_name(), this);
74 // 'ppdcShared::retain()' - Increment the use count for this data.
82 DEBUG_printf(("%s: %p retain use=%d", class_name(), this, use
));