changed program name to "t2p"
This commit is contained in:
18
Makefile
18
Makefile
@@ -1,6 +1,6 @@
|
||||
# tiff2pdf: build a PDF file out of one or more TIFF Class F Group 4 files
|
||||
# t2p: build a PDF file out of one or more TIFF Class F Group 4 files
|
||||
# Makefile
|
||||
# $Id: Makefile,v 1.8 2002/01/22 01:41:12 eric Exp $
|
||||
# $Id: Makefile,v 1.9 2002/01/30 00:55:53 eric Exp $
|
||||
# Copyright 2001 Eric Smith <eric@brouhaha.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@@ -24,23 +24,27 @@ LDLIBS = -g -ltiff -lm -L/usr/local/lib/panda -lpanda -lpng
|
||||
YACC = bison
|
||||
YFLAGS = -d -v
|
||||
|
||||
SRCS = bitblt.c bitblt_test.c tiff2pdf.c semantics.c
|
||||
HDRS = type.h bitblt.h tiff2pdf.h semantics.h
|
||||
SRCS = bitblt.c bitblt_test.c t2p.c semantics.c
|
||||
HDRS = type.h bitblt.h t2p.h semantics.h
|
||||
MISC = Makefile scanner.l parser.y
|
||||
|
||||
TARGETS = tiff2pdf bitblt_test
|
||||
TARGETS = t2p bitblt_test
|
||||
|
||||
AUTO_SRCS = scanner.c parser.tab.c
|
||||
AUTO_HDRS = parser.tab.h
|
||||
AUTO_MISC = parser.output
|
||||
|
||||
tiff2pdf: tiff2pdf.o scanner.o semantics.o parser.tab.o bitblt.o
|
||||
t2p: t2p.o scanner.o semantics.o parser.tab.o bitblt.o
|
||||
|
||||
bitblt_test: bitblt_test.o bitblt.o
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.o *.d $(TARGETS) $(AUTO_SRCS) $(AUTO_HDRS) $(AUTO_MISC)
|
||||
rm -f *.o *.d $(TARGETS) $(AUTO_SRCS) $(AUTO_HDRS) $(AUTO_MISC)
|
||||
|
||||
very_clean:
|
||||
rm -f *.o *.d $(TARGETS) $(AUTO_SRCS) $(AUTO_HDRS) $(AUTO_MISC) \
|
||||
*~ *.pdf
|
||||
|
||||
wc:
|
||||
wc -l $(SRCS) $(HDRS) $(MISC)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "type.h"
|
||||
#include "semantics.h"
|
||||
#include "parser.tab.h"
|
||||
#include "tiff2pdf.h"
|
||||
#include "t2p.h"
|
||||
|
||||
|
||||
typedef struct
|
||||
|
||||
16
t2p.c
16
t2p.c
@@ -1,11 +1,10 @@
|
||||
/*
|
||||
* tiff2pdf: Create a PDF file from the contents of one or more
|
||||
* TIFF bilevel image files. The images in the resulting
|
||||
* PDF file will be compressed using ITU-T T.6 (G4) fax
|
||||
* encoding.
|
||||
* t2p: Create a PDF file from the contents of one or more TIFF
|
||||
* bilevel image files. The images in the resulting PDF file
|
||||
* will be compressed using ITU-T T.6 (G4) fax encoding.
|
||||
*
|
||||
* Main program
|
||||
* $Id: t2p.c,v 1.15 2002/01/22 01:42:42 eric Exp $
|
||||
* $Id: t2p.c,v 1.16 2002/01/30 00:55:34 eric Exp $
|
||||
* Copyright 2001 Eric Smith <eric@brouhaha.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -21,8 +20,7 @@
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
|
||||
*/
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -36,7 +34,7 @@
|
||||
#include "bitblt.h"
|
||||
#include "semantics.h"
|
||||
#include "parser.tab.h"
|
||||
#include "tiff2pdf.h"
|
||||
#include "t2p.h"
|
||||
|
||||
|
||||
#define POINTS_PER_INCH 72
|
||||
@@ -255,7 +253,7 @@ boolean process_page (int image, /* range 1 .. n */
|
||||
panda_page *page;
|
||||
|
||||
int tiff_temp_fd;
|
||||
char tiff_temp_fn [] = "/var/tmp/tiff2pdf-XXXXXX\0";
|
||||
char tiff_temp_fn [] = "/var/tmp/t2p-XXXXXX\0";
|
||||
TIFF *tiff_temp;
|
||||
|
||||
char pagesize [26]; /* Needs to hold two ints of four characters (0..3420),
|
||||
|
||||
16
tumble.c
16
tumble.c
@@ -1,11 +1,10 @@
|
||||
/*
|
||||
* tiff2pdf: Create a PDF file from the contents of one or more
|
||||
* TIFF bilevel image files. The images in the resulting
|
||||
* PDF file will be compressed using ITU-T T.6 (G4) fax
|
||||
* encoding.
|
||||
* t2p: Create a PDF file from the contents of one or more TIFF
|
||||
* bilevel image files. The images in the resulting PDF file
|
||||
* will be compressed using ITU-T T.6 (G4) fax encoding.
|
||||
*
|
||||
* Main program
|
||||
* $Id: tumble.c,v 1.15 2002/01/22 01:42:42 eric Exp $
|
||||
* $Id: tumble.c,v 1.16 2002/01/30 00:55:34 eric Exp $
|
||||
* Copyright 2001 Eric Smith <eric@brouhaha.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -21,8 +20,7 @@
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
|
||||
*/
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -36,7 +34,7 @@
|
||||
#include "bitblt.h"
|
||||
#include "semantics.h"
|
||||
#include "parser.tab.h"
|
||||
#include "tiff2pdf.h"
|
||||
#include "t2p.h"
|
||||
|
||||
|
||||
#define POINTS_PER_INCH 72
|
||||
@@ -255,7 +253,7 @@ boolean process_page (int image, /* range 1 .. n */
|
||||
panda_page *page;
|
||||
|
||||
int tiff_temp_fd;
|
||||
char tiff_temp_fn [] = "/var/tmp/tiff2pdf-XXXXXX\0";
|
||||
char tiff_temp_fn [] = "/var/tmp/t2p-XXXXXX\0";
|
||||
TIFF *tiff_temp;
|
||||
|
||||
char pagesize [26]; /* Needs to hold two ints of four characters (0..3420),
|
||||
|
||||
Reference in New Issue
Block a user