Retrieve Default Printer Name Using CUPS on macOS
Categories
(Core :: Printing: Setup, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: nordzilla, Assigned: nordzilla)
References
Details
(Whiteboard: [print2020_v81])
Attachments
(1 file)
Now that we can retrieve printers through CUPS, we can retrieve the default printer name this way as well.
Assignee | ||
Comment 1•4 years ago
|
||
Comment 4•4 years ago
•
|
||
Backed out for linux Hazard bustages.
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=312227247&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/9950354e1a3876814e1ffbe0fbe7826a5b0ba7c6
Assignee | ||
Comment 5•4 years ago
|
||
Apparently there are some C++ compilers that have an issue with, for example:
void foo(int) {}
class bar {
decltype(foo)* foo;
};
Other compilers (such as the ones I tested with) do not.
So to avoid this inconsistency in com, we're going to have to be explicit about the global scope.
To fix the example, this would mean:
decltype(::foo)* foo;
To fix this code, we'll have to change the declaration macro from
#define CUPS_SHIM_FUNC_DECL(X) decltype(X)* X;
to
#define CUPS_SHIM_FUNC_DECL(X) decltype(::X)* X;
so that we are explicit about decltype
ing from the globally scoped function that exists in cups.h
I believe that should fix the issue.
Comment 7•4 years ago
|
||
bugherder |
Description
•