【0001】[0001]
【産業上の利用分野】本発明は、ソースプログラム作成
装置に関し、特にプログラム流用を容易にしたソースプ
ログラム作成装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a source program creating device, and more particularly to a source program creating device that facilitates diversion of a program.
【0002】[0002]
【従来の技術】従来、第1のソースプログラムを流用し
た第2のソースプログラムが存在し第1のソースプログ
ラムの一部を修正し、第2のソースプログラムの対応箇
所に修正が必要な場合、同一の修正をそれぞれのソース
プログラムに対して行っていた。2. Description of the Related Art Conventionally, when there is a second source program that diverts the first source program and a part of the first source program needs to be modified and a corresponding portion of the second source program needs to be modified, The same modification was made to each source program.
【0003】[0003]
【発明が解決しようとする課題】上述した従来の修正方
法では、各プログラム毎に同一のパッチを作成する必要
があるため、全ての修正を行う必要があり、また、どの
プログラムのどの部分に対して流用を行ったかの管理に
時間がかかる等の問題がある。In the conventional correction method described above, it is necessary to make the same patch for each program, so it is necessary to make all corrections, and for which part of which program. There is a problem in that it takes time to manage whether or not it has been diverted.
【0004】[0004]
【課題を解決するための手段】第1の発明は、ソースプ
ログラム作成装置において、ソースプログラム対応に前
記ソースプログラムの番号、名称、更新年月日等の管理
情報と前記ソースプログラムと同一部分を有する他のソ
ースプログラムのソースプログラム番号と前記ソースプ
ログラムの前記同一部分のエリア情報から成る流用管理
部を備え、第一のソースプログラムの登録要求を受けて
前記第一のソースプログラムの前記流用管理部に前記管
理情報と前記第一のソースプログラムと同一部分を有す
る第二のソースプログラムのソースプログラム番号と前
記第一のソースプログラムの前記同一部分のエリア情報
を登録するとともに前記第二のソースプログラムの前記
流用管理部に前記管理情報と前記第一のソースプログラ
ムのソースプログラム番号と前記第二のソースプログラ
ムの前記同一部分のエリア情報を登録する流用登録部を
備えたことを特徴とする。According to a first aspect of the present invention, in a source program creating device, management information such as the number, name, and update date of the source program corresponding to the source program and the same portion as the source program are provided. A diversion management unit comprising a source program number of another source program and area information of the same portion of the source program is provided to the diversion management unit of the first source program in response to a registration request of the first source program. The management information and the source program number of the second source program having the same portion as the first source program and the area information of the same portion of the first source program are registered and the second source program is also stored. The diversion management unit stores the management information and the source program of the first source program. Characterized by comprising a diversion registration unit that registers beam number and the area information of the same portion of the second source program.
【0005】また、第2の発明は、前記第一のソースプ
ログラムの修正要求を受けて前記第一のソースプログラ
ムを修正するとともに前記修正内容を記憶しておき修正
エリアが前記第一のソースプログラムの前記流用管理部
における前記同一部分のエリア情報で示されるエリアに
含まれる場合に前記ソースプログラム番号で示される前
記第二のソースプログラムの前記流用管理部における前
記同一部分のエリア情報を参照し前記第二のソースプロ
グラムを前記記憶してある修正内容により修正するプロ
グラム解析修正手段を有することを特徴とする。According to a second aspect of the invention, the first source program is modified in response to a modification request for the first source program, and the modification contents are stored, and the modification area is the first source program. The area information of the same portion in the diversion management portion of the second source program indicated by the source program number when included in the area indicated by the area information of the same portion in the diversion management portion of It is characterized by further comprising program analysis correction means for correcting the second source program according to the stored correction contents.
【0006】[0006]
【実施例】次に本発明について図面を参照して説明す
る。The present invention will be described below with reference to the drawings.
【0007】図1は本発明の構成図である。FIG. 1 is a block diagram of the present invention.
【0008】処理部として、入力装置と出力装置および
各処理部の制御を行う制御部1と、各ソースプログラム
の登録と流用部分の登録等を行う流用登録部2と、ソー
スプログラムの入力と修正を行う修正部3と、ソースプ
ログラムの解析を行い各ソースプログラムの対応した修
正を行うプログラム解析部4とで構成される。As a processing unit, a control unit 1 for controlling an input device, an output device, and each processing unit, a diversion registration unit 2 for registering each source program and a diversion part, and inputting and modifying a source program. And a program analysis unit 4 that analyzes the source program and performs corresponding correction of each source program.
【0009】入力装置として、ソースの入力や修正を行
うキーボード6、外部からのソースプログラムの入力を
行うフロッピーディスク11、出力装置として、ディス
プレイ5と、プリンタ7、プログラム10及び流用管理
部9を保管するティスク8から構成される。A keyboard 6 for inputting and modifying a source as an input device, a floppy disk 11 for inputting a source program from the outside, a display 5 as an output device, a printer 7, a program 10, and a diversion management section 9 are stored. It consists of a disk 8.
【0010】流用管理部9の形式を図2に示す。本プロ
グラム作成装置(以下、本装置と記述する)はソースプ
ログラムを流用管理部9に登録する事により、処理を開
始する。The format of the diversion management unit 9 is shown in FIG. The program creating apparatus (hereinafter referred to as the present apparatus) starts the process by registering the source program in the diversion management unit 9.
【0011】流用管理部9は、各プログラムに対応する
プログラム番号12で各ソースプログラムの管理を行
う。プログラム名13は流用管理部9に登録するプログ
ラムを利用者が識別するために存在する。リビジョン1
4は、ソースプログラムの更新回数がセットされるエリ
アである。更新年月日15は、各ソースプログラムにお
いて、更新した日付けを格納するためのエリアである。
流用プログラム番号16は、ソースプログラムの流用を
行っている他のソースプログラムの番号であり、これに
より、本装置は流用しているソースプログラムを管理す
る。流用部先頭アドレス17はポインタであり、自ソー
スプログラム中で流用を行っている部分の先頭を示し、
流用部終了アドレス18は流用を行っている部分の最後
を示す。The diversion management unit 9 manages each source program with the program number 12 corresponding to each program. The program name 13 exists for the user to identify the program registered in the diversion management unit 9. Revision 1
Reference numeral 4 is an area in which the number of updates of the source program is set. The update date 15 is an area for storing the updated date in each source program.
The diversion program number 16 is the number of another source program that diverts the source program, and this apparatus manages the diversion source program. The diversion part head address 17 is a pointer, and indicates the head of the part diverted in the own source program,
The diversion part end address 18 indicates the end of the diversion part.
【0012】図5は本実施例の動作説明図である。FIG. 5 is a diagram for explaining the operation of this embodiment.
【0013】プログラムAと、プログラムBが存在し
(それぞれのプログラム番号をNO1とNO2とす
る)、プログラムAの共通部AをプログラムBの共通部
Bの部分に対し流用を行ったとき、プログラムAの流用
管理部は、流用プログラム番号16にプログラムBに共
通部が存在する事を示すプログラム番号(NO2)が入
る。流用部先頭アドレス17には、自プログラムの共通
部の先頭を示すポインタである流用部先頭Aが入る。流
用部終了アドレス18には、自プログラムの共通部の最
後を示すポインタであり流用部終了Aが入る。When the program A and the program B exist (the respective program numbers are NO1 and NO2) and the common part A of the program A is diverted to the common part B of the program B, the program A In the diversion management unit, the diversion program number 16 contains a program number (NO2) indicating that a common portion exists in the program B. The diversion section head address 17, which is a pointer indicating the head of the common section of the own program, is entered. In the diversion part end address 18, a diversion part end A, which is a pointer indicating the end of the common part of the own program, is entered.
【0014】また、プログラムBの流用管理部には、流
用を行ったプログラムであるプログラムAのプログラム
番号(NO1)を流用プログラム番号16により示す。
流用を行った部分(共通部B)の先頭ポインタを流用部
先頭Bに、最終のポインタを流用部終了Bにセットす
る。In the diversion management section of the program B, the diversion program number 16 indicates the program number (NO1) of the program A which is the diversion program.
The leading pointer of the portion (common portion B) that has been diverted is set to the leading portion B of the diverted portion, and the final pointer is set to the end portion B of the diverted portion.
【0015】図4は、プログラムAの登録を流用登録部
2が行う時の処理のフローチャートである。FIG. 4 is a flow chart of processing when the diversion registration unit 2 registers the program A.
【0016】利用者はプログラムAが入っているフロッ
ピーをフロッピーディスク11にセットし、キーボード
6よりプログラムAと入力する。(ステップ29) 流用登録部2は、プログラムAが登録されていないかを
流用管理部9をチェックすることにより判断を行う(ス
テップ30)。同一プログラム名があれば、プログラム
Aの更新と判断し、その流用管理部9を使用するために
ステップ32へとぶ。同一ソースプログラムがないと
き、プログラムAの新規登録と判断し、流用管理部9を
作成し、プログラム番号12としてNO1をセットし
(ステップ31)、フロッピーディスク11より、制御
部1を介してプログラムAをディスク8へ格納する。そ
の後、リビジョン14(XXXX)と更新年月日15
(YY/MM/DD)をキーボード6からの入力により
セットする(ステップ32)。次に、流用プログラムで
あるプログラムBのプログラム名の入力をキーボード6
から行う(ステップ33)。流用登録部2は、プログラ
ムBが存在するかを流用管理部9のサーチより行う(ス
テップ34)。プログラムBがあるとき、プログラムB
のプログラム番号(NO2)を流用プログラム番号16
にセットし(ステップ35)、キーボード6から行われ
た、共通部Aの先頭と、最後のポインタをそれぞれ、流
用部先頭Aと、流用部終了Aにセットする(ステップ3
6)。また、プログラムBの流用が行われた先頭と、最
後との入力をキーボード6から行い、プログラム番号N
O1と一緒にプログラムBの流用管理部に登録しておく
(ステップ37)、上記の流用プログラムの入力部分か
らを繰り返す事により(ステップ39)、全ての流用部
を登録する。The user sets the floppy disk containing the program A on the floppy disk 11 and inputs the program A from the keyboard 6. (Step 29) The diversion registration unit 2 determines whether or not the program A is registered by checking the diversion management unit 9 (step 30). If there is the same program name, it is determined that the program A is updated, and the process proceeds to step 32 in order to use the diversion management unit 9. If the same source program does not exist, it is determined that the program A is newly registered, the diversion management unit 9 is created, and NO1 is set as the program number 12 (step 31). Are stored in the disk 8. After that, revision 14 (XXXX) and update date 15
(YY / MM / DD) is set by the input from the keyboard 6 (step 32). Next, enter the program name of program B, which is a diversion program, using the keyboard 6
(Step 33). The diversion registration unit 2 searches the diversion management unit 9 for the existence of the program B (step 34). When there is program B, program B
Program number (NO2) of 16
(Step 35), the head and the last pointer of the common part A, which are made from the keyboard 6, are respectively set to the diversion part head A and the diversion part end A (step 3).
6). Further, the beginning and the end of the diversion of the program B are input from the keyboard 6 and the program number N
All the diversion parts are registered by registering together with O1 in the diversion management part of the program B (step 37) and repeating from the input part of the diversion program (step 39).
【0017】また、流用管理部のチェックでプログラム
Bがないとき、プログラムAに対するプログラムBの登
録を行わない。当処理により、全てのソースプログラム
の流用管理部9を作成する。また、プログラムAを削除
する場合も流用登録部2で処理を行う。この場合は、プ
ログラムAの流用管理部の削除のみではなく、プログラ
ムBの流用管理部の流用プログラム番号NO1も削除す
る様にする。If the diversion management section checks that there is no program B, the program B is not registered with respect to the program A. By this processing, the diversion management unit 9 for all the source programs is created. Further, when the program A is deleted, the diversion registration unit 2 also performs the processing. In this case, not only is the diversion management unit of program A deleted, but the diversion program number NO1 of the diversion management unit of program B is also deleted.
【0018】次に、プログラムAを修正した時の処理を
図3のフローチャートを使用して説明する。Next, the processing when the program A is modified will be described with reference to the flowchart of FIG.
【0019】このとき、ソースの修正を行う修正部3
と、流用管理部の解析を行い各流用プログラムの修正を
行うプログラム解析部4とが動作する。At this time, the correction unit 3 for correcting the source
And the program analysis unit 4 that analyzes the diversion management unit and corrects each diversion program.
【0020】まず、修正部3がプログラムAをディスク
8のプログラム10より識別するため、プログラム名の
入力をキーボード6より行い(ステップ19)、ディス
ク8のプログラム10から入力されたプログラムAを確
保する(ステップ20)。もしプログラムAがディスク
8のプログラム10に存在しないとき(ステップ2
1)、プログラム名の再入力を行う。プログラムAがあ
るとき、以下の様に処理を続ける。First, since the correction unit 3 identifies the program A from the program 10 of the disk 8, the program name is input from the keyboard 6 (step 19) to secure the program A input from the program 10 of the disk 8. (Step 20). If program A does not exist in program 10 of disk 8 (step 2
1) Re-enter the program name. When there is a program A, the processing is continued as follows.
【0021】修正部3はプログラムAの流用管理部のリ
ビジョン(XXXX)と、更新年月日(YY/MM/D
D)の更新を行う。また、利用者はプログラムAに対し
キーボード6を介して修正を行う(ステップ22)。The correction unit 3 includes the revision (XXXX) of the diversion management unit of the program A and the update date (YY / MM / D).
D) is updated. Further, the user corrects the program A through the keyboard 6 (step 22).
【0022】このとき、修正部3は、入力される修正デ
ータの内容をプログラムA中のどこにどのような修正が
入力されたのかを憶えておく。この憶えた修正を以下、
修正記憶と記述する。At this time, the correction section 3 remembers where in the program A and what kind of correction was input the contents of the input correction data. This memorized correction is
Described as modified memory.
【0023】修正が終了したとき、制御部1は修正部3
よりプログラム解析部4に制御を渡す。When the correction is completed, the control unit 1 causes the correction unit 3 to
The control is passed to the program analysis unit 4.
【0024】プログラム解析部4は、修正記憶がプログ
ラムAの流用管理部の流用部先頭Aから流用部終了Aま
での部分に入っているかを調べる(ステップ23)。も
し、前述の部分ではなかったとき、処理を終了(ステッ
プ28)し、前述の部分で有った時、プログラムBに共
通部がある事を知る事ができ、プログラムBの流用管理
部と、プログラムBをディスク8のプログラム10から
プログラム番号により確保する(ステップ24)。その
後、プログラムBの修正を行う(ステップ25)。プロ
グラムBの修正が終了した時点で、プログラム名と、修
正内容をプリントアウトすると同時にプログラムBの流
用管理部のリビジョン、更新年月日を更新する(ステッ
プ26)。その後、プログラムAの流用管理部のサーチ
を行い他にも流用を行っているプログラムがあるかを調
べる(ステップ27)。次のプログラムがあるとき、ス
テップ24の処理からを繰り返す。全ての共通部を持つ
プログラムの更新処理が終了したとき、処理を終了する
(ステップ28)。The program analysis unit 4 checks whether or not the correction memory is in the portion from the diversion section head A to the diversion section end A of the diversion management section of the program A (step 23). If it is not the above part, the process is ended (step 28), and if it is the above part, it is possible to know that there is a common part in the program B, and the diversion management part of the program B, The program B is secured from the program 10 of the disk 8 by the program number (step 24). Then, the program B is modified (step 25). When the correction of the program B is completed, the program name and the contents of the correction are printed out, and at the same time, the revision and update date of the diversion management unit of the program B are updated (step 26). After that, the diversion management section of the program A is searched to see if there is another program diversion (step 27). When there is the next program, the process from step 24 is repeated. When the updating process of the program having all the common parts is completed, the process is ended (step 28).
【0025】また、本装置は、オブジェクトに付いて
も、前述のソースプログラムの場合と同様に流用管理部
を使用して、管理することにより、オブジェクトに対し
て行われる、修正等について、容易に対応する事が可能
である。Further, the present apparatus manages the object by using the diversion management section as in the case of the above-mentioned source program, so that the object can be easily modified or modified. It is possible to respond.
【0026】[0026]
【発明の効果】本発明による、ソースプログラム作成装
置は、1つのソースプログラムに対して、修正を行った
とき、そのプログラムの流用を行った部分の修正であれ
ば、自動的に全ての流用を行っているソースプログラム
の修正を行う事ができる効果がある。According to the present invention, when a source program creating device corrects one source program, if the part of the program that has been diverted is modified, all the diversions are automatically made. There is an effect that the source program being performed can be modified.
【図1】本発明の構成図である。FIG. 1 is a configuration diagram of the present invention.
【図2】流用管理部の形式を示す図である。FIG. 2 is a diagram showing a format of a diversion management unit.
【図3】プログラム修正時の処理のフローチャートであ
る。FIG. 3 is a flowchart of a process when modifying a program.
【図4】プログラム登録時の処理のフローチャートであ
る。FIG. 4 is a flowchart of a process when registering a program.
【図5】本実施例における動作説明図である。FIG. 5 is an operation explanatory diagram in the present embodiment.
1 制御部 2 流用登録部 3 修正部 4 プログラム解析部 5 ディスプレイ 6 キーボード 7 プリンタ 8 ディスク 9 流用管理部 10 プログラム 11 フロッピーディスク 12 プログラム番号 13 プログラム名 14 リビジョン 15 更新年月日 16 流用プログラム番号 17 流用部先頭アドレス 18 流用部終了アドレス 1 control unit 2 diversion registration unit 3 correction unit 4 program analysis unit 5 display 6 keyboard 7 printer 8 disk 9 diversion management unit 10 program 11 floppy disk 12 program number 13 program name 14 revision 15 update date 16 diversion program number 17 diversion Part start address 18 Diverted part end address
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22546691AJPH0561666A (en) | 1991-09-05 | 1991-09-05 | Source program forming device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22546691AJPH0561666A (en) | 1991-09-05 | 1991-09-05 | Source program forming device |
| Publication Number | Publication Date |
|---|---|
| JPH0561666Atrue JPH0561666A (en) | 1993-03-12 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP22546691APendingJPH0561666A (en) | 1991-09-05 | 1991-09-05 | Source program forming device |
| Country | Link |
|---|---|
| JP (1) | JPH0561666A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5619700A (en)* | 1994-08-25 | 1997-04-08 | Fujitsu Limited | Method and device for managing programs |
| JP2010250367A (en)* | 2009-04-10 | 2010-11-04 | Nec System Technologies Ltd | Program correction work system, method and program thereof |
| JP2014179118A (en)* | 2014-05-07 | 2014-09-25 | Fuji Xerox Co Ltd | Information processing device and program |
| JP2018049397A (en)* | 2016-09-20 | 2018-03-29 | 株式会社東芝 | Design information management device and program |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5619700A (en)* | 1994-08-25 | 1997-04-08 | Fujitsu Limited | Method and device for managing programs |
| JP2010250367A (en)* | 2009-04-10 | 2010-11-04 | Nec System Technologies Ltd | Program correction work system, method and program thereof |
| JP2014179118A (en)* | 2014-05-07 | 2014-09-25 | Fuji Xerox Co Ltd | Information processing device and program |
| JP2018049397A (en)* | 2016-09-20 | 2018-03-29 | 株式会社東芝 | Design information management device and program |
| Publication | Publication Date | Title |
|---|---|---|
| JPH11134399A (en) | System for preparing description for patent application and method therefor and recording medium recorded with program for preparing description for patent application | |
| JPH0561666A (en) | Source program forming device | |
| JPH0728827A (en) | Drawing description generation device | |
| JP2002132516A (en) | Program execution system | |
| JPH04107652A (en) | Character processor | |
| JPH0567090A (en) | Word processing system | |
| JP2003091431A (en) | Test scenario selection execution system, method, and program | |
| JPH09262957A (en) | Makeup and device | |
| JPH05197533A (en) | Control method for data item | |
| JPH06266590A (en) | Parameter inputting device | |
| JPH05127890A (en) | Option data setting device | |
| JP3213455B2 (en) | Document processing device rearrangement method | |
| JPH10171877A (en) | How to change the name of the family register database | |
| JPH06332684A (en) | Program correction support device | |
| JP3716050B2 (en) | Data processing device | |
| JPH04316139A (en) | Syntax checking system of program syntax editor | |
| JPH07210579A (en) | Data input/output device | |
| JPH04299451A (en) | System and device for supporting document correction | |
| JPS6220040A (en) | File updating system | |
| JPS6149235A (en) | Control reuse system for software specificatins | |
| JPH05342201A (en) | Document processing system | |
| JPH0325622A (en) | Translation list output control device | |
| JPH0721285A (en) | Product processing system | |
| JPH0962494A (en) | Revision management device for development program | |
| JPH03134755A (en) | Message management executing device |