JPH10240310A - Software error processing/editing system and software error processing/editing method - Google Patents

Software error processing/editing system and software error processing/editing method

Info

Publication number
JPH10240310A
JPH10240310A JP4567897A JP4567897A JPH10240310A JP H10240310 A JPH10240310 A JP H10240310A JP 4567897 A JP4567897 A JP 4567897A JP 4567897 A JP4567897 A JP 4567897A JP H10240310 A JPH10240310 A JP H10240310A
Authority
JP
Japan
Prior art keywords
list
editing
error
source code
error message
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
JP4567897A
Other languages
Japanese (ja)
Inventor
Hirohisa Sakai
寛久 境井
Naoko Omori
直子 大森
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.)
Renesas Design Corp
Mitsubishi Electric Corp
Original Assignee
Renesas Design Corp
Mitsubishi Electric 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 Renesas Design Corp, Mitsubishi Electric Corp filed Critical Renesas Design Corp
Priority to JP4567897A priority Critical patent/JPH10240310A/en
Publication of JPH10240310A publication Critical patent/JPH10240310A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce the labor of source code preparation work and editing work in a program by providing an automatic editing part for automatically editing the contents of a list and a source code output part for outputting a source code for which editing by the automatic editing part is completed, etc. SOLUTION: A user directly performs editing to the list of an error message output function calling part from a list editing specification input part 16. Then, the presence/absence of the editing (change) of the list are judged by a checking part 18, and in the case that the editing of the list is present, the source code and an error message output function are automatically corrected by an automatic error code editing part 15 corresponding to the edited contents. The corrected contents of the list are reflected on a data base stored in a storage part 13 and displayed at a list display part 14. Thus, the need of making the user visually search a part where the error message output function is called is eliminated and the labor of the work is reduced.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、プログラム開発
におけるソースコード作成において、ソースコードに定
義するエラー処理機能の実現を支援するソフトウェアエ
ラー処理編集システムに関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to a software error processing editing system for supporting the realization of an error processing function defined in a source code when creating a source code in program development.

【0002】[0002]

【従来の技術】従来のプログラム開発において、プログ
ラムの機能を実現するための各処理に対応して、各処理
が正常に行えない場合(例えば、画面上にファイルを開
けようとしても開けない場合)にエラーメッセージを出
力する処理がある。このエラーメッセージ出力処理を実
現する方法は、エラーメッセージ出力関数をプログラム
のソースコード中に定義し、エラーが発生した処理ステ
ップ(例えば、エラーが発生した関数)でこのエラーメ
ッセージ出力関数を呼び出すことにより、画面上にエラ
ーメッセージを出力させるものである。エラーメッセー
ジ出力関数のエラーメッセージの出力形式としては、エ
ラーが発生した個所やエラーの種類に応じて、(1)エ
ラー番号と(2)エラーの内容が表示される。図7はエ
ラーメッセージ出力関数の表示例を示す図である。図7
に示したエラーメッセージ出力関数は、エラーの番号で
あるエラーコードを引き数(パラメータ)としている。
また、エラーメッセージ出力関数の内部では、エラーコ
ードに対応するエラーの内容であるエラーメッセージが
定義されている。尚、図7はC言語で作成されたソース
コードを想定したものである。
2. Description of the Related Art In conventional program development, when each process cannot be performed normally corresponding to each process for realizing a function of the program (for example, when a file is opened on a screen but cannot be opened). There is a process to output an error message. The method of realizing this error message output processing is to define an error message output function in the source code of the program and call this error message output function at the processing step where the error occurred (for example, the function where the error occurred). , An error message is output on the screen. As the output format of the error message of the error message output function, (1) the error number and (2) the content of the error are displayed according to the location where the error occurs and the type of the error. FIG. 7 is a diagram showing a display example of the error message output function. FIG.
The error message output function shown in (1) uses an error code, which is an error number, as an argument (parameter).
In the error message output function, an error message, which is the content of the error corresponding to the error code, is defined. FIG. 7 assumes a source code created in C language.

【0003】このように、エラーコードは、エラーメッ
セージと対応していることの他に、エラーが発生した処
理ステップを特定させるものである。即ち、エラーコー
ドに対応してエラーメッセージが定義され、エラーコー
ドによりエラーが発生した関数(例えば、input,
main−func等)が判断できる。従って、このエ
ラーコードは、プログラムの構成と同時に変更する場合
が多い。例えば、エラーコード“50”に対応したエラ
ーメッセージをエラーコード“52”に変更するよう
に、エラーコードの割り振りを変更するような場合であ
る。この場合には、ソースコード中からエラーメッセー
ジ出力関数が呼び出されている個所をユーザが目視によ
り探して(サーチ)、呼び出されたエラーメッセージ出
力関数の内容を修正する必要がある。
As described above, an error code specifies a processing step in which an error has occurred, in addition to corresponding to an error message. That is, an error message is defined corresponding to the error code, and a function (for example, input,
main-func). Therefore, this error code is often changed simultaneously with the configuration of the program. For example, there is a case where the allocation of the error code is changed so that the error message corresponding to the error code “50” is changed to the error code “52”. In this case, it is necessary for the user to visually search (search) for a location where the error message output function is called from the source code, and to correct the content of the called error message output function.

【0004】尚、本願に類似する先行技術としては、特
開昭61−34609号公報、特開平7−200357
号公報、特開平6−149619号公報などがある。
As prior art similar to the present invention, Japanese Patent Application Laid-Open No. 61-34609 and Japanese Patent Application Laid-Open No. 7-200357
And Japanese Patent Application Laid-Open No. 149,619.

【0005】[0005]

