BSD Ports

devel/cproto 4.7o NetBSD

Generates function prototypes from C source

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
public-domain
Categories
devel
Package size
40.7 KiB, 112.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.

In the other systems

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

Install

Binary package:

pkgin install cproto

From pkgsrc:

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

Packages

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

RepositoryVersion
NetBSD 10.1 x86_644.7o
NetBSD 10.1 aarch644.7o
SmartOS / illumos x86_644.7o
macOS 15 arm644.7o

Dependencies

No port depends on this one.