benkasminbullock / cfunctions Goto Github PK
View Code? Open in Web Editor NEWMake C header files from C source files (create .h files from .c files)
Make C header files from C source files (create .h files from .c files)
cpp_eject and its declaration in argument.c are pure spaghetti.
Make the output a readonly file to prevent it accidentally being edited.
One can't build with MinGW/MSYS on Windows because of this requirement. Blocks migrating over from Makeheaders.
#if HEADER int j = 10; #endif
should produce a warning, since the user probably did not intend to have the initializer copied in to the header, and it will be deleted from the C file compilation due to the wrapper.
kanji_codes_status_t jis2euc (two_bytes jis , two_bytes * euc );
The output from running cfunctions on tests/ok-verbatim.c is utter nonsense:
/* This file was generated by the following command: ./cfunctions tests/ok-verbatim.c */ #ifndef CFH_OK_VERBATIM_H #define CFH_OK_VERBATIM_H #line 16 "tests/ok-verbatim.c" typedef int fuga; #if 0 99 #line 21 "tests/ok-verbatim.c" #if 0 #endif int jub; #endif /* 0 */
An extra #if 0 has been added to the output, and there is also a stray 99 in the output.
The --tags option was removed but the texinfo manual still mentions it.
#include "ok-arg.h" int funkyfunc (int x)
in link-arg.c results in
#line 4 "link-arg.c" int funkyfunc (int x );
in the output, obviously off by one.
bool (*libraryfunction_d)(custom_type_t *location) = NULL;
Results in:
extern bool ;
Instead of
extern bool (*libraryfunction_d)(custom_type_t *location);
Remove all instances of "strcat" from wt.c.
These are stupid.
$ ~/projects/cfunctions/src/cfunctions -D help The following flags may be passed after -D: tag: debug tag creation func: debug function and function argument cpp: debug C preprocessor-like actions comment: debug C comments brace: debug handling of { and } arg: debug function arguments fptr: debug function pointers string: debug C strings flex: debug flex lexer trad: debug pre-ANSI (traditional C) handling help: debug Print these messages
but
~/projects/cfunctions/src/cfunctions -D trad cdecl.c cfunctions: warning: unknown debug flag 'trad': see the Cfunctions manual for a list of possible debugging flags.
The file "tags.c" does things like changing global variables, which is stupid.
This function uses uninitialized memory and it does not appear to do what the comment says it does.
Add a date stamp to the top header.
Somewhere there is a bug whereby "test.perl" is not generated under some circumstances.
static void print_usage_message () __attribute__ ((noreturn));
produces an error
/home/ben/software/install/bin/cfunctions -in log-parse.c
cfunctions:argument.c:178: internal error: cfunctions:argument.c:178: internal error: no [ in suffix, string is __attribute__.
There are currently no tests that the backup code works correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.