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,8 @@
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: nested sub definition inside named sub should error")
8 N..... ON_RESET()

View File

@@ -0,0 +1,7 @@
o<nested> sub
o100 sub
(DEBUG, inner o100: #1 #2 #3)
o100 endsub
o100 call [4] [5] [6]
o<nested> endsub
M2

View File

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

View File

@@ -0,0 +1,3 @@
(Test: nested sub definition inside named sub should error)
o<nested> call [7] [8] [9]
M2

View File

@@ -0,0 +1,4 @@
#!/bin/bash -e
# Nested sub definition inside a called named sub must produce an error.
# Regression test for LinuxCNC/linuxcnc#3880.
! rs274 -g -i test.ini test.ngc