"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fileconverter.c" between
foomatic-filters-4.0.17.tar.gz and foomatic-filters-4.0-20160212.tar.gz

About: Foomatic - The XML-based printer/driver database integrates free software printer drivers with all common spoolers (CUPS, LPRng, LPD, GNUlpr, PPR, PDQ, CPS, etc.) in UNIX. Development version.

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

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS