home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
pub
/
lpf
/
patent.4916610
< prev
next >
Wrap
Text File
|
1992-11-03
|
6KB
|
134 lines
US Patent #
4,916,610
10 April 1990
"Multilanguage software integration through preprocessing"
ASSIGNEE: Racal Data Communications Inc., Sunrise, Florida
ABSTRACT:
A method of assuring consistency of constants in a multilanguage
software system, includes generating a first set of code written in a
first language using a plurality of symbolic constants to represent a
corresponding plurality of actual constants. A second set of code is
written in a second language using the plurality of symbolic
constants to represent the corresponding plurality of actual
constants. A common header file is generated which contains
information which relates the plurality of symbolic constants to the
corresponding plurality of actual constants. The header is included
within the first and second sets of code. The symbolic constants in
the first and second sets of code are replaced with their
corresponding actual constants during a preprocessing step. Any
constructs which are not a part of the first language are stripped
from the second set of code including the header file. Any constructs
which are not a part of the second language are stripped from the
first set of code including the header. The resulting files have
their symbolic constants consistently replaced by constants which are
defined in the header so that changes need only be made in the header
file to assure consistency in the several languages.
CLAIMS:
1. A method of assuring consistency of constants in a
multilanguage software system, comprising the steps performed by a
computer of:
providing a first set of code written in a first language using a
plurality of symbolic constants to represent a corresponding
plurality of actual constants;
providing a second set of code written in a second language using
said plurality of symbolic constants to represent said corresponding
plurality of actual constants;
providing a header which contains information which relates said
plurality of symbolic constants to said corresponding plurality of
actual constants;
including said header within said first and second sets of code;
preprocessing said first and second sets of cody by:
replacing said symbolic constants in said first and second sets of
code with their corresponding actual constants; and
stripping any constructs which are not a part of said first
language from said second set of code including said header.
2. The method of claim 1, further comprising the step of stripping
any constructs which are not a part of said second language from said
first set of code including said header.
3. The method of claim 1, further comprising the step of compiling
or interpreting said first code with a compiler or interpreter
specific to said first language.
4. The method of claim 1, further comprising the step of compiling
or interpreting said second code with a compiler or interpreter
specific to said second language.
5. The method of claim 1, wherein said including step comprises:
including said header within said first and second sets of code by
referencing said header in a statement; and
substituting said header for said statement.
6. The method of claim 2, further comprising the step of compiling
said first code with a compiler specific to said first language and
interpreting said second code with an interpreter specific to said
second language.
7. The method of claim 6, wherein said first language is C
programming language and wherein said second language is Structured
Queiry Language (SQL).
8. The method of claim 6, wherein said header is written in C
programming language.
9. The method of claim 1, wherein said replacing step is carried
out by use of a C language preprocessor.
10. The method of claim 1 further comprising the steps of
providing symbolic macros within said header and expanding said
symbolic macros into language 1 specific statements in code 1 and
language 2 specific statements in code 2.
11. A method of assuring consistency of constants in a
multilanguage software system, comprising the steps performed by a
computer of:
providing a first set of code written in a first language using a
plurality of symbolic constants to represent a corresponding
plurality of actual constants;
providing a second set of code written in a second language using
said plurality of symbolic constants to represent said corresponding
plurality of actual constants;
providing a header which contains information which relates said
plurality of symbolic constants to said corresponding plurality of
actual constants;
including said header within said first and second sets of code by
referencing said header in a statement;
substituting said header for said statement;
preprocessing said first and second sets of code by:
replacing said symbolic constants in said first and second sets of
code with their corresponding actual constants;
stripping any constructs which are not a part of said first
language from said second set of code including said header;
stripping any constructs which are not a part of said second
language from said first set of code including said header;
compiling or interpreting said first code with compiler or
interpreter specific to said first language; and,
compiling or interpreting said second code with a compiler or
interpreter specific to said second language.