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,35 @@
// gcmc include file
// ensure gcmc units mode agrees with g20,g21 at runtime
// in case a preamble conflicts with gcmc program
if (ismodemm()) {
if (isdefined("verbose") && verbose == 1) {
literal("\
o1 if [#<_metric> ne 1]\n\
(debug, !!!ensure_units.gcmc: set g21)\n\
g21\n\
o1 endif\n\
");
} else {
literal("\
o1 if [#<_metric> ne 1]\n\
g21\n\
o1 endif\n\
");
}
} else {
if (isdefined("verbose") && verbose == 1) {
literal("\
o1 if [#<_imperial> ne 1]\n\
(debug, !!!ensure_units.gcmc: set g20)\n\
g20\n\
o1 endif\n\
");
} else {
literal("\
o1 if [#<_imperial> ne 1]\n\
g20\n\
o1 endif\n\
");
}
}