* cutils 1.6 - C language miscellaneous utilities
@ 2001-07-16 3:21 Sandro Sigala
0 siblings, 0 replies; only message in thread
From: Sandro Sigala @ 2001-07-16 3:21 UTC (permalink / raw)
The utilities enclosed in the cutils package are usually useful in
some circumstances during the development in the "C" language.
cdecl
cundecl
The cdecl and cundecl utilities can be used to decode or
encode a complex type declaration like
void (*signal(int sig, void (*func)(int)))(int);
or
declare funcvec as array[16] of pointer to function that expects
(void) returning int;
cobfusc
The cobfusc utility can be used to obfuscate (i.e. render
unreadable but perfectly compilable) some code. For example:
int
main(int argc, char **argv)
{
int i;
printf("program name: %s\n", argv[0]);
printf("arguments:");
for (i = 1; i < argc; i++)
printf(" %s", argv[i]);
printf("\n");
}
can be converted to:
int main(int q0,char**q1){int q2;printf(
"\160\162\157\147\162\141\155\40\156\141\155\145\72\40\45\163\n",
q1[0]);printf("\141\162\147\165\155\145\156\164\163\72");for(q2=1;
q2<q0;q2++)printf("\40\45\163",q1[q2]);printf("\n");}
chilight
The chilight utility can be used to highlight (i.e. fontify) a C
source file with color escapes or markups, depending of the
selected output format (tty, ANSI, HTML or roff).
cunloop
The cunloop does a job like the cobfusc utility: it obfuscates
the source code, by unlooping the C language loop and branch
instructions `while', `do', `for', `if' into a sequence of `goto'
instuctions to render the source file unreadable. While cobfusc
works with every C source code, cunloop is
semantically-dependant.
yyextract
The yyextract utility can be used to extract the rules from a
Yacc grammar (or produce another grammar in a different format,
like HTML).
yyref
The yyref utility is a Yacc cross-reference generator.
------------------------------------------------------------------------------
Latest version can be found at my homepage:
http://www.sigala.it/sandro/
Any questions, comments, or bug reports should be sent to the author at the
Internet email address <sandro@sigala.it>.
----------------------------------------------------------------------
NEWS:
Changes between cutils 1.5.2 - cutils 1.6
* Cleaned up long-standing bugs and package distribution.
* chilight
- added roff and tty formats, better handling of #xxx preprocessor
directives and some minor changes.
Contributed by Jukka A. Ukkonen <jau@iki.fi>.
- added ANSI escape cleanup.
- cleaned up HTML output.
- added `-t' HTML title option.
- removed useless `-d' option.
- renamed `-s' "style" option to `-f' "format".
* cobfusc
- cleaned up.
- added `-A' heavy obfuscation option.
- added `-f' separate output option.
- added `-x' exclusive mode option.
- added `-z' identifiers pairs option.
- removed useless `-h' option.
- fixed bug with the `-e' option.
- inverted `-p' and `-r' options behavior.
* yyextract
- cleaned up HTML output.
- added `-t' HTML title option.
* Removed cinfo, cinfoc, cinfodc, cweave, ctangle components.
----------------------------------------------------------------------
LSM:
Begin4
Title: cutils
Version: 1.6
Entered-date: 15JUL01
Description: C language miscellaneous utilities
Keywords: C obfusc shrouder highlight bnf ebnf grammar lex yacc
Author: sandro@sigala.it (Sandro Sigala)
Maintained-by: sandro@sigala.it (Sandro Sigala)
Primary-site: sunsite.unc.edu /pub/Linux/devel/lang/c
130k cutils-1.6.tar.gz
Alternate-site: http://www.sigala.it/sandro/files/
130k cutils-1.6.tar.gz
Platforms: ANSI C compiler
Copying-policy: BSD
End
##########################################################################
# Send submissions for comp.os.linux.announce to: cola@stump.algebra.com #
# PLEASE remember a short description of the software and the LOCATION. #
# This group is archived at http://stump.algebra.com/~cola/ #
##########################################################################
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-16 3:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-16 3:21 cutils 1.6 - C language miscellaneous utilities Sandro Sigala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox