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