upgrade to tidy4aug00

This commit is contained in:
rohee 2000-08-15 14:44:53 +00:00
parent 8a50e23fd3
commit bc3869cf05
6 changed files with 52 additions and 32 deletions

View File

@ -1,7 +1,7 @@
# $OpenBSD: Makefile,v 1.5 2000/05/20 00:31:53 rohee Exp $
# $OpenBSD: Makefile,v 1.6 2000/08/15 14:44:53 rohee Exp $
# Original from: Bruno Rohée <rohee@OpenBSD.ORG>
TIDYDATE= 30apr00
TIDYDATE= 4aug00
DISTNAME= tidy${TIDYDATE}
PKGNAME= tidy-${TIDYDATE}
@ -19,8 +19,6 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FAKE= Yes
# override program own Makefile (bad) settings
MAKE_FLAGS= CC=${CC} CFLAGS=${CFLAGS}

View File

@ -1,3 +1,3 @@
MD5 (tidy30apr00.tgz) = e0a4a6eb7407806f6810d1ca6fd8d7cf
RMD160 (tidy30apr00.tgz) = db5bf8a342ad4bade7771bcfe4aaa67332955011
SHA1 (tidy30apr00.tgz) = cf89b58f4435acde52bea1b07cb6dc233527d11d
MD5 (tidy4aug00.tgz) = 5faa2b127ae7f1c7ab07ed677db189e7
RMD160 (tidy4aug00.tgz) = aa3a13328b7425c4b928831596a746aaa2f6d9c0
SHA1 (tidy4aug00.tgz) = 0cf968ebdc048e008c5068ba064f71627aad0d5c

View File

@ -1,13 +1,13 @@
$OpenBSD: patch-parser_c,v 1.2 2000/05/20 00:31:53 rohee Exp $
$OpenBSD: patch-parser_c,v 1.3 2000/08/15 14:44:53 rohee Exp $
Was a core fixer in a previous version, should still be useful with
this one.
--- parser.c.orig Sun Apr 30 11:23:55 2000
+++ parser.c Sat May 20 02:11:48 2000
@@ -415,6 +415,9 @@
--- parser.c.orig Fri Aug 4 18:21:05 2000
+++ parser.c Tue Aug 15 16:26:34 2000
@@ -418,6 +418,9 @@
void ParseTag(Lexer *lexer, Node *node, uint mode)
static void ParseTag(Lexer *lexer, Node *node, uint mode)
{
+ if (!node->tag)
+ return;
@ -15,7 +15,7 @@ this one.
if (node->tag->model & CM_EMPTY)
{
lexer->waswhite = no;
@@ -1583,7 +1586,7 @@
@@ -1587,7 +1590,7 @@
continue;
}

View File

@ -1,28 +1,49 @@
$OpenBSD: patch-platform_h,v 1.2 2000/05/20 00:31:53 rohee Exp $
--- platform.h.orig Sun Apr 30 11:25:15 2000
+++ platform.h Sat May 20 02:04:51 2000
@@ -17,9 +17,9 @@
--- platform.h.old Tue Aug 15 15:59:23 2000
+++ platform.h Tue Aug 15 16:24:59 2000
@@ -7,9 +7,8 @@
/*
Uncomment and edit this #define if you want
to specify the config file at compile-time
-
-#define CONFIG_FILE "/etc/tidy_config.txt"
*/
+#define CONFIG_FILE "/etc/tidy_config.txt"
/*
Uncomment this if you are on a Unix system supporting
@@ -17,9 +16,8 @@
It enables tidy to find config files named ~/.tidyrc
and ~your/.tidyrc etc if the HTML_TIDY environment
variable is not set. Contributed by Todd Lewis.
+*/
#define SUPPORT_GETPWNAM
-*/
-
-#define SUPPORT_GETPWNAM
*/
+#define SUPPORT_GETPWNAM
#include <ctype.h>
#include <stdio.h>
@@ -68,12 +68,6 @@
/* hack for gnu sys/types.h file which defines uint and ulong */
@@ -33,6 +31,7 @@
#include <pwd.h>
#endif
+#define NEEDS_UNISTD_H /* unlink defined there on BSD systems */
#ifdef NEEDS_UNISTD_H
#include <unistd.h> /* needed for unlink on some Unix systems */
#endif
@@ -65,14 +64,14 @@
/* you may need to delete the #ifndef and #endif on your system */
-#ifndef __USE_MISC
-#ifndef _INCLUDE_HPUX_SOURCE
-typedef unsigned int uint;
-#endif /* _INCLUDE_HPUX_SOURCE */
-typedef unsigned long ulong;
-#endif /* __USE_MISC */
#ifndef __USE_MISC
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#include <sys/types.h>
#else
#ifndef _INCLUDE_HPUX_SOURCE
typedef unsigned int uint;
#endif /* _INCLUDE_HPUX_SOURCE */
-#endif /* __FreeBSD__ */
typedef unsigned long ulong;
+#endif /* BSDs */
#endif /* __USE_MISC */
typedef unsigned char byte;
typedef char *UTF8;

View File

@ -3,4 +3,4 @@ and pretty prints it.
Tidy's output can be customized to your needs.
Some HTML documentation is vailable in /usr/local/share/doc/tidy.
Some HTML documentation is available in /usr/local/share/doc/tidy.

View File

@ -1,3 +1,4 @@
@comment $OpenBSD: PLIST,v 1.3 2000/08/15 14:44:53 rohee Exp $
bin/tab2space
bin/tidy
man/man1/tidy.1