Skip to content

triedel42/update_proto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

update_proto.py

A quick script to update your C prototypes using cproto.

Use at your own risk ;)

Installation


If you want to install it to your home directory:

$ cd
$ git clone https://github.com/triedel42/update_proto

then add this to your ~/.zshrc

export PATH="$PATH:$HOME/update_proto"

Usage

Add this to your header file where you want your prototypes to be.

/* $$proto_start$$ */

// this will be replaced and updated
// by update_proto.py

/* $$proto_end$$ */

Now you can update myfile.h using auto-generated prototypes from myfile.c.

$ update_proto.py myfile.h

You can also use $ update_proto.py *.h or add a rule with it to your Makefile. update_proto.py accepts multiple arguments like $ update_proto.py myfile1.h myfile2.h myfile3.h.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages