Clean up deleted files.
This commit is contained in:
parent
100ce3fca6
commit
ae3013a732
@ -1,100 +0,0 @@
|
||||
#Copyright (C) 1989, 1990 Free Software Foundation, Inc.
|
||||
# Written by James Clark (jjc@jclark.uucp)
|
||||
#
|
||||
#This file is part of groff.
|
||||
#
|
||||
#groff is free software; you can redistribute it and/or modify it under
|
||||
#the terms of the GNU General Public License as published by the Free
|
||||
#Software Foundation; either version 1, or (at your option) any later
|
||||
#version.
|
||||
#
|
||||
#groff is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
#WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
#for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License along
|
||||
#with groff; see the file LICENSE. If not, write to the Free Software
|
||||
#Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
MACROPATH=.:/usr/local/lib/groff/tmac:/usr/lib/tmac
|
||||
# DEVICE is the default device
|
||||
DEVICE=ps
|
||||
HYPHENFILE=/usr/local/lib/groff/hyphen
|
||||
BINDIR=/usr/local/bin
|
||||
INCLUDES=-I../lib
|
||||
CC=g++
|
||||
MLIBS=-lm
|
||||
CFLAGS=-g -O -Wall
|
||||
LDFLAGS=-g
|
||||
DEFINES=-DMACROPATH=\"$(MACROPATH)\" -DDEVICE=\"$(DEVICE)\" \
|
||||
-DHYPHENFILE=\"$(HYPHENFILE)\" \
|
||||
-DSTORE_WIDTH # -DCOLUMN -DWIDOW_CONTROL -DDUMP
|
||||
ETAGS=etags
|
||||
ETAGSFLAGS=-p
|
||||
OBJECTS=env.o node.o input.o div.o column.o symbol.o dictionary.o \
|
||||
reg.o number.o majorminor.o # dump.o unexec.o
|
||||
|
||||
SOURCES=env.c node.c input.c div.c column.c symbol.c dictionary.c number.c \
|
||||
reg.c groff.h hvunits.h symbol.h dictionary.h env.h reg.h \
|
||||
token.h charinfo.h div.h node.h request.h
|
||||
|
||||
GROFF_H=groff.h ../lib/errarg.h ../lib/error.h ../lib/cset.h ../lib/lib.h
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $<
|
||||
|
||||
all: troff
|
||||
|
||||
troff: $(OBJECTS) ../lib/libgroff.a
|
||||
$(CC) $(LDFLAGS) -o $@ $(OBJECTS) ../lib/libgroff.a $(MLIBS)
|
||||
|
||||
majorminor.c: ../VERSION
|
||||
@echo Making $@
|
||||
@-rm -f $@
|
||||
@echo const char \*major_version = \
|
||||
\"`sed -e 's/^\(.*\)\..*$$/\1/' ../VERSION`\"\; >$@
|
||||
@echo const char \*minor_version = \
|
||||
\"`sed -e 's/^.*\.\(.*\)$$/\1/' ../VERSION`\"\; >>$@
|
||||
|
||||
dictionary.o: dictionary.h $(GROFF_H) symbol.h
|
||||
symbol.o: $(GROFF_H) symbol.h
|
||||
number.o: div.h env.h $(GROFF_H) hvunits.h symbol.h token.h
|
||||
reg.o : $(GROFF_H) symbol.h dictionary.h token.h request.h reg.h
|
||||
div.o: dictionary.h div.h env.h $(GROFF_H) hvunits.h \
|
||||
node.h reg.h request.h symbol.h token.h
|
||||
env.o: charinfo.h dictionary.h div.h env.h $(GROFF_H) \
|
||||
hvunits.h node.h reg.h request.h symbol.h token.h
|
||||
input.o: charinfo.h dictionary.h div.h env.h $(GROFF_H) \
|
||||
hvunits.h node.h reg.h request.h symbol.h token.h
|
||||
node.o: charinfo.h dictionary.h env.h reg.h \
|
||||
$(GROFF_H) hvunits.h node.h request.h symbol.h \
|
||||
token.h ../lib/font.h
|
||||
column.o: dictionary.h div.h env.h $(GROFF_H) hvunits.h \
|
||||
node.h reg.h request.h symbol.h token.h ../lib/stringclass.h
|
||||
|
||||
TAGS : $(SOURCES)
|
||||
$(ETAGS) $(ETAGSFLAGS) $(SOURCES)
|
||||
|
||||
clean:
|
||||
-rm -f *.o core troff gmon.out mon.out majorminor.c
|
||||
|
||||
distclean: clean
|
||||
-rm -f TAGS
|
||||
|
||||
realclean: distclean
|
||||
|
||||
install.bin : troff
|
||||
-[ -d $(BINDIR) ] || mkdir $(BINDIR)
|
||||
cp troff $(BINDIR)/gtroff
|
||||
|
||||
install.nobin: hyphen
|
||||
cp hyphen $(HYPHENFILE)
|
||||
|
||||
install: install.bin install.nobin
|
||||
|
||||
# dump.o: dump.c config.h
|
||||
# cc -g $(DUMPFLAG) -c dump.c
|
||||
#
|
||||
# unexec.o: unexec.c config.h
|
||||
# cc -g $(DUMPFLAG) -I../lib -c unexec.c
|
@ -1,91 +0,0 @@
|
||||
// -*- C++ -*-
|
||||
/* Copyright (C) 1989, 1990 Free Software Foundation, Inc.
|
||||
Written by James Clark (jjc@jclark.uucp)
|
||||
|
||||
This file is part of groff.
|
||||
|
||||
groff is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free
|
||||
Software Foundation; either version 1, or (at your option) any later
|
||||
version.
|
||||
|
||||
groff is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with groff; see the file LICENSE. If not, write to the Free Software
|
||||
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <osfcn.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "lib.h"
|
||||
#include "assert.h"
|
||||
|
||||
#ifdef __GNUG__
|
||||
#define NO_RETURN volatile
|
||||
#else
|
||||
#define NO_RETURN
|
||||
#endif
|
||||
|
||||
NO_RETURN void cleanup_and_exit(int n);
|
||||
|
||||
typedef int units;
|
||||
|
||||
extern units scale(units n, units x, units y); // scale n by x/y
|
||||
|
||||
extern units units_per_inch;
|
||||
|
||||
extern units points_to_units(units n);
|
||||
extern units scale(units, double);
|
||||
|
||||
extern const char *device;
|
||||
extern int ascii_output_flag;
|
||||
extern int suppress_output_flag;
|
||||
|
||||
extern int tcommand_flag;
|
||||
extern int vresolution;
|
||||
extern int hresolution;
|
||||
extern int sizescale;
|
||||
|
||||
#include "cset.h"
|
||||
#include "cmap.h"
|
||||
#include "errarg.h"
|
||||
#include "error.h"
|
||||
|
||||
enum warning_type {
|
||||
WARN_CHAR = 01,
|
||||
WARN_NUMBER = 02,
|
||||
WARN_BREAK = 04,
|
||||
WARN_DELIM = 010,
|
||||
WARN_EL = 020,
|
||||
WARN_SCALE = 040,
|
||||
WARN_RANGE = 0100,
|
||||
WARN_SYNTAX = 0200,
|
||||
WARN_DI = 0400,
|
||||
WARN_MAC = 01000,
|
||||
WARN_REG = 02000,
|
||||
WARN_TAB = 04000,
|
||||
WARN_RIGHT_BRACE = 010000,
|
||||
WARN_MISSING = 020000,
|
||||
WARN_INPUT = 040000,
|
||||
WARN_ESCAPE = 0100000,
|
||||
WARN_SPACE = 0200000,
|
||||
// change WARN_TOTAL if you add more warning types
|
||||
};
|
||||
|
||||
const int WARN_TOTAL = 0377777;
|
||||
|
||||
int warning(warning_type, const char *,
|
||||
const errarg & = empty_errarg,
|
||||
const errarg & = empty_errarg,
|
||||
const errarg & = empty_errarg);
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user