Skip to content

refactor: move library Utils units to Misc and extract exceptions#101

Merged
Xor-el merged 1 commit into
masterfrom
refactor/reorg-misc-and-exceptions
Jul 21, 2026
Merged

refactor: move library Utils units to Misc and extract exceptions#101
Xor-el merged 1 commit into
masterfrom
refactor/reorg-misc-and-exceptions

Conversation

@Xor-el

@Xor-el Xor-el commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Relocate all HashLib/src/Utils units except HlpArrayUtils.pas into a new HashLib/src/Misc folder, and split the exception hierarchy out of HlpHashLibTypes into a dedicated HlpHashLibExceptions unit.

  • Move 10 units (HlpConverters, HlpBinaryPrimitives, HlpBitOperations, HlpHashLibTypes, HlpCpuFeatures, HlpX86SimdFeatures, HlpArmSimdFeatures, HlpSimdLevels, HlpArmHwCapProvider, HlpDarwinSysCtl) to src/Misc; HlpArrayUtils.pas stays in src/Utils.
  • Add HlpHashLibExceptions with the 9 E*HashLibException classes; trim them from HlpHashLibTypes (keeps PUInt64, array aliases, codepage init).
  • Add HlpHashLibExceptions to the uses clause of the 32 units that reference the exception classes.

Relocate all HashLib/src/Utils units except HlpArrayUtils.pas into a new
HashLib/src/Misc folder, and split the exception hierarchy out of
HlpHashLibTypes into a dedicated HlpHashLibExceptions unit.

- Move 10 units (HlpConverters, HlpBinaryPrimitives, HlpBitOperations,
  HlpHashLibTypes, HlpCpuFeatures, HlpX86SimdFeatures, HlpArmSimdFeatures,
  HlpSimdLevels, HlpArmHwCapProvider, HlpDarwinSysCtl) to src/Misc;
  HlpArrayUtils.pas stays in src/Utils.
- Add HlpHashLibExceptions with the 9 E*HashLibException classes; trim
  them from HlpHashLibTypes (keeps PUInt64, array aliases, codepage init).
- Add HlpHashLibExceptions to the uses clause of the 32 units that
  reference the exception classes.
@Xor-el
Xor-el merged commit 14e8d6c into master Jul 21, 2026
24 checks passed
@Xor-el
Xor-el deleted the refactor/reorg-misc-and-exceptions branch July 21, 2026 15:55
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.

1 participant