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

ENHANCED: Handle C++ functions in doc files' #1229

Closed
wants to merge 1 commit into from

Conversation

kamahen
Copy link
Member

@kamahen kamahen commented Feb 2, 2024

\cxxfuncref currently is the same as \cfuncref. It was useful for debugging doc2tex.pl; and it's possible that the definition will change in future.

This change depends on SWI-Prolog/packages-ltx2htm#5

man/doc2tex.pl Outdated
@@ -327,6 +341,7 @@
prolog_id_cont(CL),
{ atom_codes(Name, [C0|CL]) }.

prolog_id_cont(_) --> "(", !, { fail }.
Copy link
Member

Choose a reason for hiding this comment

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

Why is this? ( is not a Prolog id continue character, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a left-over from when I was using your original ordering of tr//2 rules.
I ended up re-ordering them, so that the identifier(...) stuff is done before detecting an atom -- otherwise, things such as PlTerm::unify_blob() weren't handled correctly.
It appears to be unnecessary (and a cut-fail isn't good style either).

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