【発明が解決しようとする課題】従来のエラーメッセー
ジ出力処理方法は以上のように行われているので、プロ
グラム開発者がソースコードを作成する時、エラーメッ
セージ出力関数に割り振るエラーコードは既使用のエラ
ーコードか否かを把握した上で、エラーコードとエラー
メッセージ出力関数の内容との整合性を保ちながら定義
する必要があり、追加のエラーコードがある度に最終的
にエラーコード、エラーメッセージ等をソースコード上
で確認しなければならず、プログラム開発者はソースコ
ードを作成する作業に過大な労力を必要とするなどの課
題があった。また、エラーメッセージ出力関数に割り振
るエラーコードを変更する場合にも、ソースコード上で
1つ1つエラーコードを変更する必要があり、また、エ
ラーコードの重複等の可能性も高くなり、このようなエ
ラーメッセージ出力関数を呼び出す側(ソースコード)
で生じる変更を呼び出されたエラーメッセージ出力関数
の内容にフィードバックさせる作業も非常に労力のかか
るものとなるなどの課題があった。
Since the conventional error message output processing method is performed as described above, when a program developer creates a source code, an error code assigned to an error message output function is already used. It is necessary to define whether the error code is consistent with the contents of the error message output function after grasping whether it is an error code or not, and finally, every time there is an additional error code, the error code, error message, etc. Has to be confirmed on the source code, and there is a problem that the program developer requires an excessive amount of labor to create the source code. Also, when changing the error codes assigned to the error message output function, it is necessary to change the error codes one by one on the source code, and the possibility of duplication of the error codes increases. That invokes a simple error message output function (source code)
There is also a problem that the work of feeding back the change caused by the above to the content of the called error message output function also requires a lot of work.

【0006】この発明は上記のような課題を解決するた
めになされたもので、エラーコードの割り振り、挿入、
変更を自動的に行うことを可能にし、プログラムにおけ
るソースコード作成作業及び編集作業の労力を軽減でき
るソフトウェアエラー処理編集システム及びソフトウェ
アエラー処理編集方法を得ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems.
An object of the present invention is to provide a software error processing and editing system and a software error processing and editing method that enable a change to be performed automatically and reduce the effort of creating and editing a source code in a program.

【0007】また、この発明は、エラーコード出力関数
の自動編集及び自動生成可能にしたソフトウェアエラー
処理編集システム及びソフトウェアエラー処理編集方法
を得ることを目的とする。
Another object of the present invention is to provide a software error processing editing system and a software error processing editing method which enable automatic editing and automatic generation of an error code output function.

【0008】[0008]

【課題を解決するための手段】請求項1記載の発明に係
るソフトウェアエラー処理編集システムは、プログラム
のソースコードを入力するソースコード入力部と、エラ
ーメッセージ出力関数定義ファイルを入力する関数定義
入力部と、該関数定義入力部から入力される上記エラー
メッセージ出力関数定義ファイルのデータベースが記憶
される記憶部と、上記ソースコード中より、上記エラー
メッセージ出力関数定義ファイル内のエラーメッセージ
出力関数が呼び出されている個所を抽出してリストを表
示するリスト表示部と、上記リストに対して編集を行う
リスト編集指定入力部と、上記リストの編集の有無をチ
ェックするチェック部と、該チェック部で上記リストの
編集があると判断された場合に、上記リスト編集指定入
力部による編集内容に従って上記リストの内容を自動編
集する自動編集部と、該自動編集部による編集は完了し
たソースコードを出力するソースコード出力部とを備え
るように構成したものである。
According to the first aspect of the present invention, there is provided a software error processing editing system for inputting a source code of a program, and a function definition input unit for inputting an error message output function definition file. A storage unit for storing a database of the error message output function definition file input from the function definition input unit; and an error message output function in the error message output function definition file is called from the source code. A list display unit for extracting a list and displaying a list, a list edit designation input unit for editing the list, a check unit for checking whether the list has been edited, and a check unit for checking the list. If it is determined that there is an edit in the list, Accordance those constructed as an automatic editing unit for automatically edit the contents of the list, is edited by the automatic editing unit and a source code output unit for outputting the source code has been completed.

【0009】請求項2記載の発明に係るソフトウェアエ
ラー処理編集システムは、自動編集部を、リストのエラ
ーメッセージ出力関数を編集するだけでソースコード中
の他の全てのエラーメッセージ出力関数も修正されるよ
うにしたものである。
In the software error processing editing system according to the second aspect of the present invention, the automatic editing unit only edits the error message output function of the list, so that all other error message output functions in the source code are corrected. It is like that.

【0010】請求項3記載の発明に係るソフトウェアエ
ラー処理編集システムは、自動編集部を、リスト上のエ
ラーコードとエラーメッセージからエラーメッセージ出
力関数を自動生成するようにしたものである。
According to a third aspect of the present invention, there is provided a software error processing editing system, wherein the automatic editing unit automatically generates an error message output function from an error code and an error message on a list.

【0011】請求項4記載の発明に係るソフトウェアエ
ラー処理編集システムは、上記請求項1から請求項3の
ソフトウェアエラー処理編集システムをプログラム用の
ソースコードエディタに組み込んだものである。
According to a fourth aspect of the present invention, there is provided a software error processing editing system in which the software error processing editing system according to any one of the first to third aspects is incorporated in a source code editor for a program.

【0012】請求項5記載の発明に係るソフトウェアエ
ラー処理編集方法は、プログラムのソースコードを入力
し、エラーメッセージ出力関数を定義ファイルとして入
力し、上記ソースコード中より、上記エラーメッセージ
出力関数が呼び出されている個所を抽出してリストを表
示し、該リストに対して編集を行い、該リストの編集の
有無をチェックして該リストの編集があると判断された
場合に、該リストの編集内容に従って該リストの内容を
自動編集し、編集が完了したソースコードを出力するも
のである。
According to a fifth aspect of the present invention, there is provided a software error processing editing method, wherein a source code of a program is input, an error message output function is input as a definition file, and the error message output function is called from the source code. The list is extracted, the list is displayed, the list is edited, and it is checked whether or not the list has been edited. If it is determined that the list is edited, the contents of the list are edited. Automatically edits the contents of the list, and outputs the edited source code.

