473,322 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Lint free program

Parul Bagadia
188 100+
What is the meaning of lint free program?
Apr 2 '08 #1
10 1911
SpecialKay
109 100+
Not sure, where did you hear that?
If i had to guess, i would say no magic numbers. But that is 100% guess
Apr 2 '08 #2
Parul Bagadia
188 100+
Not sure, where did you hear that?
If i had to guess, i would say no magic numbers. But that is 100% guess
What do you mean by magic number? M hearing the word for the first time.
Apr 2 '08 #3
Parul Bagadia
188 100+
I read this term in the book of data structures. Where certain syntax was written and given that if we use it it will make our program lint free..
I couldnt get its meaning in dictionary.
Apr 2 '08 #4
Laharl
849 Expert 512MB
http://en.wikipedia.org/wiki/Lint_programming_tool 'lint free' is likely something that has no issues when checked by lint.
Apr 2 '08 #5
SpecialKay
109 100+
i was wrong, nothing to do with magic numbers.

magic numbers are:

case 1:
Expand|Select|Wrap|Line Numbers
  1. for(int i = 0; i < 9; i++)
  2. {
  3.   print i;
  4. }
  5.  
In this case the number 9 is a magic number. it is proper to code this for loop:

case 2:
Expand|Select|Wrap|Line Numbers
  1. int MAX_LOOP = 9;
  2. for(int i=0; i < MAX_LOOP; i++)
  3. {
  4.  print i;
  5. }
  6.  
Apr 2 '08 #6
Laharl
849 Expert 512MB
Yep, Wikipedia has a pretty good explanation of that.
Apr 2 '08 #7
Parul Bagadia
188 100+
Yep, Wikipedia has a pretty good explanation of that.
Thanx. i read it. And i understood it a bit.
Apr 3 '08 #8
JosAH
11,448 Expert 8TB
Thanx. i read it. And i understood it a bit.
Lint is an (almost) obsolete pre-ANSI-C tool; it checks conformance of a C
program accoring to the old K&R standard. It used to be handy but compilers
can do that job now, (for gcc set the -Wall warning flag).

kind regards,

Jos
Apr 3 '08 #9
Banfa
9,065 Expert Mod 8TB
Lint is an (almost) obsolete pre-ANSI-C tool; it checks conformance of a C
program accoring to the old K&R standard. It used to be handy but compilers
can do that job now, (for gcc set the -Wall warning flag).
Strictly speaking you mean well written compilers can do that now. There are plenty of platforms with less well written compilers that can still benefit from using lint.

Also most lint programs can perform cross source checks that a compiler is normally unable to do, that is a compiler normally only considers a single C or CPP file when compiling but lint can consider a group of files. For instance lint can tell you if an function declared with external linkage is not used which most compilers can't.
Apr 3 '08 #10
JosAH
11,448 Expert 8TB
Strictly speaking you mean well written compilers can do that now. There are plenty of platforms with less well written compilers that can still benefit from using lint.

Also most lint programs can perform cross source checks that a compiler is normally unable to do, that is a compiler normally only considers a single C or CPP file when compiling but lint can consider a group of files. For instance lint can tell you if an function declared with external linkage is not used which most compilers can't.
Lint can't properly do that either: it has to be able to solve Turing's Halting Problem
to be able to determine whether or not a global function gets called.

kind regards,

Jos
Apr 3 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: leo | last post by:
Are there open source php form processing programs? I know there are free php form mail code, but if it's classified as open source, I would think any bugs can be fixed much faster. If not, then...
5
by: mydejamail | last post by:
Coming from an objectpascal background with strict type checking, I am being driven nuts by PHP. Stuff like using variables without declaring them, case sensitivity of variables, getting true,...
33
by: Greg Roberts | last post by:
We have a large code base, mainly C but with some C++ which we wish to check for existing issues in an effort to be proactive. I have downloaded the open source GLINT program but am having big...
4
by: Roman Mashak | last post by:
Hello, All! I often come across the following statements in different source code: #ifndef lint char copyright = "@(#) Copyright (C) 2005 bla-bla-bla\n"; #endif #ifndef lint
3
by: Ant | last post by:
Hi, I'm looking for a free program that can convert 1 asp.net application or asp.net class to a class diagram or graphic where I can see methods and attributes. Does anyone know where can I find...
7
by: Just Me | last post by:
Sometimes I hear the MODEM dialing and I don't know why. Is there some way I can use VB to tell which program is causing it? I'm on a LAN so it may be a remote program. Thanks
13
by: sreemathy2000 | last post by:
i have to make a lint free java script file. I'm almost done with all the changes. only one line is killing me. var newlnk = 'javascript:promptConfirmBox(\'' + ss + '\', ' + newWindow + ')'; ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.