//
-// "$Id$"
+// PPD file import methods for the CUPS PPD Compiler.
//
-// PPD file import methods for the CUPS PPD Compiler.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 2002-2006 by Easy Software Products.
//
-// Copyright 2007-2010 by Apple Inc.
-// Copyright 2002-2006 by Easy Software Products.
-//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "LICENSE.txt"
-// which should have been included with this file. If this file is
-// file is missing or damaged, see the license at "http://www.cups.org/".
-//
-// Contents:
-//
-// ppdcSource::import_ppd() - Import a PPD file.
-// ppd_gets() - Get a line from a PPD file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more information.
//
//
// Then add the stuff from the PPD file...
if (ppd->modelname && ppd->manufacturer &&
- !strncasecmp(ppd->modelname, ppd->manufacturer,
+ !_cups_strncasecmp(ppd->modelname, ppd->manufacturer,
strlen(ppd->manufacturer)))
{
ptr = ppd->modelname + strlen(ppd->manufacturer);
for (i = ppd->num_sizes, size = ppd->sizes; i > 0; i --, size ++)
{
// Don't do custom size here...
- if (!strcasecmp(size->name, "Custom"))
+ if (!_cups_strcasecmp(size->name, "Custom"))
continue;
// Get the code for the PageSize and PageRegion options...
driver->add_size(csize);
- if (!strcasecmp(size_option->defchoice, size->name))
+ if (!_cups_strcasecmp(size_option->defchoice, size->name))
driver->set_default_size(csize);
}
cchoice = new ppdcChoice(choice->choice, choice->text, choice->code);
coption->add_choice(cchoice);
- if (!strcasecmp(option->defchoice, choice->choice))
+ if (!_cups_strcasecmp(option->defchoice, choice->choice))
coption->set_defchoice(cchoice);
}
}
return (1);
}
-
-
-//
-// End of "$Id$".
-//