【0013】[0013]

【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1はこの発明の実施の形態1によるソ
フトウェアエラー処理編集システムのデータ入出力関連
を示す概念図であり、図において、1はこの実施の形態
1におけるソフトウェアエラー処理編集システム、2は
ソフトウェアエラー処理編集システム1に入力されるプ
ログラムのソースコード、3はソフトウェアエラー処理
編集システム1に入力されるエラーメッセージ出力関数
定義ファイルである。4はソフトウェアエラー処理編集
システム1の動作処理を制御するコントロールカード、
5はソフトウェアエラー処理編集システム1から出力さ
れるエラーメッセージ出力関数呼び出し個所のリストで
ある。尚、コントロールカード4とリスト5は同一フォ
ーマットで作成されている。6はソフトウェアエラー処
理編集システム1により編集処理された後、このソフト
ウェアエラー処理編集システム1から出力されるエラー
メッセージ出力関数編集済みプログラムのソースコード
である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is a conceptual diagram showing a data input / output relationship of a software error processing / editing system according to Embodiment 1 of the present invention. In FIG. 1, reference numeral 1 denotes a software error processing / editing system according to Embodiment 1; The source code 3 of the program input to the editing system 1 is an error message output function definition file input to the software error processing editing system 1. 4 is a control card for controlling the operation processing of the software error processing editing system 1;
Reference numeral 5 denotes a list of error message output function call locations output from the software error processing editing system 1. The control card 4 and the list 5 are created in the same format. Reference numeral 6 denotes a source code of an edited program for an error message output function output from the software error processing editing system 1 after being edited by the software error processing editing system 1.

