Skip to content

main: report errors when calling ftell(3) fails #4012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

masatake
Copy link
Member

@masatake masatake commented Jun 4, 2024

This one is for debugging #4011. However, the change is generic.

Copy link

codecov bot commented Jun 4, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 85.43%. Comparing base (653ca92) to head (a3493a9).

Files Patch % Lines
main/entry.c 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4012      +/-   ##
==========================================
- Coverage   85.43%   85.43%   -0.01%     
==========================================
  Files         235      235              
  Lines       56723    56727       +4     
==========================================
+ Hits        48460    48462       +2     
- Misses       8263     8265       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@masatake masatake merged commit 1aba518 into universal-ctags:master Jun 4, 2024
48 of 49 checks passed
@@ -2335,6 +2340,10 @@ extern void setTagFilePosition (MIOPos *p, bool truncation)
if (truncation)
{
long t1 = mio_tell (TagFile.mio);
if (t1 == -1)
error (FATAL|PERROR,
"failed to tell the file position of the tag file (t0)\n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mistake of t1?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... I'm shame. Thank you very much.

masatake added a commit to masatake/ctags that referenced this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants