About
Docs
Files
Support
Index

Essentials
AutoDocs
Library functions
Cooperate
Process mastering
Debug
Own debugging kit
FGE
Smart modeid pick
Loader
Shared lib. loader
Macros
Helper macros
Structs
All the structures
Logs
Library changelogs
Tools
Progs baked inside

Tools
amiscreen0.3
ansifilter0.1
auto2guide0.1
ccfilter0.1
chipset0.1
cputype0.1
device640.1
dupfilter0.1
expandlogs0.1
findsm0.2
fmpp0.1
fsmount0.1
genanim0.3
gensymtab0.1
hashlab0.4
ktm0.6
linkpoint0.1
logo2ilbm0.1
lpradio0.1
lzwpack0.1
minism0.2
mkheader0.1
modeidctrl0.1
mss0.6
multisum0.3
newterm0.2
numconv0.1
palhack1.1
patmat0.1
pfr0.2
playamitape0.1
qdbflags0.1
qfill0.1
resmodinit0.2
sadctrl0.2
saveassign0.1
setanim0.2
systime0.1
tokendump0.1
uassign0.1
viewlogo0.1
waitback0.4
wrapmount0.1



C
C
F
I
L
T
E
R

ccfilter-0.1
-------------

---

This is 'ccfilter', a  proggy  that  can remove C, C++, AmigaShell and UNIX
style comments from text files.

---

NOTES:

[*]
Requires  68020(no FPU)+,  OS2.04(theoretically)+, 16+ kilo of free memory.

[*]
It  should be possible to use this program on streams too, so that constant
filtering can be provided.

[*]
Please note that the  C style comments removal alone  is way faster than in
conjunction  with other filters. This is because data is being delivered in
blocks rather than lines.

[*]
Of  course all filters can be specified  at a time, but this  may result in
hard to  predict data loss on the output, so  use with care! For  instance,
using UNIX style filter on #?.c files may remove preprocessor statements...

[*]
Maximum line size supported is  16 kilobytes. I do not think more is needed
as most text files dont even get close to 1024 bytes.

---

HELP:

   > ccfilter ?

     IF=INPUTFILE/A,OF=OUTPUTFILE/A,CC=CSTYLE/S,
     CP=CPPSTYLE/S,A=AMISTYLE/S,U=UNIXSTYLE/S



   IF=INPUTFILE/A   - Input file(with comments).

   OF=OUTPUTFILE/A  - Output file(without selected comments).

   CC=CSTYLE/S      - Filter  C  programming  language,  double  byte('/*')
                      comments. Turned on by default.

   CP=CPPSTYLE/S    - Filter  C++  programming language, double  byte('//')
                      comments. If requested then CC=CSTYLE  will be turned
                      off giving you the choice to inlcude it or not!

   A=AMISTYLE/S     - Filter  AmigaShell,  single   byte(';')  comments. If
                      requested then CC=CSTYLE will become inactive like in
                      the case above.

   U=UNIXSTYLE/S    - Filter UNIX style, single byte('#') comments. Same as
                      above CC=CSTYLE will be deactivated.

---

USAGE:

   ; Cleanup a file where you know that '//' comments are
   ; always used as a garbage holder
   ccfilter myproggy.c myproggy-clean.c cp

---
megacz
    





























No more fear cus pure HTML is here!
Copyright (C) 2013-2014 by Burnt Chip Dominators