【0014】図2はこの発明の実施の形態1によるソフ
トウェアエラー処理編集システムを示す構成図であり、
図において、11は対象プログラムのソースコード2を
入力するプログラムソースコード入力部(ソースコード
入力部)、12はエラーメッセージ出力関数定義ファイ
ル3を入力するエラーメッセージ出力関数定義入力部
(関数定義入力部)である。従来のエラーメッセージ出
力処理においては、ソースコード中にエラーメッセージ
出力関数を定義していたが、この実施の形態1では、エ
ラーメッセージ出力関数のソースコードを定義ファイル
として入力できるものである。13はエラーメッセージ
出力関数定義入力部12で入力されるエラーメッセージ
出力関数定義ファイル3のデータベースが記憶される記
憶部、14はプログラムソースコード入力部11で入力
されたソースコード2中より、エラーメッセージ出力関
数定義入力部12で入力したエラーメッセージ出力関数
が呼び出されている個所を抽出し、エラーメッセージ出
力関数呼び出し個所のリスト5(エラーメッセージ出力
関数の引き数にセットしたエラーコード、及びこのエラ
ーコードに対応して出力されるエラーメッセージ)を表
示するリスト表示部である。15はソフトウェアエラー
処理編集システム1におけるエラーコード自動編集機能
を有するエラーコード自動編集部(自動編集部)であ
る。
FIG. 2 is a block diagram showing a software error processing editing system according to Embodiment 1 of the present invention.
In the figure, 11 is a program source code input unit (source code input unit) for inputting a source code 2 of a target program, and 12 is an error message output function definition input unit (function definition input unit) for inputting an error message output function definition file 3. ). In the conventional error message output processing, an error message output function is defined in the source code. However, in the first embodiment, the source code of the error message output function can be input as a definition file. Reference numeral 13 denotes a storage unit for storing a database of the error message output function definition file 3 input by the error message output function definition input unit 12, and 14 denotes an error message from the source code 2 input by the program source code input unit 11. The location where the error message output function input by the output function definition input unit 12 is called is extracted, and a list 5 of the error message output function call locations (the error code set in the argument of the error message output function and the error code Is a list display section for displaying an error message output in response to the message. Reference numeral 15 denotes an automatic error code editing unit (automatic editing unit) having an automatic error code editing function in the software error processing editing system 1.

【0015】16はエラーコードやエラーメッセージの
編集をユーザの指定により行うリスト編集指定入力部で
ある。ユーザは、リスト編集指定入力部16から、リス
ト表示部14で出力されたリストに対して編集を行うこ
とによって、ソースコード2及びエラーメッセージ出力
関数を変更することができる。17はリスト編集指定入
力部16の処理が完了した後で新しいソースコード(エ
ラーメッセージ出力関数編集済みプログラムのソースコ
ード6)を出力するプログラムソースコード出力部(ソ
ースコード出力部)である。18はリスト表示部14で
処理されたエラーメッセージ出力関数の引き数にセット
した内容が正しいか否かをチェックするチェック部であ
る。
Reference numeral 16 denotes a list edit designation input unit for editing an error code or an error message according to a user's designation. The user can change the source code 2 and the error message output function by editing the list output from the list display unit 14 from the list edit designation input unit 16. Reference numeral 17 denotes a program source code output unit (source code output unit) which outputs a new source code (source code 6 of the edited program of the error message output function) after the processing of the list edit designation input unit 16 is completed. A check unit 18 checks whether the contents set in the arguments of the error message output function processed by the list display unit 14 are correct.

【0016】図3はリスト表示部14で表示されるリス
ト5の表示例を示した図である。この表示例において、
“10”,“11”は関数識別番号を示し、“inpu
t()”,“main−func()”は関数名を示
し、“5”,“6”はライン数を示す。これら関数識別
番号、関数名、ライン数により、エラー発生個所を特定
するものである。即ち、“input”なら“10”、
“main−func”なら“11”というように、関
数識別番号は関数名に対応して表示される。また、ライ
ン数は関数内のエラーの発生した行数を示すもので、ラ
イン数“5”であれば、“input”という関数内の
5行目でエラーが発生していることを示している。
“1”はエラーコード、“メッセージ1”はエラーメッ
セージであり、このエラーメッセージは図1に示したエ
ラーメッセージ出力関数定義入力部12により、エラー
コードと対応させて入力される。このように、図3に示
したリスト5の表示例は、エラーメッセージ出力関数定
義入力部12で入力された“メッセージ1”を出力する
関数が、“input”という関数内で1回、“mai
n−func”という関数内で1回、呼び出された場合
を表示している。
FIG. 3 is a diagram showing a display example of the list 5 displayed on the list display section 14. In this display example,
“10” and “11” indicate function identification numbers, and “input”
"t ()" and "main-func ()" indicate a function name, and "5" and "6" indicate the number of lines.The function identification number, the function name, and the number of lines specify an error occurrence location. That is, “10” for “input”,
The function identification number is displayed corresponding to the function name, such as "11" for "main-func". The number of lines indicates the number of lines in the function where an error has occurred. If the number of lines is “5”, it indicates that an error has occurred in the fifth line of the function “input”. .
“1” is an error code, and “Message 1” is an error message. This error message is input by the error message output function definition input unit 12 shown in FIG. 1 in association with the error code. As described above, in the display example of the list 5 shown in FIG. 3, the function that outputs “message 1” input by the error message output function definition input unit 12 includes “mai” once in the function “input”.
A case where the function is called once in a function “n-func” is displayed.

【0017】図4はエラーコードの書式の表示例を示し
た図である。このエラーコードの書式の表示例では、エ
ラーコードをラベルとして設定した“DATAERRO
R”という大文字と4桁の数字で表している。4桁の数
字の上2桁はエラーが発生した関数の関数識別番号であ
り、下2桁は同じエラーメッセージが呼び出された順番
の通し番号であるシーケンシャル番号である。例えば、
“input()”という関数内で“メッセージ1”と
いうエラーが1回発生している場合は、“inpu
t()”の関数識別番号は“10”であり、“メッセー
ジ1”というエラー1回のシーケンシャル番号は“0
1”であるので、“1001”と表示される。このよう
なエラーコードの書式及びエラーコードにおいて参照さ
れる情報(関数識別番号、シーケンシャル番号の初期値
等)を、ユーザがエラーコード書式の画面を呼び出して
書き込むことにより設定することができる。
FIG. 4 is a diagram showing a display example of a format of an error code. In the display example of the error code format, “DATAERROR” in which the error code is set as a label is used.
The upper two digits of the four digits are the function identification number of the function in which the error occurred, and the lower two digits are the serial numbers in the order in which the same error message was called. A sequential number, for example,
If an error of “message 1” occurs once in a function of “input ()”, “input ()”
The function identification number of “t ()” is “10”, and the sequential number of one error “Message 1” is “0”.
Therefore, the error code format and the information referred to in the error code (function identification number, initial value of the sequential number, etc.) are displayed on the screen of the error code format by the user. Can be set by calling and writing.

【0018】図5はプログラムの実行時のエラーメッセ
ージの表示例を示した図である。図5に示すように、プ
ログラムの実行時にエラーが発生すると、エラーコード
のラベル“DATAERROR”、4桁の数字(上2桁
は関数識別番号、下2桁はシーケンシャル番号)、及び
エラーメッセージ“メッセージ1”が表示される。尚、
図4に示した表示例は、図3に示したリスト5の表示例
と同様に、“メッセージ1”を出力する関数が、“in
put”という関数内で1回、“main−func”
という関数内で1回、呼び出された場合を表示してい
る。
FIG. 5 is a diagram showing a display example of an error message when a program is executed. As shown in FIG. 5, when an error occurs during the execution of the program, a label “DATAERROR” of the error code, a four-digit number (the upper two digits are a function identification number, and the lower two digits are a sequential number), and an error message “message” 1 "is displayed. still,
In the display example shown in FIG. 4, similarly to the display example of list 5 shown in FIG. 3, the function for outputting “message 1” is “in”.
Once in a function called “put”, “main-func”
Is displayed once in the function called.

【0019】次に動作について説明する。図6はソフト
ウェアエラー処理編集システムの処理を説明するための
フローチャートであり、この図6に基づいて処理の流れ
を説明する。先ず、プログラムのソースコード読み込み
ステップにおいて、ユーザ(プログラムの開発者)がプ
ログラムソースコード入力部11からプログラムのソー
スコード2の入力を行う(ステップST1)。次に、エ
ラーメッセージ出力関数定義ファイル読み込みステップ
において、ユーザがエラーメッセージ出力関数定義入力
部12からエラーメッセージ出力関数定義ファイル3の
入力を行い、エラーメッセージ出力関数定義ファイル3
の内容をデータベースとして記憶部13に格納する(ス
テップST2)。
Next, the operation will be described. FIG. 6 is a flowchart for explaining the processing of the software error processing editing system, and the flow of the processing will be described based on FIG. First, in a program source code reading step, a user (program developer) inputs a program source code 2 from the program source code input unit 11 (step ST1). Next, in the error message output function definition file reading step, the user inputs the error message output function definition file 3 from the error message output function definition input unit 12, and the error message output function definition file 3
Is stored in the storage unit 13 as a database (step ST2).

【0020】次に、ステップST2で読み込んだエラー
メッセージ出力関数定義の仕様に従いソースコード2中
のエラーのチェックを行い(ステップST3)、ソース
コード2中にエラーがなければ、処理を終了する。ソー
スコード2中にエラーがあれば、ソースコード2中でエ
ラーメッセージ出力関数が呼び出され、この呼び出され
たエラーメッセージ出力関数の抽出を自動的に行い、エ
ラーメッセージ出力関数呼び出し個所のリスト5(採番
されたエラーコード、エラーメッセージ等、即ち、エラ
ーメッセージ出力関数の引き数にセットされているエラ
ーコードとエラーコードに対応するエラーメッセージ)
をリスト表示部14にリストアップする(ステップST
4)。
Next, an error in the source code 2 is checked in accordance with the specification of the error message output function definition read in step ST2 (step ST3). If there is no error in the source code 2, the process is terminated. If there is an error in the source code 2, the error message output function is called in the source code 2, the called error message output function is automatically extracted, and a list 5 of the error message output function call point (taken) Numbered error code, error message, etc., that is, the error code set in the argument of the error message output function and the error message corresponding to the error code)
In the list display unit 14 (step ST
4).

