Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
1 N..... USE_LENGTH_UNITS(CANON_UNITS_MM)
2 N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
3 N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
4 N..... SET_XY_ROTATION(0.0000)
5 N..... SET_FEED_REFERENCE(CANON_XYZ)
6 N..... ON_RESET()
7 N..... COMMENT("Test: numbered sub after named endsub in same file should error")
8 N..... MESSAGE(" sequential main: 7.000000 8.000000 9.000000")
9 N..... ON_RESET()

View File

@@ -0,0 +1,9 @@
o<sequential> sub
(DEBUG, sequential main: #1 #2 #3)
o200 call [4] [5] [6]
o<sequential> endsub
o200 sub
(DEBUG, o200 helper: #1 #2 #3)
o200 endsub
M2

View File

@@ -0,0 +1,2 @@
[RS274NGC]
SUBROUTINE_PATH=subs

View File

@@ -0,0 +1,3 @@
(Test: numbered sub after named endsub in same file should error)
o<sequential> call [7] [8] [9]
M2

View File

@@ -0,0 +1,5 @@
#!/bin/bash -e
# Numbered sub called from within a named sub file, where no matching
# file exists, must produce an error (forward-seek blocked).
# Regression test for LinuxCNC/linuxcnc#3880.
! rs274 -g -i test.ini test.ngc