BSD Ports

devel/cproto 4.8a FreeBSD

Generate C function prototypes and convert function definitions

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
a6f8d99bf9
License
PD
Categories
devel
Package size
41.4 KiB, 101.5 KiB installed

Description

Cproto is a program that generates function prototypes and variable declarations from C source code. It can also convert function definitions between the old style and the ANSI C style. This conversion overwrites the original files, so make a backup copy of your files in case something goes wrong.

The program isn't confused by complex function definitions as much as other prototype generators because it uses a yacc generated parser. By ignoring all the input between braces, I avoided implementing the entire C language grammar.

Cproto is in the public domain, except for the configure script which is copyrighted by the Free Software Foundation, Inc. If you have any comments or find any bugs, please let me know.

In the other systems

SystemPortVersion
FreeBSDdevel/cproto4.8a
NetBSDdevel/cproto4.7o
DragonFlydevel/cproto4.7x
HardenedBSDdevel/cproto4.8a
GhostBSDdevel/cproto4.8a

Install

Binary package:

pkg install cproto

From the ports tree:

cd /usr/ports/devel/cproto/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	cproto>0:devel/cproto

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.8a4.8a4.7k4.7x4.8a
FreeBSD:14:quarterly4.8a4.8an/a4.7x4.8a
FreeBSD:15:latest4.8a4.8an/a4.7x4.7x
FreeBSD:15:quarterly4.8a4.8an/an/an/a
FreeBSD:16:latest4.8a4.8an/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Required by 1

Configuration

No options to configure.

USES
tar:tgz
Service scripts
none

Files

distinfo 1
FileSizeSHA256
cproto-4.8a.tgz198804beb121e08c0d47b5bd719071c32a77edcc31dff992a84e3d9a59c0f7ec9fadd3
Master sites 2
  • https://invisible-island.net/archives/cproto/
  • https://invisible-mirror.net/archives/cproto/

Commit history 1

DateCommitCreditsLog message
a6f8d99bf9 Tom Vogt devel/cproto: Update to 4.8a
Changelog: https://invisible-island.net/cproto/CHANGES PR: 297100 Reported by: Tom Vogt <[email protected]> (maintainer)