【0021】次に、ユーザはリスト編集指定入力部16
からエラーメッセージ出力関数呼び出し個所のリスト5
(リスト表示されたソースコード及びエラーメッセージ
出力関数)に対して直接編集を行う(ステップST
5)。そして、このリスト5の編集(変更)の有無をチ
ェック部18により判断し(ステップST6)、リスト
5の編集がある場合には、ステップST5で編集された
内容に従ってソースコード及びエラーメッセージ出力関
数をエラーコード自動編集部15により自動的に修正
(エラーメッセージ出力関数定義の変更、エラーコード
の採番し直し等)し(ステップST7)、修正されたリ
スト5の内容が記憶部13に格納されたデータベースに
反映されるとともに、リスト表示部14で表示される。
リスト5の編集がない場合には、ステップST7の処理
が完了したプログラムのソースコード(エラーメッセー
ジ出力関数編集済みプログラムのソースコード6)が生
成された状態であり、このソースコード6をプログラム
ソースコード出力部17より出力して(ステップST
8)、処理を終了する。
Next, the user inputs a list edit designation input section 16.
List of the places where the error message output function is called from
Edit directly to the (listed source code and error message output function) (step ST
5). The check unit 18 determines whether or not the list 5 has been edited (changed) (step ST6). If the list 5 has been edited, the source code and the error message output function are output according to the contents edited in step ST5. The error code automatic editing unit 15 automatically corrects (changes the definition of the error message output function, renumbers the error code, etc.) (step ST7), and the corrected list 5 is stored in the storage unit 13. The information is reflected on the database and displayed on the list display unit 14.
If the list 5 is not edited, the source code of the program for which the processing of step ST7 has been completed (the source code 6 of the edited program for the error message output function) has been generated. Output from the output unit 17 (step ST
8), end the process.

【0022】以上のように、この実施の形態1によれ
ば、リスト表示部14により、ソースコード中で呼び出
されたエラーメッセージ出力関数の抽出を自動的に行
い、エラーメッセージ出力関数呼び出し個所のリスト5
を表示するので、従来における、ユーザが目視によりエ
ラーメッセージ出力関数が呼び出されている個所を探す
作業が不要となり、プログラムのソースコード2の編集
作業の労力を軽減することができる。
As described above, according to the first embodiment, the list display unit 14 automatically extracts the error message output function called in the source code, and provides a list of the error message output function call locations. 5
Is displayed, it is not necessary for the user to visually search for the place where the error message output function is called, and the work of editing the source code 2 of the program can be reduced.

【0023】また、ユーザがリスト表示部14が出力す
るリスト5に対して直接編集を行うことより、エラーコ
ード自動編集部15によってエラーメッセージ出力関数
の変更や、エラーメッセージ出力関数の呼び出し個所の
プログラムのソースコード2の変更が自動的に行われる
ので、従来における、エラーメッセージ出力関数にわた
すエラーコードをエラーメッセージ出力関数の内容との
整合性を保ちながら定義する作業が不要となり、プログ
ラムのソースコード2の作成作業及び編集作業の労力を
軽減することができる。また、エラーコード自動編集部
15により編集されたリスト5の内容がリスト表示部1
4で表示されるので、ソースコード2中の部分的な変更
をその都度ソースコード全体に反映させて見ることがで
き、ソースコード2全体に対する影響を考慮しながら編
集作業を行うことができるため、編集作業の労力を一層
軽減することができる。
Further, since the user directly edits the list 5 output from the list display unit 14, the error code automatic editing unit 15 changes the error message output function or calls the program at the location where the error message output function is called. Automatically changes the source code 2 of the program, eliminating the conventional work of defining the error code to be passed to the error message output function while maintaining consistency with the contents of the error message output function. 2 can reduce the labor of the creation work and the edit work. The contents of the list 5 edited by the automatic error code editing unit 15 are displayed on the list display unit 1.
4, the partial change in the source code 2 can be reflected and reflected on the entire source code each time, and the editing operation can be performed while considering the influence on the entire source code 2. The editing work can be further reduced.

【0024】さらに、エラーコードにおいて、エラーコ
ード書式を設定できる機能を有しているので、エラーメ
ッセージ出力関数呼び出し個所のリスト5を出力してラ
インを確認できるだけでなく、このリスト5上に表示さ
れた情報をそのままエラーコード中に取り込むことが可
能になり、編集作業が一層容易となる。
Further, since the function of setting the error code format for the error code is provided, not only can the list 5 of the error message output function calling point be output to check the line, but also the line displayed on the list 5 can be displayed. The edited information can be taken into the error code as it is, and the editing work is further facilitated.

【0025】実施の形態2.上記実施の形態1では、リ
スト編集指定入力部16より、リスト表示部14が出力
したエラーコードのリスト5及びこれに対応するエラー
メッセージの修正を行う場合、リスト表示されたエラー
コードまたはエラーメッセージだけをエラーコード自動
編集部15により修正されるものであった。この実施の
形態2では、同じエラーメッセージ出力関数により同じ
エラーメッセージを出力するリスト5は、同じエラーコ
ード書式で管理されるが、このエラーメッセージの修正
を行う場合は、リスト5上のどれか1カ所のエラーメッ
セージを変更するだけで、他の全てのソースコード2も
エラーコード自動編集部15により修正することができ
るようにしたものである。
Embodiment 2 In the first embodiment, when the list editing designation input unit 16 corrects the error code list 5 output by the list display unit 14 and the corresponding error message, only the error code or error message displayed in the list is corrected. Is corrected by the error code automatic editing unit 15. In the second embodiment, the list 5 that outputs the same error message by the same error message output function is managed in the same error code format. To correct this error message, any one of the lists 5 All the other source codes 2 can be corrected by the error code automatic editing unit 15 only by changing the error message at the location.

【0026】以上のように、この実施の形態2によれ
ば、リスト5上のどれか1カ所のエラーメッセージを変
更するだけで、他の全てのソースコード2もエラーコー
ド自動編集部15により修正することができるようにし
たので、さらにソースコードのプログラムの編集作業の
労力を軽減することができる。
As described above, according to the second embodiment, the error code automatic editing unit 15 corrects all other source codes 2 only by changing one of the error messages on the list 5. Since it is possible to do so, the work of editing the source code program can be further reduced.

【0027】実施の形態3.上記実施の形態1では、ソ
ースコード2中のエラーメッセージ出力関数が呼び出さ
れた個所は、エラーメッセージ出力関数定義入力部12
で入力したエラーメッセージ出力関数定義ファイル3に
て定義された関数が呼び出されたことによって認識され
る構成であるが、この実施の形態3では、さらに、リス
ト5上のエラーコードとエラーメッセージからエラーメ
ッセージ出力関数を自動生成できるようにしたものであ
る。
Embodiment 3 In the first embodiment, the place where the error message output function in the source code 2 is called is the error message output function definition input unit 12.
Is recognized by calling the function defined in the error message output function definition file 3 input in step 3. In the third embodiment, the error code and error message on the list 5 The message output function can be automatically generated.

【0028】以上のように、この実施の形態3によれ
ば、リスト5上のエラーコードとエラーメッセージから
エラーメッセージ出力関数を自動生成できるようにした
ので、ソースコードのプログラムの編集作業の労力を一
層軽減することができる。
As described above, according to the third embodiment, the error message output function can be automatically generated from the error code and the error message on the list 5, so that the work of editing the source code program can be reduced. It can be further reduced.

【0029】実施の形態4.本願におけるソフトウェア
エラー処理編集システムを、ソースコード2を作成する
ソースコードエディタに組み込むことにより、エラー処
理定義の編集をリアルタイムで繰り返し操作することが
可能となる。
Embodiment 4 By incorporating the software error processing editing system in the present application into a source code editor for creating the source code 2, it becomes possible to repeatedly edit an error processing definition in real time.

【0030】尚、上記説明した実施の形態においては、
C言語で作成されるソースコードを想定したものである
が、これに限るものではなく、どのような言語で作成さ
れるものにでも適用することができる。
In the embodiment described above,
Although it is assumed that the source code is created in the C language, the present invention is not limited to this, and can be applied to any code created in any language.

【0031】[0031]

【発明の効果】以上のように、請求項1記載の発明によ
れば、プログラムのソースコードを入力するソースコー
ド入力部と、エラーメッセージ出力関数定義ファイルを
入力する関数定義入力部と、該関数定義入力部から入力
される上記エラーメッセージ出力関数定義ファイルのデ
ータベースが記憶される記憶部と、上記ソースコード中
より、上記エラーメッセージ出力関数定義ファイル内の
エラーメッセージ出力関数が呼び出されている個所を抽
出してリストを表示するリスト表示部と、上記リストに
対して編集を行うリスト編集指定入力部と、上記リスト
の編集の有無をチェックするチェック部と、該チェック
部で上記リストの編集があると判断された場合に、上記
リスト編集指定入力部による編集内容に従って上記リス
トの内容を自動編集する自動編集部と、該自動編集部に
よる編集は完了したソースコードを出力するソースコー
ド出力部とを備えるように構成したので、ユーザが目視
によりエラーメッセージ出力関数が呼び出されている個
所を探す作業が不要となり、プログラムのソースコード
の編集作業の労力を軽減することができる効果がある。
また、ユーザがリスト表示部が出力するリストに対して
直接編集を行うことより、自動編集部によってエラーメ
ッセージ出力関数の変更やエラーメッセージ出力関数の
呼び出し個所のプログラムのソースコードの変更が自動
的に行われるので、エラーコードをエラーメッセージ出
力関数に割り振る作業が容易となり、プログラムのソー
スコードの作成作業及び編集作業の労力を軽減すること
ができる効果がある。また、自動編集部により編集され
たリストの内容がリスト表示部で表示されるので、ソー
スコード中の部分的な変更をその都度ソースコード全体
に反映させて見ることができ、ソースコード全体に対す
る影響を考慮しながら編集作業を行うことができるた
め、編集作業の労力を一層軽減することができる効果が
ある。さらに、エラーコードにおいて、エラーコード書
式を設定できる機能を有しているので、リストを出力し
てラインを確認できるだけでなく、このリスト上に表示
された情報をそのままエラーコード中に取り込むことが
可能になり、編集作業が一層容易となる効果がある。
As described above, according to the first aspect of the present invention, a source code input unit for inputting a source code of a program, a function definition input unit for inputting an error message output function definition file, and the function A storage unit in which a database of the error message output function definition file input from the definition input unit is stored, and a location where the error message output function in the error message output function definition file is called from the source code. A list display unit for extracting and displaying a list, a list edit designation input unit for editing the list, a check unit for checking whether or not the list is edited, and the check unit for editing the list If it is determined that the contents of the list are automatically edited according to the contents edited by the list And a source code output unit that outputs a source code that has been edited by the automatic editing unit, so that the user visually searches for a place where the error message output function is called. Is unnecessary, and there is an effect that the labor for editing the source code of the program can be reduced.
In addition, the user directly edits the list output from the list display unit, so that the automatic editing unit automatically changes the error message output function and changes the source code of the program where the error message output function is called. Since this operation is performed, the work of allocating the error code to the error message output function becomes easy, and there is an effect that the labor of creating and editing the source code of the program can be reduced. In addition, since the contents of the list edited by the automatic editing unit are displayed on the list display unit, partial changes in the source code can be reflected and reflected on the entire source code each time, thus affecting the entire source code. Therefore, the editing work can be performed while taking into account the above, so that there is an effect that the labor of the editing work can be further reduced. In addition, the error code format can be set for the error code, so not only can you output the list and check the line, but you can also use the information displayed on this list as it is in the error code. And the editing operation is further facilitated.

