Skip to content
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

optlib: allow users to set fields and check extras defined in a foreign language #3960

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

masatake
Copy link
Member

@masatake masatake commented Mar 14, 2024

In addition, this pull request allows you to fill out a field for a foreign tag from optscript.

  • testing more with broken input

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 87.36842% with 12 lines in your changes missing coverage. Please review.

Project coverage is 85.95%. Comparing base (5f8901a) to head (84bb07f).

Files with missing lines Patch % Lines
main/field.c 83.72% 7 Missing ⚠️
optlib/scss.c 0.00% 3 Missing ⚠️
main/options.c 0.00% 1 Missing ⚠️
main/script.c 96.96% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3960      +/-   ##
==========================================
+ Coverage   85.94%   85.95%   +0.01%     
==========================================
  Files         241      241              
  Lines       59144    59222      +78     
==========================================
+ Hits        50830    50904      +74     
- Misses       8314     8318       +4     

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

@masatake masatake marked this pull request as draft March 14, 2024 23:51
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from e14c4e6 to cbdc8c8 Compare March 15, 2024 03:29
@masatake
Copy link
Member Author

The ways to support boolean fields are not consistent in various aspects.

@masatake
Copy link
Member Author

f3246a2 and 1f073fc can be cherry-pick'ed.

@masatake
Copy link
Member Author

We can merge c428bd3 ... 9b3f25f.

d15cc30 needs a test case.

@masatake masatake force-pushed the main--foreign-fields branch from ae46592 to eba8b2e Compare August 30, 2024 14:22
@masatake
Copy link
Member Author

I added test cases. The top half of this pull request can be merged. I will make a pull request.

@masatake masatake force-pushed the main--foreign-fields branch from eba8b2e to c50fcca Compare August 30, 2024 18:37
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from 8f2f83d to 8ea0aa6 Compare January 2, 2025 15:38
@masatake masatake marked this pull request as ready for review January 2, 2025 16:28
@masatake
Copy link
Member Author

masatake commented Jan 2, 2025

This pull request was for a Texinfo parser.
However, this pull request may be useful for SCSS parser, too.

@masatake masatake force-pushed the main--foreign-fields branch from 8ea0aa6 to 7805e78 Compare January 2, 2025 17:12
@masatake masatake added this to the 6.2 milestone Jan 2, 2025
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from 4a62955 to b8b157f Compare January 2, 2025 21:16
@masatake masatake marked this pull request as draft January 22, 2025 16:28
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from 2996703 to a47f1bb Compare January 22, 2025 17:45
The operators (setter and/or getter) for each field.
The name of operators has following form:

	setter => <LANG>.<FIELD>:
	getter => :<LANG>.<FIELD>

The operators for a field are defined only if the field has setter
and getter in C language level; the operators require getValueObject
member and setValueObject member in fieldDefinition are set.
Currently, there is no parser specific field setting their members.
So, we cannot test the new code added with this commit.

In the later commit, I will implement a getter and a setter for fields
defined with --_fielddef option.

Signed-off-by: Masatake YAMATO <[email protected]>
…ned in an optlib parser

Signed-off-by: Masatake YAMATO <[email protected]>
@masatake masatake force-pushed the main--foreign-fields branch from a47f1bb to 0d32e66 Compare January 23, 2025 20:49
@masatake masatake marked this pull request as ready for review January 23, 2025 20:50
@masatake masatake force-pushed the main--foreign-fields branch from 0d32e66 to 84bb07f Compare January 24, 2025 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant