JPH02115931A - Program differential managing system - Google Patents

Program differential managing system

Info

Publication number
JPH02115931A
JPH02115931A JP26923088A JP26923088A JPH02115931A JP H02115931 A JPH02115931 A JP H02115931A JP 26923088 A JP26923088 A JP 26923088A JP 26923088 A JP26923088 A JP 26923088A JP H02115931 A JPH02115931 A JP H02115931A
Authority
JP
Japan
Prior art keywords
program
condition
difference
modified
program file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP26923088A
Other languages
Japanese (ja)
Inventor
Miyoko Tanaka
美代子 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP26923088A priority Critical patent/JPH02115931A/en
Publication of JPH02115931A publication Critical patent/JPH02115931A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To accurately manage plural programs having proper functions respectively by one program file by providing a segmentation means, a function addition and correction means, and a registration means. CONSTITUTION:First, a correction program 12 for condition B is segmented from the program file 11 by the segmentation means 2. Next, a correction program 13 in which a difference 17 related to the condition B is added on the correction program 12 is generated by the function addition and correction means 3. Furthermore, the correction program 13 is registered on the program file 11 by the registration means 4, and the program file 14 is generated. At this time, it follows that a segmenting condition 61 for condition B is automatically inserted to the neighborhood of the difference 17 and a difference 16 with segmenting condition exists in the program file 14. Consequently, it results that the program file 14 includes a common part and the difference with realizes a function proper to the program executed at the time of satisfying the conditions A and B.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム(コンピュータプログラム)差分管
理方式に関し、特に全てのプログラムに共通の機能と特
定の条件が満たされたときに実行される各プログラムに
固有の機能とを有する複数のプログラムを差分(各プロ
グラムに固有の機能(全てではない複数のプログラムに
共通の機能を含む)を実現する部分)を意識して管理す
るプログラム差分管理方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a program (computer program) difference management method, and in particular, to a method for managing differences between programs (computer programs), and in particular, functions common to all programs and programs executed when specific conditions are met. The present invention relates to a program difference management method for managing a plurality of programs having functions unique to each other with an awareness of differences (parts that realize functions unique to each program (including functions common to a plurality of programs but not all)).

〔従来の技術〕[Conventional technology]

従来、この種のプログラム差分管理方式の1つの方式で
は、第2図中の条件A用プログラム21゜条件B用プロ
グラム22.・・・2条件N(正整数)用プログラム2
N (条件A、B、・・・、Nを満たす場合に実行され
るプログラム。これらのプログラムは共通の機能を実現
する部分(共通部分)と差分31゜32、・・・3Nと
を有している)が管理される場合に、各プログラム(条
件A用プログラム21.条件B用プログラム22.・・
・9条件N用プログラム2Nのそれぞれ)が条件A、 
B、・・・、N毎に別々に管理されていた。
Conventionally, in one program difference management method of this type, program 21 for condition A, program 22 for condition B in FIG. ...Program 2 for 2 conditions N (positive integer)
N (A program that is executed when conditions A, B, ..., N are satisfied. These programs have a part that realizes a common function (common part) and differences 31°32, ...3N. ) is managed, each program (program for condition A 21, program for condition B 22...
・Each of 9 program 2N for condition N) is condition A,
B, . . . , N were managed separately.

また、この種のプログラム差分管理方式の他の方式では
、第2図中の条件A用プログラム21.条件B用プログ
ラム22.・・・1条件N用プログラム2N中のそれぞ
れの差分31.32.・・・、 3Nの前後に人手によ
って切出し条件(条件A、 B、・・・、Nを満たす場
合に対応する差分31.32.・・・、 3Nを含むプ
ログラムを切り出すことを指示する条件)が挿入(付加
)され、切出し条件付き差分41.42.・・・、 4
Nを有する複数機能を含むプログラムファイル20によ
り複数のプログラム(条件A用プログラム21゜条件B
用プログラム22.・・・1条件N用プログラム2N)
が管理されていた。
Further, in another method of this kind of program difference management method, program 21 for condition A in FIG. Program for condition B 22. ...Respective differences in program 2N for 1 condition N 31.32. ..., conditions for manually extracting before and after 3N (conditions that instruct to extract the program containing the differences 31, 32, ..., 3N corresponding to the case where conditions A, B, ..., N are satisfied) is inserted (added), and the difference 41.42. with the extraction condition is inserted. ..., 4
A program file 20 including multiple functions having N allows multiple programs (program 21 for condition A, condition B
Program for 22. ...Program 2N for 1 condition N)
was being managed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のプログラム差分管理方式の前者の方式で
は、各プログラムが条件毎に別々に管理されているので
、プログラムの容量の総計が増大し、全てのプログラム
に共通な機能に追加や修正が必要になった場合にプログ
ラムの個数回の処理を行わなければならないという欠点
がある。
In the former of the conventional program difference management methods described above, each program is managed separately for each condition, which increases the total program capacity and requires additions or modifications to functions common to all programs. The disadvantage is that the program must be processed several times when the problem occurs.

また、上述した従来のプログラム差分管理方式の後者の
方式では、人手によって差分の前後に切出し条件を挿入
しなけばならないので、条件が複雑になった場合等に誤
りが生じやすいという欠点がある。
Furthermore, in the latter method of the conventional program difference management methods described above, the cutting conditions must be manually inserted before and after the difference, so there is a drawback that errors are likely to occur when the conditions become complicated.

本発明の目的は、上述の点に鑑み、1つのプログラムフ
ァイルでそれぞれ固有の機能を有する複数のプログラム
を正確に管理することができるプログラム差分管理方式
を提供することにある。
In view of the above-mentioned points, an object of the present invention is to provide a program difference management method that allows a single program file to accurately manage a plurality of programs each having a unique function.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のプログラム差分管理方式は、プログラムファイ
ル内の特定のプログラムに関する切出し条件に基づいて
当該特定のプログラム用の修正プログラムの切出しを行
う切出し手段と、この切出し手段により切り出された修
正プログラムに対する機能の追加や修正を行う機能追加
修正手段と、この機能追加修正手段により機能の追加や
修正が行われた修正プログラム中の差分に切出し条件を
付加しその修正プログラムを前記プログラムファイルに
登録する登録手段とを有する。
The program difference management method of the present invention includes an extraction means that extracts a modified program for a specific program based on extraction conditions regarding a specific program in a program file, and a function for the modified program extracted by this extraction means. a function addition/modification means for adding or modifying a function; and a registration means for adding an extraction condition to a difference in a modified program in which functions have been added or modified by the function addition/modification means and registering the modified program in the program file. has.

〔作用〕[Effect]

本発明のプログラム差分管理方式では、切出し手段がプ
ログラムファイル内の特定のプログラムに関する切出し
条件に基づいて当該特定のプログラム用の修正プログラ
ムの切出しを行い、機能追加修正手段が切出し手段によ
り切り出された修正プログラムに対する機能の追加や修
正を行い、登録手段が機能追加修正手段により機能の追
加や修正が行われた修正プログラム中の差分に切出し条
件を付加しその修正プログラムをプログラムファイルに
登録する。
In the program difference management method of the present invention, the extraction means extracts a modification program for a specific program based on the extraction conditions regarding the specific program in the program file, and the function addition modification means makes the modifications extracted by the extraction means. Functions are added or modified to the program, and the registration means adds extraction conditions to the differences in the modified program in which functions have been added or modified by the function addition/modification means, and registers the modified program in the program file.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明のプログラム差分管理方式の一実施例
の構成を示すブロック図である。本実施例のプログラム
差分管理方式は、切出し手段2と、機能追加修正手段3
と、登録手段4と、プログラムファイル11および14
と、修正プログラム12および13とを含んで構成され
ている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the program difference management method of the present invention. The program difference management method of this embodiment includes an extraction means 2 and a function addition/modification means 3.
, registration means 4, and program files 11 and 14.
and modification programs 12 and 13.

プログラムファイル11は、切出し条件付き差分15を
含んで構成されている。
The program file 11 is configured to include a difference 15 with an extraction condition.

修正プログラム13は、差分く切出し条件が付加されて
いない差分)17を含んで構成されている。
The correction program 13 is configured to include a difference) 17 to which a difference extraction condition is not added.

プログラムファイル14は、切出し条件付き差分15と
、切出し条件付き差分16 (差分17に切出し条件6
1が付加された差分)とを含んで構成されている。
The program file 14 includes a difference 15 with an extraction condition and a difference 16 with an extraction condition (the difference 17 has an extraction condition 6).
(difference with 1 added).

切出し条件付き差分15は条件Aが満たされたときに切
出し条件付き差分15に係る差分を切り出すことを指示
する切出し条件51を有しており、切出し条件付き差分
16は条件Bが満たされたときに切出し条件付き差分1
6に係る差分を切り出すことを指示する切出し条件61
を有している(第1図中のrlF  条件=AJおよび
rENDJならびに「IF  条件=BJおよびrEN
DJは、各切出し条件51および61を簡略化して示し
たものである)。
The difference with a cutout condition 15 has a cutout condition 51 that instructs to cut out the difference related to the cutout conditional difference 15 when the condition A is satisfied, and the cutout conditional difference 16 has a cutout condition 51 that instructs to cut out the difference related to the cutout conditional difference 15 when the condition A is satisfied. Conditional difference 1
Extraction condition 61 instructing to extract the difference related to 6.
(rlF condition = AJ and rENDJ in Figure 1 and IF condition = BJ and rEN
DJ is a simplified representation of each cutting condition 51 and 61).

次に、このように構成された本実施例のプログラム差分
管理方式の動作について説明する。なお、ここでは共通
部分と条件Aに係る切出し条件付き差分15とからなる
プログラムファイル11に条件Bに係る切出し条件付き
差分16を追加する場合(条件Bが満たされたときにお
ける固有の機能を追加する場合)の動作について説明す
る。
Next, the operation of the program difference management system of this embodiment configured as described above will be explained. In addition, here, when adding a difference 16 with an extraction condition related to condition B to a program file 11 consisting of a common part and a difference 15 with an extraction condition related to condition A (adding a unique function when condition B is satisfied) This section explains the operation when

まず、切出し手段2により、プログラムファイル11か
ら条件B用の修正プログラム12(条件Bが満なされた
ときに実行されるプログラム用の修正プログラム)が切
り出される。この場合には、条件Bに係る差分が存在し
ないので、共通部分だけからなるプログラムが修正プロ
グラム12として得られる。
First, the cutting unit 2 cuts out the correction program 12 for condition B (the correction program for the program to be executed when condition B is satisfied) from the program file 11. In this case, since there is no difference related to condition B, a program consisting only of common parts is obtained as the modified program 12.

次に、機能追加修正手段3により、修正プログラム12
に条件Bに係る差分17が追加された修正プログラム1
3が生成される。なお、このときの差分17にはまだそ
の前後に切出し条件が挿入(付加)されていない。
Next, the function addition/modification means 3 executes the modification program 12.
Modified program 1 in which difference 17 related to condition B was added to
3 is generated. Note that no cutout conditions have been inserted (added) before or after the difference 17 at this time.

さらに、登録手段4により、修正プログラム13がプロ
グラムファイル11に登録されてプログラムファイル1
4が生成される(修正プログラム13上で追加や修正が
行われた部分(この場合には差分17)が反映されてプ
ログラムファイル11における追加や修正が行われる)
、このとき、差分17の前後に条件B用の切出し条件6
1が自動的に挿入されて切出し条件付き差分16がプロ
グラムファイル14内に存在することになる。したがっ
て、プログラムファイル14は、共通部分と条件Aおよ
びBが満たされたときに実行されるプログラムに固有な
機能を実現する差分(条件A用の切出し条件51が付加
された切出し条件付き差分15および条件B用の切出し
条件61が付加された切出し条件付き差分16)とを含
むことになる。
Further, the registration means 4 registers the modification program 13 in the program file 11 and registers the modification program 13 in the program file 11.
4 is generated (the part added or modified in the modified program 13 (in this case, the difference 17) is reflected and the additions or modifications are made in the program file 11)
, at this time, cutout condition 6 for condition B is placed before and after difference 17.
1 is automatically inserted, and the cut-out conditional difference 16 exists in the program file 14. Therefore, the program file 14 includes the common part and the differences (extract conditional differences 15 and This includes a difference 16) with a cutout condition to which the cutout condition 61 for condition B is added.

なお、以上の説明では機能の追加について述べたが、機
能の修正についても同様の手順で行うことができる。す
なわち、例えばプログラムファイル14における切出し
条件付き差分16の修正が行われる場合には、切出し手
段2により条件B用の修正プログラムが切り出され、機
能追加修正手段3によりその修正プログラム中の切出し
条件付き差分16に係る差分が修正された修正プログラ
ムが生成され、登録手段4によりその修正プログラムが
元のプログラムファイル14に登録されて新たなプログ
ラムファイルが生成される。
Note that although the above description has been about adding functions, the same procedure can be used to modify functions. That is, for example, when the difference 16 with the extraction condition in the program file 14 is modified, the extraction means 2 extracts the modification program for condition B, and the function addition modification means 3 extracts the difference with the extraction condition in the modification program. A modified program in which the differences related to 16 are modified is generated, and the registration means 4 registers the modified program in the original program file 14 to generate a new program file.

また、条件AおよびBに共通な機能の追加や修正は、切
出し手段2によりプログラムファイルの全てが修正プロ
グラムとして切り出され、機能追加修正手段3によりそ
の修正プログラムに対して所定の機能の追加や修正が行
われ、機能の追加や修正が行われた修正プログラムが登
録手段4により元のプログラムファイルに登録されるこ
とによって実行される。したがって、この場合の追加や
修正は1回だけの処理で完了することになる。
In addition, to add or modify functions common to conditions A and B, the extraction means 2 extracts all of the program files as a modified program, and the function addition/modification means 3 adds or modifies a predetermined function to the modified program. The modified program in which functions have been added or modified is registered in the original program file by the registration means 4 and executed. Therefore, additions and corrections in this case can be completed in just one process.

(発明の効果〕 以上説明したように本発明は、切出し手段、ja能追加
修正手段および登録手段を設けることにより、1つのプ
ログラムファイルでそれぞれ固有の機能を有する複数の
プログラムを正確に管理することができるという効果が
ある。
(Effects of the Invention) As explained above, the present invention enables accurate management of a plurality of programs each having a unique function in one program file by providing an extraction means, a function addition/modification means, and a registration means. It has the effect of being able to.

また、上述のように1つのプログラムファイルで複数の
プログラムを管理することにより、プログラムの容量の
総計を削減することができ、共通部分(共通の機能)の
追加や修正を1回の処理で行うことができるという効果
がある。
Additionally, by managing multiple programs with one program file as described above, the total program capacity can be reduced, and common parts (common functions) can be added or modified in one process. It has the effect of being able to

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の構成を示すプロンク図、 第2図は従来のプログラム差分管理方式を説明するため
の図である。 図において、 2・・・切出し手段、 3・・・機能追加修正手段、 4・・・登録手段、 11、14・プログラムファイル、 12、13・修正プログラム、 15、16・切出し条件付き差分、 17・・・差分、 51、61・切出し条件である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a diagram for explaining a conventional program difference management system. In the figure, 2... Extraction means, 3... Function addition/modification means, 4... Registration means, 11, 14. Program file, 12, 13. Modification program, 15, 16. Difference with extraction conditions, 17. ...Difference, 51, 61・Extraction conditions.

Claims (1)

【特許請求の範囲】 プログラムファイル内の特定のプログラムに関する切出
し条件に基づいて当該特定のプログラム用の修正プログ
ラムの切出しを行う切出し手段と、この切出し手段によ
り切り出された修正プログラムに対する機能の追加や修
正を行う機能追加修正手段と、 この機能追加修正手段により機能の追加や修正が行われ
た修正プログラム中の差分に切出し条件を付加しその修
正プログラムを前記プログラムファイルに登録する登録
手段と を有することを特徴とするプログラム差分管理方式。
[Scope of Claims] Extraction means for extracting a modified program for a specific program based on extraction conditions for a specific program in a program file, and adding or modifying functions to the modified program extracted by this extracting means. and a registration means that adds extraction conditions to the differences in the modified program in which functions have been added or modified by the function addition/modification means and registers the modified program in the program file. A program difference management method featuring:
JP26923088A 1988-10-25 1988-10-25 Program differential managing system Pending JPH02115931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26923088A JPH02115931A (en) 1988-10-25 1988-10-25 Program differential managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26923088A JPH02115931A (en) 1988-10-25 1988-10-25 Program differential managing system

Publications (1)

Publication Number Publication Date
JPH02115931A true JPH02115931A (en) 1990-04-27

Family

ID=17469474

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26923088A Pending JPH02115931A (en) 1988-10-25 1988-10-25 Program differential managing system

Country Status (1)

Country Link
JP (1) JPH02115931A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08152999A (en) * 1994-11-28 1996-06-11 Chugoku Nippon Denki Software Kk Program difference management system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08152999A (en) * 1994-11-28 1996-06-11 Chugoku Nippon Denki Software Kk Program difference management system

Similar Documents

Publication Publication Date Title
US11586582B2 (en) Data ingestion system
JPH02115931A (en) Program differential managing system
WO2015141723A1 (en) Source code generation and provision device, and source code generation and provision method
CN113001538B (en) Command analysis method and system
JPH03241439A (en) Test data preparation tool
JPH08190543A (en) Document processor
JPS5827242A (en) Controlling system between programs
JP2000057322A (en) Image processor provided with image processing editing history mechanism in computer
JP3057685B2 (en) Version control method
KR940015798A (en) How to Configure, Send, and Extract Normalized Command Information Messages Between User Registration Software and Application Software
JPH08152999A (en) Program difference management system
JPH0279121A (en) Source code management system
CN117955800A (en) Alarm reduction method and device, electronic equipment and medium
JPH03282746A (en) Master file updating system for distributed computers
CN114596949A (en) Method and tool for splitting and correcting hospital operation service data
JPH0293837A (en) File control system
JPH05265740A (en) Program editing method
JPH06250900A (en) Method foe reflecting journal
JPH01156822A (en) Control system for program update history information
JPH04245325A (en) File control system
JPH10260882A (en) Version management system
JPS6371730A (en) Rom writer communication control system
JPH04145527A (en) System for taking-out program text for parts
JPH05165615A (en) Patch revision management system for load module
JPH03136134A (en) Automatic patch data conversion