Commit 6c15b6c3 6c15b6c306318bccd2056c1c5965604cc04df6ea by Jeff Bailey

Add Ansi2knr handling

1 parent eb0328a0
1 1999-11-15 Jeff Bailey <jbailey@nisa.net>
2
3 * lib/ansi2knr*: Add
4
5 * configure.in: Add AM_C_PROTOTYPES
6
7 * libmailbox/Makefile.am: Add ansi2knr handling
8
1 1999-11-08 Sean 'Shaleh' Perry <shaleh@debian.org> 9 1999-11-08 Sean 'Shaleh' Perry <shaleh@debian.org>
2 10
3 * cleaned up some of the auto{make,conf} magic for non-Linux 11 * cleaned up some of the auto{make,conf} magic for non-Linux
......
...@@ -20,6 +20,7 @@ AC_ARG_ENABLE(pam, ...@@ -20,6 +20,7 @@ AC_ARG_ENABLE(pam,
20 20
21 dnl Check for headers 21 dnl Check for headers
22 AC_HEADER_STDC 22 AC_HEADER_STDC
23 AM_C_PROTOTYPES
23 AC_CHECK_HEADERS(malloc.h stdlib.h stdio.h errno.h unistd.h\ 24 AC_CHECK_HEADERS(malloc.h stdlib.h stdio.h errno.h unistd.h\
24 paths.h sys/file.h syslog.h shadow.h) 25 paths.h sys/file.h syslog.h shadow.h)
25 AC_CHECK_HEADERS(string.h strings.h, break) 26 AC_CHECK_HEADERS(string.h strings.h, break)
......
1 .TH ANSI2KNR 1 "19 Jan 1996"
2 .SH NAME
3 ansi2knr \- convert ANSI C to Kernighan & Ritchie C
4 .SH SYNOPSIS
5 .I ansi2knr
6 [--varargs] input_file [output_file]
7 .SH DESCRIPTION
8 If no output_file is supplied, output goes to stdout.
9 .br
10 There are no error messages.
11 .sp
12 .I ansi2knr
13 recognizes function definitions by seeing a non-keyword identifier at the left
14 margin, followed by a left parenthesis, with a right parenthesis as the last
15 character on the line, and with a left brace as the first token on the
16 following line (ignoring possible intervening comments). It will recognize a
17 multi-line header provided that no intervening line ends with a left or right
18 brace or a semicolon. These algorithms ignore whitespace and comments, except
19 that the function name must be the first thing on the line.
20 .sp
21 The following constructs will confuse it:
22 .br
23 - Any other construct that starts at the left margin and follows the
24 above syntax (such as a macro or function call).
25 .br
26 - Some macros that tinker with the syntax of the function header.
27 .sp
28 The --varargs switch is obsolete, and is recognized only for
29 backwards compatibility. The present version of
30 .I ansi2knr
31 will always attempt to convert a ... argument to va_alist and va_dcl.
32 .SH AUTHOR
33 L. Peter Deutsch <ghost@aladdin.com> wrote the original ansi2knr and
34 continues to maintain the current version; most of the code in the current
35 version is his work. ansi2knr also includes contributions by Francois
36 Pinard <pinard@iro.umontreal.ca> and Jim Avera <jima@netcom.com>.
1 # Use automake to process this file -*-Makefile-*- 1 # Use automake to process this file -*-Makefile-*-
2 2
3 AUTOMAKE_OPTIONS = ../lib/ansi2knr
4
3 CFLAGS = -Wall -pedantic -g -DTESTING 5 CFLAGS = -Wall -pedantic -g -DTESTING
4 6
5 include_HEADERS = mailbox.h 7 include_HEADERS = mailbox.h
......