Hello,

i am still using n-words ( line numbers, old habbits die hard ).

However when the line contains o-words, currently (2.3.1) no other words
may be present.

The attached small patch to Interp::read_items allows o-words with
n-words without changing any other behaviour (methinks).

Would you mind including it into the main source tree ?

Sorry to put this on the main user list, but i do not know who to ask
specifically for this. I have more small code changes for the rs274x
interpreter, who is the right person to talk to ?

Thanks
BR
Max


--- src/emc/rs274ngc/interp_read.cc_orig        2009-06-29
14:10:57.000000000 +0200
+++ src/emc/rs274ngc/interp_read.cc     2009-06-29 14:15:44.000000000 +0200
@@ -787,6 +787,10 @@
   if (line[counter] == '/')     /* skip the slash character if first */
     counter++;

+  if (line[counter] == 'n') {
+    CHP(read_n_number(line, &counter, block));
+  }
+
   if (line[counter] == 'o')
  /* Handle 'o' explicitly here. Default is
     to read letters via pointer calls to related
@@ -801,11 +805,7 @@
       // if we are skipping, do NOT evaluate non-olines
       return INTERP_OK;
   }
-  else if (line[counter] == 'n')
-  {

-    CHP(read_n_number(line, &counter, block));
-  }
   for (; counter < length;) {
     CHP(read_one_item(line, &counter, block, parameters));
   }




------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to