IDENTIFYING DIFFERENCES BETWEEN SOURCE CODES OF DIFFERENT VERSIONS OF A SOFTWARE WHEN EACH SOURCE CODE IS ORGANIZED USING INCORPORATED FILES
First Claim
1. A method of identifying differences between source codes when each source code is organized using incorporated files, said method comprising:
- receiving identifiers of a first source code and a second source code, said first source code being organized as a first plurality of code files and said second source code being organized as a second plurality of code files;
constructing a first listing of instructions for said first source code and a second listing of instructions for said second source code,wherein said constructing said first listing comprises including, for each incorporate statement in said first plurality of code files, the instructions stored in a corresponding one of said first plurality of code files as specified by the corresponding incorporate statement,wherein said constructing said second listing comprises including, for each incorporate statement in said second plurality of code files, the instructions stored in a corresponding one of said second plurality of code files as specified by the corresponding incorporate statement; and
finding the differences between said first source code and said second source code by comparing said first listing of instructions and said second listing of instructions.
1 Assignment
0 Petitions
Accused Products
Abstract
An aspect of the present invention identifies differences between source codes (e.g. of different versions of a software), when each source code is organized using incorporated files. In one embodiment, in response to receiving identifiers of a first and second source codes (each source code being organized as a corresponding set of code files), listings of the instructions in the first and second source codes are constructed. Each listing is constructed, for example, by replacing each incorporate statement in the source code with instructions stored in a corresponding one of code files. The differences between the first and second source codes are then found by comparing the constructed listings of instructions.
-
Citations
20 Claims
-
1. A method of identifying differences between source codes when each source code is organized using incorporated files, said method comprising:
-
receiving identifiers of a first source code and a second source code, said first source code being organized as a first plurality of code files and said second source code being organized as a second plurality of code files; constructing a first listing of instructions for said first source code and a second listing of instructions for said second source code, wherein said constructing said first listing comprises including, for each incorporate statement in said first plurality of code files, the instructions stored in a corresponding one of said first plurality of code files as specified by the corresponding incorporate statement, wherein said constructing said second listing comprises including, for each incorporate statement in said second plurality of code files, the instructions stored in a corresponding one of said second plurality of code files as specified by the corresponding incorporate statement; and finding the differences between said first source code and said second source code by comparing said first listing of instructions and said second listing of instructions. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A non-transitory machine readable medium storing one or more sequences of instructions for causing a system to identify differences between source codes when each source code is organized using incorporated files, wherein execution of said one or more instructions by one or more processors contained in said system causes said system to perform the actions of:
-
receiving identifiers of a first source code and a second source code, said first source code being organized as a first plurality of code files and said second source code being organized as a second plurality of code files; constructing a first listing of instructions for said first source code and a second listing of instructions for said second source code, wherein said constructing said first listing comprises including, for each incorporate statement in said first plurality of code files, the instructions stored in a corresponding one of said first plurality of code files as specified by the corresponding incorporate statement, wherein said constructing said second listing comprises including, for each incorporate statement in said second plurality of code files, the instructions stored in a corresponding one of said second plurality of code files as specified by the corresponding incorporate statement; and finding the differences between said first source code and said second source code by comparing said first listing of instructions and said second listing of instructions. - View Dependent Claims (13, 14, 15, 16, 17)
-
-
18. A digital processing system comprising:
-
a processor; a random access memory (RAM); a machine readable medium to store one or more instructions, which when retrieved into said RAM and executed by said processor causes said digital processing system to identify differences between source codes when each source code is organized using incorporated files, said digital processing system performing the actions of; receiving identifiers of a first source code and a second source code, said first source code being organized as a first plurality of code files and said second source code being organized as a second plurality of code files; constructing a first listing of instructions for said first source code and a second listing of instructions for said second source code, wherein said constructing said first listing comprises including, for each incorporate statement in said first plurality of code files, the instructions stored in a corresponding one of said first plurality of code files as specified by the corresponding incorporate statement, wherein said constructing said second listing comprises including, for each incorporate statement in said second plurality of code files, the instructions stored in a corresponding one of said second plurality of code files as specified by the corresponding incorporate statement; and finding the differences between said first source code and said second source code by comparing said first listing of instructions and said second listing of instructions. - View Dependent Claims (19, 20)
-
Specification