Skip to content

Conversation

@ixfd64
Copy link
Member

@ixfd64 ixfd64 commented Nov 26, 2025

Converted some hard-coded values to macros, to prepare for potential future changes.

I also made a few additional changes:

  • corrected mfaktc.ini to mfakto.ini in two places
  • used implicit conversion to fix two instances of C4108
    • also eliminates the need to evaluate wc2 - wc twice in myfnmatch.c

@ixfd64 ixfd64 requested review from N-Storm and brubsby November 26, 2025 07:07
@ixfd64 ixfd64 added the enhancement New feature or request label Nov 26, 2025
src/params.h Outdated
/* For worktodo.txt files */
#define MAX_LINE_LENGTH 100
/* settings related to worktodo.txt file */
#define WORKTODO_FILE "worktodo.txt"
Copy link
Member

Choose a reason for hiding this comment

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

I suggest leaving a comment here, that WORKTODO_FILE string length shouldn't exceed 50 characters (as per my_types.h)

Same for the other string constants for file names below.

@ixfd64 ixfd64 merged commit 1a68c71 into primesearch:master Nov 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants