LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2009, 05:45 AM   #1
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 299

Rep: Reputation: 32
Red face Finding diff between function prototypes


Hi,
I have recently upgraded libfreetype from 2.1.10 to 2.3.9 and I want to know if there is any function prototype change in this migration.

I have two folders fld1, fld2. The fld1 contains all the older header files whereas fld2 contains the newer header files.

At present I am doing manual diff between fldr1 and fldr2, to check the prototype changes, which is troublesome.
e.g.
diff fldr1/ftdriver.h fldr2/ftdriver.h
shows the changes in ftdriver.h during transition. (this includes changes in comments also, so need further manual checks to all functions)

Is there any easier way/tool to get the changes in prototypes if any ?




Thanks,
Barun Parichha

Last edited by barunparichha; 11-03-2009 at 05:47 AM.
 
Old 11-03-2009, 06:09 AM   #2
chwilk
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Rep: Reputation: 1
Diff and Meld

I tend to use side-by-side view in diff when I'm trying to find big differences between files. You can do a

Code:
diff -y --width 140 fldr1/file1 fldr2/file1
to get the effect on a 140 character wide terminal. It works just like a merge, with < | > characters showing lines only in the original, lines that have changed, but are noticeably the same line, or lines unique to the second version, respectively.

There was also a Linux Journal article about using a program called meld to do visual diffs. I've not used this, but it caught my eye yesterday.

(Apparently, I'm not allowed to post links because I've not posted here before and I may be a spam bot :-)

--
Chandler
 
Old 11-03-2009, 06:41 AM   #3
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 299

Original Poster
Rep: Reputation: 32
Hi,
But this means manually checking each of them.
So if we have hundreds of files to check, then it's not useful.

I am in search of some automated tool.

Thanks,
Barun Parichha
 
Old 11-03-2009, 03:38 PM   #4
chwilk
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Rep: Reputation: 1
Not to keep harping on diff, but you can also do a recursive directory comparison with -r, and exclude the types of files (source, not headers, makefiles) you don't want to see (--exclude-"*.c")

--
Chandler
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
getservbyport_r function gave diff results zybre_zero Programming 0 10-14-2005 03:35 AM
Finding Function always be not responding! Flamenco Mandriva 6 12-29-2004 04:34 AM
function prototypes in template class' (c++) qwijibow Programming 4 12-13-2004 09:34 AM
Finding function name from address itsme86 Programming 3 07-16-2004 02:16 AM
Question about function prototypes xailer Programming 4 12-15-2003 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration