MCPcopy Create free account
hub / github.com/OpenPrinting/cups / ppdcFile

Method ppdcFile

ppdc/ppdc-file.cxx:22–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20//
21
22ppdcFile::ppdcFile(const char *f, // I - File to open
23 cups_file_t *ffp) // I - File pointer to use
24{
25 if (ffp)
26 {
27 fp = ffp;
28 cupsFileRewind(fp);
29 }
30 else
31 fp = cupsFileOpen(f, "r");
32
33 close_on_delete = !ffp;
34 filename = f;
35 line = 1;
36
37 if (!fp)
38 _cupsLangPrintf(stderr, _("ppdc: Unable to open %s: %s"), f,
39 strerror(errno));
40}
41
42
43//

Callers

nothing calls this directly

Calls 3

cupsFileRewindFunction · 0.85
cupsFileOpenFunction · 0.85
_cupsLangPrintfFunction · 0.85

Tested by

no test coverage detected