Skill Lint: Using global variables, form name
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Skill Lint: Using global variables, form name

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
Suresh Jeevanandam
Guest





Posted: Tue Nov 29, 2005 1:10 pm    Post subject: Skill Lint: Using global variables, form name Reply with quote

Hi,
The skill form is always stored as a global variable, But is there a
way to tell SKILL Lint that this particular variable is used to store a
skillForm?

Thanks in advance,

regards,
Suresh

Back to top
Bernd Fischer
Guest





Posted: Tue Nov 29, 2005 5:10 pm    Post subject: Re: Skill Lint: Using global variables, form name Reply with quote

As far as I'm aware of every form data structure has to
be stored in a global variable.

There are a two keyword arguments that I know to tell
sklint that specific globals are allowed:

?prefixes l_prefixList; you can define a list of prefixes for your globals
?globals l_globals; list of allowed globals


I believe the ?prefixes argument is equivalent to the 'Package Prefixes' in
the SKILL Lint form.

Bernd


Suresh Jeevanandam wrote:
Quote:
Hi,
The skill form is always stored as a global variable, But is there a
way to tell SKILL Lint that this particular variable is used to store a
skillForm?

Thanks in advance,

regards,
Suresh
Back to top
Andrew Beckett
Guest





Posted: Tue Nov 29, 2005 5:10 pm    Post subject: Re: Skill Lint: Using global variables, form name Reply with quote

On Tue, 29 Nov 2005 15:39:38 +0530, Suresh Jeevanandam
<sureshj@DELETETHISti.com> wrote:

Quote:
Hi,
The skill form is always stored as a global variable, But is there a
way to tell SKILL Lint that this particular variable is used to store a
skillForm?

Thanks in advance,

regards,
Suresh

Give the form global variable a sensible prefix - (I would use (say) "AB").
Then in the SKILL Lint form you can specify the prefixes you're using - and it
will tolerate correctly named global variables.

Regards,

Andrew.

Back to top
Svenn Are Bjerkem
Guest





Posted: Wed Nov 30, 2005 1:10 pm    Post subject: Re: Skill Lint: Using global variables, form name Reply with quote

In article <0omoo11gvoaghkp64144ufcv4ltm4n0gjg@4ax.com>,
andrewb@DcEaLdEeTnEcTe.HcIoSm says...
Quote:
Give the form global variable a sensible prefix - (I would use (say) "AB").


But code from you originates from Cadence and therefore you use "ab"?

--
Svenn
Back to top
Andrew Beckett
Guest





Posted: Wed Nov 30, 2005 5:10 pm    Post subject: Re: Skill Lint: Using global variables, form name Reply with quote

On Wed, 30 Nov 2005 12:06:02 +0100, Svenn Are Bjerkem <svenn.are@bjerkem.de>
wrote:

Quote:
In article <0omoo11gvoaghkp64144ufcv4ltm4n0gjg@4ax.com>,
andrewb@DcEaLdEeTnEcTe.HcIoSm says...
Give the form global variable a sensible prefix - (I would use (say) "AB").


But code from you originates from Cadence and therefore you use "ab"?

Svenn,

I'm a bit naughty, to be honest. I starting writing lots of code before we
introduced the convention that non-Cadence code should use a prefix which
begins with a capital letter. I tended to interpret this as "I'm Cadence so
I can get away with the prefix I always used, 'ab'" - but a stricter
interpretation of the guidelines would mean that I'd use "Ab" or "AB".

These days, if I'm writing a solution, I often convert my "ab" prefixed code to
use "CCS" instead (Cadence Customer Support) as in customer support we have
some guidelines about SKILL code in solutions.

Anyway, R&D should not use functions that begin with upper case, so that's
the reason why we recommend customers using a prefix starting with upper case.

There you are. Clear as mud ;-)

Andrew.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB