diff options
author | roberto <roberto@FreeBSD.org> | 2002-11-04 19:36:11 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2002-11-04 19:36:11 +0000 |
commit | a85d9ae25e8e8696677bc30feb6eaf7fc150e529 (patch) | |
tree | 5071c8dbfd7605eec15909cabca2296957573ac7 /contrib/ntp/util/ansi2knr.c | |
parent | 8d541346f2b91896a9ef53cafe2b81898978ccf3 (diff) | |
download | FreeBSD-src-a85d9ae25e8e8696677bc30feb6eaf7fc150e529.zip FreeBSD-src-a85d9ae25e8e8696677bc30feb6eaf7fc150e529.tar.gz |
Virgin import of ntpd 4.1.1b
Diffstat (limited to 'contrib/ntp/util/ansi2knr.c')
-rw-r--r-- | contrib/ntp/util/ansi2knr.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/contrib/ntp/util/ansi2knr.c b/contrib/ntp/util/ansi2knr.c index 1689528..1b32b06 100644 --- a/contrib/ntp/util/ansi2knr.c +++ b/contrib/ntp/util/ansi2knr.c @@ -1,6 +1,6 @@ -/* Copyright (C) 1989, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved. */ +/* Copyright (C) 1989, 2000 Aladdin Enterprises. All rights reserved. */ -/*$Id$*/ +/*$Id: ansi2knr.c,v 1.3 2000/04/13 03:41:48 lpd Exp $*/ /* Convert ANSI C function definitions to K&R ("traditional C") syntax */ /* @@ -61,6 +61,25 @@ program under the GPL. * The original and principal author of ansi2knr is L. Peter Deutsch * <ghost@aladdin.com>. Other authors are noted in the change history * that follows (in reverse chronological order): + + lpd 2000-04-12 backs out Eggert's changes because of bugs: + - concatlits didn't declare the type of its bufend argument; + - concatlits didn't't recognize when it was inside a comment; + - scanstring could scan backward past the beginning of the string; when + - the check for \ + newline in scanstring was unnecessary. + + 2000-03-05 Paul Eggert <eggert@twinsun.com> + + Add support for concatenated string literals. + * ansi2knr.c (concatlits): New decl. + (main): Invoke concatlits to concatenate string literals. + (scanstring): Handle backslash-newline correctly. Work with + character constants. Fix bug when scanning backwards through + backslash-quote. Check for unterminated strings. + (convert1): Parse character constants, too. + (appendline, concatlits): New functions. + * ansi2knr.1: Document this. + lpd 1999-08-17 added code to allow preprocessor directives wherever comments are allowed lpd 1999-04-12 added minor fixes from Pavel Roskin |