Searching \ for '[PIC]: PC-Lint anyone?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/microchip/devices.htm?key=pic
Search entire site for: 'PC-Lint anyone?'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: PC-Lint anyone?'
2000\12\21@132438 by DERRICK, Keith

flavicon
face
part 1 384 bytes content-type:text/plain;Has anyone successfully configured PC-lint to swallow PICC source files?
Specifcally, I'm having trouble getting it to parse the system header files
where the SFRs etc are defined.

Lines like this:

static unsigned char bank1 OPTION  @ 0x81;

Seem to be the hardest to beat.

If anyone's had success here, I'd greatly appreciae a copy of their .lnt
file.

Thanks in advance
Keith




part 2 429 bytes content-type:application/octet-stream; (decode)

part 3 136 bytes
--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body


2000\12\22@060235 by Peter L. Peres

picon face
;-) I don't think that there is a lint that knows about embedded C
extensions (yet). You need to write a script that filters the offending
statements into non-offending statements, for linting. In particular, a
regexp like:

/@ *[0-9A-Za-z_]+;/

in the non-string context will select the lines and you get to rewrite it
to drop the part between the '@' and the ';'. This can be done in AWK or
in C. There is an AWK-like tool for DOS, it is called BAWK, and it is PD I
think. Look on SIMTEL or in a search engine. The body of the rule should
manipulate $x and print it. This is not very hard to do. Avoiding string
contexts is, but you can leave that out if you do not have '@' 's in any
constant strings at all.

Peter

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu


2000\12\22@141136 by Russell McMahon

picon face
>;-) I don't think that there is a lint that knows about embedded C
>extensions (yet). You need to write a script that filters the offending
>statements into non-offending statements, for linting. In particular, a
>regexp like:
>
>/@ *[0-9A-Za-z_]+;/
>
>in the non-string context will select the lines and you get to rewrite it
>to drop the part between the '@' and the ';'. This can be done in AWK or
>in C. There is an AWK-like tool for DOS, it is called BAWK,

Is it (mock) Swedish perhaps?




Russell

--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestspamKILLspammitvma.mit.edu


2000\12\23@063227 by Peter L. Peres

picon face
>>in C. There is an AWK-like tool for DOS, it is called BAWK,
>
>Is it (mock) Swedish perhaps?

No, the author was trying to be funny (as in Better AWK in DOS - better
than the one in Unix ;-).

Anyway it works, and it comes with source, and it will run in Windows and
whatnot since it is ANSI C. But no long filenames. Free.

Peter

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...