The "DIFF" Utility

This utility will find the differences between two text files or between all files of two different directories.

You can reach this dialog box by using the ‘Diff’ option from the ‘Utils’ menu

Alt+u, then d.

 

The entry fields should contain the names of the files to compare. The options are self-explanatory. Only the 'C' syntax option needs further explanation. This option will preprocess both files, ignoring comments and all white space, and report any differences in the program text. The result will be organized by function changed. This allows you to quickly determine which functions were changed between two files.

If both names are directory names, DIFF will search all files that match the specifications in both directories and present a summary of this form:

If you want to use the ‘merge’ utility, you should check the corresponding check box, and fill in the name of the output file, since the merge will create one.

If you press 'Detail' button, DIFF will compare each of the common files in both directories.

The 'Ignore' button allows you to exclude from the list of common files the selected file.

The differences between two files are presented this way:

You reach this dialog box when you make a DIFF between two directories or several files at once.

 

You can go to the next/previous difference using the push buttons at the bottom of the display.

This dialog box is not modal and can be left open during the modifications that you make to a file.

If the option 'C syntax' is selected, Wedit will show the differences in this dialog box:

 

 

At the upper left, there is a list of all modified functions; at the lower left, a list of all global modifications, i.e., all modifications that are not within a local scope. By selecting a line from one of these list boxes, you will see the difference shown in the two multi-line entry fields at the right.