anchor.diff:      if options.get("singleton"):
           print "option singleton is deprecated"
       print >>f
  +    if (pin_ptrs):
  +        print >>f, "RTAPI_TAG(HAL,HC_SMP_SAFE);"
   
       has_array = False
       for name, type, array, dir, value in pins:
  -        if array: has_array = True
  -    for name, type, array, dir, value in params:
           if array: has_array = True
   
       for type, name, default, doc in modparams:
  
positive.code: #include "rtapi_errno.h"
  #include "hal.h"
  #include "hal_priv.h"
  
  static int comp_id;
  """
  ##  pincount and iprefix are reserved instanceparam names
  ##
      global have_iprefix
      have_iprefix = False
      global iprefix_string
      iprefix_string = ""
  
      global maxpins
      maxpins = 0
      global have_maxpins
  
negative.code:             print >>f, "static char *%s = %s;" % (to_c(name), strng)
              print >>f, "RTAPI_MP_STRING(%s, \"Module string param '%s'\");\n" % (to_c(name), to_c(name))
  
  ################ struct declaration ###############################################################
  
  
  
      print >>f, "struct inst_data\n    {"
  
      for name, type, array, dir, value in pins:
          if array:
  