Standardise ASM include path slash use #431

Open
opened 2026-04-20 07:45:28 +00:00 by ace-dent · 1 comment
Member

FASM on Windows supports both forward- and back-slashes as path separators. Forward slashes should be preferred.
include 'example/good' -vs- include 'example\bad'.

In FASM strings, the backslash can act as an escape character in some contexts. Forward slashes avoid this entirely and are portable across platforms, and match our tupfiles. BONUS: Makes searching for file usage more consistent! (e.g. git grep "example/good")

  • Add this rule to Kernel style documents, including the wiki and elsewhere(?)
  • Update the CI Python script for Kernel style checking.
  • Update all assembly files.
FASM on Windows supports both forward- and back-slashes as path separators. Forward slashes should be preferred. `include 'example/good'` -vs- `include 'example\bad'`. In FASM strings, the backslash can act as an escape character in some contexts. Forward slashes avoid this entirely and are portable across platforms, and match our tupfiles. BONUS: Makes searching for file usage more consistent! (e.g. `git grep "example/good"`) - [ ] Add this rule to Kernel style documents, including the [wiki](https://wiki.kolibrios.org/wiki/Style) and elsewhere(?) - [ ] Update the CI Python script for Kernel style checking. - [ ] Update all assembly files.
ace-dent added the
Kind
Documentation
Influence/Text/TYPO
Priority
Low
labels 2026-04-20 07:45:28 +00:00
Author
Member

Open to whether we should also prefer single or double quotes ?...

Open to whether we should also prefer single or double quotes ?...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#431