fileconverter.c (foomatic-filters-4.0.17) | : | fileconverter.c (foomatic-filters-4.0-20160212) | ||
---|---|---|---|---|
skipping to change at line 42 | skipping to change at line 42 | |||
#include "process.h" | #include "process.h" | |||
/* | /* | |||
* One of these fileconverters is used if the 'textfilter' option in the config file | * One of these fileconverters is used if the 'textfilter' option in the config file | |||
* is not set. (Except if the spooler is CUPS, then 'texttops' is used | * is not set. (Except if the spooler is CUPS, then 'texttops' is used | |||
*/ | */ | |||
const char *fileconverters[][2] = { | const char *fileconverters[][2] = { | |||
{ "a2ps", "a2ps -1 @@--medium=@@PAGESIZE@@ @@--center-title=@@JOBTITLE@@ -o -" }, | { "a2ps", "a2ps -1 @@--medium=@@PAGESIZE@@ @@--center-title=@@JOBTITLE@@ -o -" }, | |||
{ "enscript", "enscript -G @@-M @@PAGESIZE@@ @@-b \"Page $%|@@JOBTITLE@@ --m argins=36:36:36:36 --mark-wrapped-lines=arrow --word-wrap -p-" }, | { "enscript", "enscript -G @@-M @@PAGESIZE@@ @@-b \"Page $%|@@JOBTITLE@@ --m argins=36:36:36:36 --mark-wrapped-lines=arrow --word-wrap -p-" }, | |||
{ "mpage", "mpage -o -1 @@-b @@PAGESIZE@@ @@-H -h @@JOBTITLE@@ -m36l36b36t36 r -f -P- -" }, | { "mpage", "mpage -o -1 @@-b @@PAGESIZE@@ @@-H -h @@JOBTITLE@@ -m36l36b36t36 r -f -P- -" }, | |||
{ "paps", "paps @@--paper @@PAGESIZE@@ --header --font=11.5" }, | ||||
{ NULL, NULL } | { NULL, NULL } | |||
}; | }; | |||
char fileconverter[PATH_MAX] = ""; | char fileconverter[PATH_MAX] = ""; | |||
void set_fileconverter(const char *fc) | void set_fileconverter(const char *fc) | |||
{ | { | |||
int i; | int i; | |||
for (i = 0; fileconverters[i][0]; i++) { | for (i = 0; fileconverters[i][0]; i++) { | |||
if (!strcmp(fc, fileconverters[i][0])) { | if (!strcmp(fc, fileconverters[i][0])) { | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |