JPH01112425A - Program source filing maintaining system at time of editing by editor - Google Patents

Program source filing maintaining system at time of editing by editor

Info

Publication number
JPH01112425A
JPH01112425A JP62271550A JP27155087A JPH01112425A JP H01112425 A JPH01112425 A JP H01112425A JP 62271550 A JP62271550 A JP 62271550A JP 27155087 A JP27155087 A JP 27155087A JP H01112425 A JPH01112425 A JP H01112425A
Authority
JP
Japan
Prior art keywords
program source
file
date
source file
editor
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
JP62271550A
Other languages
Japanese (ja)
Inventor
Susumu Umatani
馬谷 晋
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 JP62271550A priority Critical patent/JPH01112425A/en
Publication of JPH01112425A publication Critical patent/JPH01112425A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To prevent the invalidity of an editing processing by comparing a final updating date at the time of the input and the date of the output at the time of editing a program source file. CONSTITUTION:In an input program source file date securing processing, an editor 4 obtains the final updating date of a program source file 6 from a date storing area 7 through an operating system 5 having a filing control means to hold the final updating date. In an output program source filing date securing processing, a user executes the program source writing request to the editor 4 and obtains the final updating date of the program source film 6 through the operating system 5. A pair of the obtained dates is compared, and both are coincident, and then, a file writing processing is processed.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、エディタ編集時のプログラムソースファイル
保全方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a program source file preservation method when editing with an editor.

(従来の技術) 従来、プログラムソースファイルをエディタで編集、更
新する場合、プログラムソースファイルを読込本、それ
を編集して更新した後、同一のプログラムソースファイ
ルに書込むものが公知である。
(Prior Art) Conventionally, when editing and updating a program source file with an editor, it is known to read the program source file, edit and update it, and then write it into the same program source file.

上記のようなエディタ編集時のプログラムソースファイ
ル管理において、従来、例えば第3図に示すような方式
が公知である。
In managing program source files during editor editing as described above, a method as shown in FIG. 3, for example, is conventionally known.

すなわち、エディタの起動後、プログラムソースファイ
ルを編集、更新するため、プログラムソースファイルの
読込み要求が送出されるとプログラムソースファイルを
一旦、入力プログラムソースフアイル読込み処理F1に
よりエディタ作業用領域に読込む。その後、ファイルの
編集、更新をする編集処理F2を実行する。その後、フ
ァイル書込み要求が送出されると、出力プログラムソー
スファイル書込み処理F3により、もとのプログラムソ
ースファイルに直接、書込む。
That is, after starting the editor, in order to edit and update the program source file, when a request to read the program source file is sent, the program source file is once read into the editor work area by the input program source file reading process F1. Thereafter, an editing process F2 for editing and updating the file is executed. Thereafter, when a file write request is sent, the output program source file write process F3 directly writes to the original program source file.

(発明が解決しようとする問題点) 上述した従来のエディタ編集時のプログラムソースファ
イル管理では、ファイルの書込み要求が送出されると無
条件にもとのプログラムソー、スフアイルにデータが直
接書込まれるため、例えば、ある利用者が長時間にわた
りプログラムソースファイルを編集、更新している間に
他の利用者が短時間に入力プログラムソースファイルの
読込み処理から編集処理を経て出力プログラムソースフ
ァイル書込み処理に移シ、その後、前者の利用者が出力
プログラムソース書込み処理を行った場合、後者の編集
処理は無効となってしまうという欠点がある。
(Problem to be Solved by the Invention) In the conventional program source file management during editor editing described above, when a file write request is sent, data is unconditionally written directly to the original program source file. Therefore, for example, while one user is editing or updating a program source file for a long time, another user can quickly start reading the input program source file, editing it, and then writing the output program source file. There is a drawback that if the former user performs an output program source writing process after the transfer, the latter editing process becomes invalid.

本発明の目的は、プログラムソースファイル編集時に、
プログラムソースファイル入力時のプログラムソースフ
ァイルの最終更新日付けと、プログラムソースファイル
出力の日付けとを比較することによシ上記欠点を除去し
、同一プログラムソースファイルを多数の利用者−で編
集するとき、編集処理が無効とならないように構成した
エディタ編集時のプログラムソースファイル保全方式を
提供することにある。
An object of the present invention is to
By comparing the last update date of the program source file when inputting the program source file with the date of output of the program source file, the above drawbacks can be eliminated, and the same program source file can be edited by multiple users. An object of the present invention is to provide a program source file preservation method when editing with an editor, which is configured so that editing processing is not invalidated.

(問題点を解決するための手段) 本発明によるエディタ編集時のプログラムソースファイ
ル保全方式はオペレーティングシステムをエディタとと
もに格納するための主記憶装置と、入力プログラムソー
スファイルを保全するための中央処理装置とを具備して
構成したものである。
(Means for Solving the Problems) The method for preserving program source files when editing with an editor according to the present invention includes a main storage device for storing an operating system together with an editor, and a central processing unit for preserving input program source files. It is configured with the following.

主記憶装置はオペレーティングシステムをエディタとと
もに格納するためのものであって・上記オペレーティン
グシステムはプログラムソースファイルごとに最終更新
日付けを保守しているファイル管理手段を備え、入力プ
ログラムソースファイルをエディタ内の作業用ファイル
へ読込み、作業用ファイルの内容を編集して更新した後
、更新した内容を第1の日付けとともにファイルに書込
むための本のである。
The main storage device is for storing the operating system together with the editor. The operating system has a file management means that maintains the last update date for each program source file, and input program source files are stored in the editor. This is a book for reading into a work file, editing and updating the contents of the work file, and then writing the updated contents to the file along with the first date.

一方、中央処理装置は入力プログラムソースファイルを
保全するものであって、入力プログラムソースファイル
を作業用ファイルへ読込んだ後、入力プログラムの最終
更新時に第2の日付けを取得して編集しておき、ファイ
ル書込み要求があったならば第1および第2の日付けを
比較し、両者に一致が得られた場合にはファイルに書込
み、−致が得られなかった場合には警告メツセージを出
力することができるように構成したものである。
On the other hand, the central processing unit maintains the input program source file, and after reading the input program source file into a work file, acquires and edits the second date when the input program is last updated. If there is a file write request, compare the first and second dates, write to the file if they match, and output a warning message if they do not match. It is configured so that it can be done.

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

第1図は、本発明によるエディタ編集時のプログラムソ
ースファイルを適用した情報処理装置の一実施例を示す
ブロック図である。第1図において、1は中央処理装置
、2は主記憶装置、3はディスク形ファイルである。主
記憶装置2にはエディタ4と、肴終更新日付けを保持す
るファイル管理手段を有するオペレーティングシステム
5が設けられている。ファイル3には、プログラムソー
スファイル6と日付は格納領域7とが設けられている。
FIG. 1 is a block diagram showing an embodiment of an information processing apparatus to which a program source file for editor editing according to the present invention is applied. In FIG. 1, 1 is a central processing unit, 2 is a main memory, and 3 is a disk-shaped file. The main storage device 2 is provided with an editor 4 and an operating system 5 having a file management means for retaining the last updated date of the dish. The file 3 is provided with a program source file 6 and a date storage area 7.

第2図は、エディタ4による処理のうち、プログラムソ
ースファイル保全の−例を示す流れ図である。第2図に
おいて、処理は入力プログラムソースファイル読込み処
理(81)、入力プログラムソースファイル日付は確保
処理(S2)、編集処理(S3)、出力プログラムソー
スファイル日付は確保処理(S4)、日付は比較処理(
S5)、ファイル書込み処理(S6)、ならびに警告メ
ツセージ出力処理(S7)の順で実行される。各処理の
内容は次の通りである。
FIG. 2 is a flowchart showing an example of program source file preservation among the processes performed by the editor 4. In Fig. 2, the processing includes input program source file reading processing (81), input program source file date securing processing (S2), editing processing (S3), output program source file date securing processing (S4), and date comparison processing. process(
S5), file writing processing (S6), and warning message output processing (S7) are executed in this order. The details of each process are as follows.

入力プログラムノースファイル読込み処理(Sl)にお
いては、エディタの起動後、編集、更新したいプログラ
ムソースファイルに対応して入力要求をエディタに送出
する。エディタはオペレーティングシステム6を介して
ディスク形ファイル3の中のプログラムソースファイル
6を読込む。
In the input program north file reading process (Sl), after starting the editor, an input request is sent to the editor in correspondence with the program source file to be edited or updated. The editor reads the program source file 6 in the disk-shaped file 3 via the operating system 6.

入力プログラムソースファイル日付は確保処理(S2)
において、エディタでは最終更新日付けを保持するファ
イル管理手段を有するオペレーティングシステムを介し
て、プログラムソースファイル6の最終更新日付けを日
付は格納領域7から得る。
Input program source file date is secured (S2)
In the editor, the last update date of the program source file 6 is obtained from the storage area 7 via an operating system having a file management means that holds the last update date.

編集処理(S3)においては、入力されたプログラムソ
ースファイルの変更、削除、おるいは追加などの編集処
理を行う。
In the editing process (S3), editing processes such as changing, deleting, or adding the input program source file are performed.

出力プログラムソースファイル日付は確保処理(S4)
においては、利用者はエディタにプログラムソースファ
イル書込み要求を送出する。このとき、エディタは最終
更新日付けを保持するファイル管理手段を有するオペレ
ーティングシステム5を介して、プログラムソースファ
イル6の最終更新日付けを日付は格納領域7から取得す
る。
The output program source file date is secured (S4)
In , the user sends a program source file write request to the editor. At this time, the editor obtains the last update date of the program source file 6 from the date storage area 7 via the operating system 5 having a file management means that holds the last update date.

日付は比較処理(S5)においては、入力プログラムソ
ー、ヌファイル日付は確保処理(S2)と、出力プログ
ラムソースファイル日付は確保処理(84)とKよって
取得され次一対の日付けを比較する。両者が不一致の場
合には、編集処理(S3)において他の利用者から当該
プログラムソースファイル6に対して編集処理が行われ
た本のと見なし、警告メツセージ処理(S7)へ進む。
In the comparison process (S5), the date is acquired by the input program source file date and the securing process (S2), and the output program source file date is acquired by the securing process (84), and the next pair of dates are compared. If the two do not match, it is assumed that the program source file 6 has been edited by another user in the editing process (S3), and the process proceeds to a warning message process (S7).

一方、両者が一致した場合には、他利用者により当該プ
ログラムソースファイルが修正されていないことを意味
する。このときには、ファイル書込み処理(S6)へ進
む。
On the other hand, if the two match, it means that the program source file has not been modified by another user. At this time, the process advances to file writing processing (S6).

ファイル書込み処理(S6)においては、最終更新日付
けを保持するファイル管理手段を有するオペレーティン
グシステム5を介して、プログラムソースファイル6へ
編集後のファイルが書込まれる。このとき、書込まれ九
日付けが日付は格納領域Tに最終更新日付けとして保゛
持される。
In the file writing process (S6), the edited file is written to the program source file 6 via the operating system 5, which has a file management means that retains the last updated date. At this time, the date written on the 9th day is held in the storage area T as the last updated date.

警告メツセージ処理(S7)においては、他の利用者が
編集処理(S3)の期間にプログラムソースファイル6
を修正しているため、その中のメツセージを出力してか
らプログラムソースファイル6ヘフアイルが書込まれる
In the warning message processing (S7), another user may delete the program source file 6 during the editing processing (S3).
Since the program has been modified, the program source file 6 is written after outputting the message therein.

(発明の効果) 以上説明したように本発明は、プログラムソースファイ
ル編集時に、プログラムソースファイル入力時のプログ
ラムソースファイルの最終更新日付ケト、プログラムソ
ースファイル出力の日付けとを比較することによ沙、編
集中に他の利用者が同一フログラムソースファイルを編
集更新処理をしても、これが無効にならないという効果
がある0
(Effects of the Invention) As explained above, the present invention is advantageous in that when editing a program source file, the last updated date of the program source file at the time of inputting the program source file is compared with the date of outputting the program source file. , This has the effect that even if another user edits and updates the same program source file during editing, it will not become invalid.

【図面の簡単な説明】 第1図は、本発明によるエディタ編集時のプログラムソ
ースファイル保全方式の一実施例を示すブロック図であ
る。 第2図は、第1図に示す実施例の処理を示す流れ図であ
る。 第3図は、従来技術による処理を示す流れ図である。 1・・・中央処理装置 2・・・主記憶装置 3・・会ファイル 4・・・エディタ 5・・・オペレーティングシステム 6・・・プログラムソースファイル T・・・日付は格納領域 特許出願人  日本電気株式会社 代理人 弁理士  井 ノ ロ   壽21図 23図
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of a program source file preservation method when editing with an editor according to the present invention. FIG. 2 is a flowchart showing the processing of the embodiment shown in FIG. FIG. 3 is a flowchart showing processing according to the prior art. 1...Central processing unit 2...Main storage device 3...Member file 4...Editor 5...Operating system 6...Program source file T...Date is storage area Patent applicant NEC Corporation Agent Co., Ltd. Patent Attorney Hisashi Inoro 21Figure 23

Claims (1)

【特許請求の範囲】[Claims] プログラムソースファイルごとに最終更新日付けを保守
しているファイル管理手段を備え、入力プログラムソー
スフアイルをエディタ内の作業用フアイルへ読込み、前
記作業用ファイルの内容を編集して更新した後、前記更
新した内容を第1の日付けとともにファイルに書込むオ
ペレーティングシステムを前記エディタとともに格納す
るための主記憶装置と、前記入力プログラムソースファ
イルを前記作業用フアイルへ読込んだ後、入力プログラ
ムの最終更新時に第2の日付けを取得して編集しておき
、ファイル書込み要求があつたならば前記第1および第
2の日付けを比較し、両者に一致が得られた場合には前
記ファイルに書込み、前記一致が得られなかつた場合に
は警告メッセージを出力して前記入力プログラムソース
ファイルを保全するための中央処理装置とを具備して構
成したことを特徴とするエディタ編集時のプログラムソ
ースファイル保全方式。
A file management means that maintains the last update date for each program source file is provided, and the input program source file is read into a work file in the editor, the contents of the work file are edited and updated, and then the update is performed. a main storage device for storing an operating system that writes the contents of the input program into a file along with a first date; and a main storage device for storing an operating system together with the editor; Obtain and edit the second date, and when a file write request is received, compare the first and second dates, and if they match, write to the file, A program source file preservation method when editing with an editor, comprising: a central processing unit for preserving the input program source file by outputting a warning message when the coincidence cannot be obtained. .
JP62271550A 1987-10-27 1987-10-27 Program source filing maintaining system at time of editing by editor Pending JPH01112425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62271550A JPH01112425A (en) 1987-10-27 1987-10-27 Program source filing maintaining system at time of editing by editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62271550A JPH01112425A (en) 1987-10-27 1987-10-27 Program source filing maintaining system at time of editing by editor

Publications (1)

Publication Number Publication Date
JPH01112425A true JPH01112425A (en) 1989-05-01

Family

ID=17501629

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62271550A Pending JPH01112425A (en) 1987-10-27 1987-10-27 Program source filing maintaining system at time of editing by editor

Country Status (1)

Country Link
JP (1) JPH01112425A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017211747A (en) * 2016-05-24 2017-11-30 株式会社日立ビルシステム Remote writing system and program file update method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017211747A (en) * 2016-05-24 2017-11-30 株式会社日立ビルシステム Remote writing system and program file update method thereof

Similar Documents

Publication Publication Date Title
JPH04342025A (en) Text managing and restoring system
JPH01112425A (en) Program source filing maintaining system at time of editing by editor
JPH05314483A (en) Recording method of information
JPH03216743A (en) Parallel saving system for data base
JPS62137646A (en) Back-up file preparing system
JP2549155Y2 (en) Optical filing system
JPH11120056A (en) Saving and restoring method for project data
JPH05151037A (en) Reorganization processing system for database in business processing
JPH03280136A (en) Record positioning system for sequentially programmed file
JPS6125256A (en) File shunt system
JPS6364152A (en) Message queue control system
JPS62280922A (en) Record edition processing system
JPS62168202A (en) Program recording device
JPH0644116A (en) Disk file saving control system
JPH0454558A (en) Text control system
JPH07160566A (en) Network file managing device
JPH0228848A (en) On-line data processing unit
JPS6228849A (en) Storage control system for information storage device
JPH113211A (en) Pc card setting system for computer system
JPH02253450A (en) File managing method and file editing method
JPH02105237A (en) Data update system for sequence organization file
JPH0387940A (en) File copy system
JPH01188960A (en) Input/output device for forward formation file
JPH0668744B2 (en) NCP load module update processing method
JPH03269647A (en) Editing system using information on external storage