Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303
Rep:
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.
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 :-)
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")
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.