エラー表示: 本体ファイルのエラーでもファイル名を表示 (GH#16)#32
Open
shuyo wants to merge 1 commit into
Open
Conversation
include 内のエラーではファイル名が出るのに本体エラーでは出ず不自然 だったため、error_sub で a2 に既定で basic_filename を入れ、include 内なら inclerr名 で上書きしてから共通でファイル名+「 の 」を出力する ようにした。行番号なしエラー(行数=0)は従来どおり非表示のまま。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
include 内のエラーではファイル名が表示されるのに、本体ファイルのエラーでは表示されず不自然だったため、本体エラーでもファイル名を出すようにした。
変更
error_sub(SRC/XB.HAS)で、行番号付きエラー時にa2へ既定でbasic_filename(本体)を入れ、include 内ならinclerr名で上書きしてから、両経路共通でファイル名+「 の 」を出力する。スタックの押し引きは従来どおり(tentenスロットをmove.l d1,(sp)で再利用)でバランスを維持。行番号なしエラー(行数=0)は従来どおりファイル名・行番号とも非表示。表示の変化
変な式だな …… 3 行目変な式だな …… ERR1.BAS の 3 行目…… INCL2E.INC の 4 行目警告(Warning)も同じ経路のためファイル名が付き、一貫性が出た。
検証
run68 + HAS.X/hlk/hcv でローカルビルドし実行確認:
…… ../_WORK/ERR1.BAS の 3 行目…… INCL1.BAS の 12 行目🤖 Generated with Claude Code