Skip to content

Revision of refactor_main branch#211

Merged
JanCBrammer merged 7 commits intodevfrom
refactor_main_revision
May 6, 2026
Merged

Revision of refactor_main branch#211
JanCBrammer merged 7 commits intodevfrom
refactor_main_revision

Conversation

@djb-rwth
Copy link
Copy Markdown
Collaborator

@djb-rwth djb-rwth commented Apr 26, 2026

As detected by @nnuk, PR #182 has caused a lot of issues, and I am not sure how the CLI (i.e. inchi-1) version sub-project even managed to compile:

  1. CLI sub-project could not be compiled in MS Visual Studio and/or MS Windows platforms at all; some functions specific for MS Windows platforms had to be moved back to ichimain.c.
  2. Some files which are not used in API were moved to INCHI-BASE/src folder without apparent reason; their corresponding functions have been rewritten again in API files. This is especially conspicuous in the case of ichimain.c, which used to be the starting script for CLI version sub-project until now.
  3. ichimain.h and ichimain.c have almost very little in common, which contributes to issue mentioned in item 2. even more.
  4. makefile/makefile32 had to be updated with newly added files, which had not been done in PR Refactor main #182.
  5. MS Visual Studio solution/project files have been updated.
  6. _getch() function platform-specific issues have been resolved.
  7. Ultimately, main.c has been renamed to inchi_main_cli.c to indicate that it is the main script for CLI sub-project only.

@JanCBrammer JanCBrammer force-pushed the dev branch 2 times, most recently from c43dd48 to 4a81ee7 Compare April 28, 2026 12:29
Copy link
Copy Markdown
Collaborator

@nnuk nnuk left a comment

Choose a reason for hiding this comment

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

I’ve pulled in your latest changes, and everything is now building and running smoothly on my end. The restructuring around main and the associated system files seems to have resolved the earlier inconsistencies we were encountering with the Visual Studio project setup and source layout.

Thanks for putting in the effort to clean this up 👍.

@JanCBrammer JanCBrammer force-pushed the refactor_main_revision branch from a29613f to 2c0d6db Compare May 6, 2026 11:55
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Unit Test Coverage Report

Coverage Regression Summary

Metric PR (%) Base (%) Difference (pp)
Lines 18.1 18.1 +0.00
Branches 11.8 11.8 +0.00

Find details on the base coverage at https://iupac-inchi.github.io/InChI/coverage/index.html

Find details on this PR's coverage by downloading coverage-reports-25433707179 and opening html/index.html

@JanCBrammer JanCBrammer merged commit 337be40 into dev May 6, 2026
3 checks passed
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.

3 participants