【0032】請求項2記載の発明によれば、自動編集部
を、リストのエラーメッセージ出力関数を編集するだけ
でソースコード中の他の全てのエラーメッセージ出力関
数も修正されるように構成したので、さらにソースコー
ドのプログラムの編集作業の労力を軽減することができ
る効果がある。
According to the second aspect of the present invention, the automatic editing unit is configured so that all the other error message output functions in the source code are corrected only by editing the list error message output function. In addition, there is an effect that the labor of editing the source code program can be reduced.

【0033】請求項3記載の発明によれば、自動編集部
を、リスト上のエラーコードとエラーメッセージからエ
ラーメッセージ出力関数を自動生成するように構成した
ので、ソースコードのプログラムの編集作業の労力を一
層軽減することができる効果がある。
According to the third aspect of the present invention, the automatic editing unit is configured to automatically generate an error message output function from the error code and the error message on the list, so that the labor of editing the source code program is increased. Is further reduced.

【0034】請求項4記載の発明によれば、上記請求項
1から請求項3のソフトウェアエラー処理編集システム
をプログラム用のソースコードエディタに組み込むよう
に構成したので、エラー処理定義の編集がリアルタイム
で繰り返し操作することが可能になる効果がある。
According to the fourth aspect of the present invention, the software error processing editing system according to any one of the first to third aspects is configured to be incorporated in a source code editor for a program. There is an effect that the operation can be repeatedly performed.

【0035】請求項5記載の発明によれば、プログラム
のソースコードを入力し、エラーメッセージ出力関数を
定義ファイルとして入力し、上記ソースコード中より、
上記エラーメッセージ出力関数が呼び出されている個所
を抽出してリストを表示し、該リストに対して編集を行
い、該リストの編集の有無をチェックして該リストの編
集があると判断された場合に、該リストの編集内容に従
って該リストの内容を自動編集し、編集が完了したソー
スコードを出力するように構成したので、上記請求項1
と同様、プログラムのソースコードの作成作業及び編集
作業の労力を軽減することができる効果がある。
According to the fifth aspect of the present invention, the source code of the program is input, and the error message output function is input as a definition file.
When the location where the above error message output function is called is extracted, a list is displayed, the list is edited, and it is checked whether or not the list is edited, and it is determined that the list is edited. Wherein the contents of the list are automatically edited according to the edited contents of the list, and the edited source code is output.
Similarly to the above, there is an effect that the labor for creating and editing the source code of the program can be reduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 この発明の実施の形態1によるソフトウェア
エラー処理編集システムのデータ入出力関連を示す概念
図である。
FIG. 1 is a conceptual diagram showing a data input / output relationship of a software error processing editing system according to a first embodiment of the present invention.

【図2】 この発明の実施の形態1によるソフトウェア
エラー処理編集システムを示す構成図である。
FIG. 2 is a configuration diagram illustrating a software error processing editing system according to Embodiment 1 of the present invention;

【図3】 リスト表示部で表示されるリストの表示例を
示した図である。
FIG. 3 is a diagram showing a display example of a list displayed on a list display unit.

【図4】 エラーコードの書式の表示例を示した図であ
る。
FIG. 4 is a diagram showing a display example of an error code format.

【図5】 プログラムの実行時のエラーメッセージの表
示例を示した図である。
FIG. 5 is a diagram showing a display example of an error message when a program is executed.

【図6】 ソフトウェアエラー処理編集システムの処理
を説明するためのフローチャートである。
FIG. 6 is a flowchart for explaining processing of the software error processing editing system.

【図7】 エラーメッセージ出力関数の表示例を示す図
である。
FIG. 7 is a diagram showing a display example of an error message output function.

【符号の説明】[Explanation of symbols]

1 ソフトウェアエラー処理編集システム、2,6 ソ
ースコード、3 エラーメッセージ出力関数定義ファイ
ル、5 リスト、11 プログラムソースコード入力部
(ソースコード入力部)、12 エラーメッセージ出力
関数定義入力部(関数定義入力部)、13 記憶部、1
4 リスト表示部、15 エラーコード自動編集部(自
動編集部)、16 リスト編集指定入力部、17 プロ
グラムソースコード出力部(ソースコード出力部)、1
8 チェック部。
1 software error processing editing system, 2, 6 source code, 3 error message output function definition file, 5 list, 11 program source code input section (source code input section), 12 error message output function definition input section (function definition input section ), 13 storage unit, 1
4 list display section, 15 error code automatic editing section (automatic editing section), 16 list editing designation input section, 17 program source code output section (source code output section), 1
8 Check section.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 プログラムのソースコードを入力するソ
ースコード入力部と、エラーメッセージ出力関数定義フ
ァイルを入力する関数定義入力部と、該関数定義入力部
から入力される上記エラーメッセージ出力関数定義ファ
イルのデータベースが記憶される記憶部と、上記ソース
コード中より、上記エラーメッセージ出力関数定義ファ
イル内のエラーメッセージ出力関数が呼び出されている
個所を抽出してリストを表示するリスト表示部と、上記
リストに対して編集を行うリスト編集指定入力部と、上
記リストの編集の有無をチェックするチェック部と、該
チェック部で上記リストの編集があると判断された場合
に、上記リスト編集指定入力部による編集内容に従って
上記リストの内容を自動編集する自動編集部と、該自動
編集部による編集は完了したソースコードを出力するソ
ースコード出力部とを備えたソフトウェアエラー処理編
集システム。
1. A source code input unit for inputting a source code of a program, a function definition input unit for inputting an error message output function definition file, and an error message output function definition file input from the function definition input unit. A storage unit in which a database is stored, a list display unit that extracts a place where the error message output function in the error message output function definition file is called from the source code and displays a list, A list edit designation input unit for editing the list, a check unit for checking whether or not the list has been edited, and editing by the list edit designation input unit when the check unit determines that the list has been edited. An automatic editing unit that automatically edits the contents of the list according to the contents, and editing by the automatic editing unit A software error processing editing system comprising: a source code output unit that outputs a completed source code.
【請求項2】 自動編集部が、リストのエラーメッセー
ジ出力関数を編集するだけでソースコード中の他の全て
のエラーメッセージ出力関数も修正されることを特徴と
する請求項1記載のソフトウェアエラー処理編集システ
ム。
2. The software error processing according to claim 1, wherein the automatic editing unit only edits the error message output function in the list, thereby correcting all other error message output functions in the source code. Editing system.
【請求項3】 自動編集部が、リスト上のエラーコード
とエラーメッセージからエラーメッセージ出力関数を自
動生成することを特徴とする請求項1記載のソフトウェ
アエラー処理編集システム。
3. The software error processing and editing system according to claim 1, wherein the automatic editing unit automatically generates an error message output function from the error code and the error message on the list.
【請求項4】 請求項1から請求項3のうちのいずれか
1項記載のソフトウェアエラー処理編集システムをプロ
グラム用のソースコードエディタに組み込んだことを特
徴とするソフトウェアエラー処理編集システム。
4. A software error processing editing system, wherein the software error processing editing system according to claim 1 is incorporated in a source code editor for a program.
【請求項5】 プログラムのソースコードを入力し、エ
ラーメッセージ出力関数を定義ファイルとして入力し、
上記ソースコード中より、上記エラーメッセージ出力関
数が呼び出されている個所を抽出してリストを表示し、
該リストに対して編集を行い、該リストの編集の有無を
チェックして該リストの編集があると判断された場合
に、該リストの編集内容に従って該リストの内容を自動
編集し、編集が完了したソースコードを出力することを
特徴とするソフトウェアエラー処理編集方法。
5. Inputting a source code of a program, inputting an error message output function as a definition file,
From the above source code, extract the place where the above error message output function is called and display the list,
Edits the list, checks whether the list has been edited, and if it is determined that the list has been edited, automatically edits the contents of the list according to the edited contents of the list, and completes the editing Software error processing editing method, characterized by outputting a modified source code.
JP4567897A 1997-02-28 1997-02-28 Software error processing/editing system and software error processing/editing method Pending JPH10240310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4567897A JPH10240310A (en) 1997-02-28 1997-02-28 Software error processing/editing system and software error processing/editing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4567897A JPH10240310A (en) 1997-02-28 1997-02-28 Software error processing/editing system and software error processing/editing method

Publications (1)

Publication Number Publication Date
JPH10240310A true JPH10240310A (en) 1998-09-11

Family

ID=12726059

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4567897A Pending JPH10240310A (en) 1997-02-28 1997-02-28 Software error processing/editing system and software error processing/editing method

Country Status (1)

Country Link
JP (1) JPH10240310A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5496429B1 (en) * 2013-04-04 2014-05-21 三菱電機株式会社 Engineering tools and programmable logic controllers

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5496429B1 (en) * 2013-04-04 2014-05-21 三菱電機株式会社 Engineering tools and programmable logic controllers
WO2014162575A1 (en) * 2013-04-04 2014-10-09 三菱電機株式会社 Engineering tool and programmable logic controller
CN105074594B (en) * 2013-04-04 2017-04-05 三菱电机株式会社 Engineering tools and programmable logic controller (PLC)

Similar Documents

Publication Publication Date Title
US6964010B1 (en) Formatted-item list control
KR100613052B1 (en) Method and Apparatus For Interoperation Between Legacy Software and Screen Reader Programs
KR20030070685A (en) method for Modification of Graphic User Interface and recorded media thereof
JPH1091414A (en) Method for displaying function object in graphic programming
JP2006276953A (en) Screen definition data difference extraction method, device and program
JP2553801B2 (en) Graphical user interface management method
JPH10240310A (en) Software error processing/editing system and software error processing/editing method
CN101110028A (en) System and methods for generating runtime messages
JPH08190476A (en) Development assisting device for interactive program
JP2000112743A (en) Program correcting information managing method
JPH10222356A (en) Application generating device and application generating method
JPH0954688A (en) Gui design supporting method
JP2706558B2 (en) Ladder program editing method
JP2720768B2 (en) Program customization equipment
JP2001117761A (en) Method and device for manufacturing picture program and recording medium stored with picture program manufacturing program
JP2500632B2 (en) Program pattern customization method
JPH0667864A (en) Method for automatically preparing/updating manual or the like
JPH1196040A (en) Process execution system and recording medium
JP3224386B2 (en) Program creation device
JPH0573290A (en) Program control system of interactive system
JPH04287127A (en) Knowledge editor device
JP2601533B2 (en) Data processing device
CN117270830A (en) Intelligent generation method and system for back-end codes based on front-end visual configuration
JPH0210430A (en) Online program generating system
JPH05298077A (en) Customizing development procedure support method