svghmi/svghmi.py
changeset 3863 b076f52bd1c8
parent 3817 3deeda82636a
child 3875 6d65508a059e
equal deleted inserted replaced
3862:ef434ea0bcec 3863:b076f52bd1c8
   203                 buf_index += sz
   203                 buf_index += sz
   204                 item_count += 1
   204                 item_count += 1
   205                 if len(node.path) == 1:
   205                 if len(node.path) == 1:
   206                     extern_variables_declarations += [
   206                     extern_variables_declarations += [
   207                         "extern __IEC_" + node.iectype + "_" +
   207                         "extern __IEC_" + node.iectype + "_" +
   208                         "t" if node.vartype is "VAR" else "p"
   208                         "t" if node.vartype == "VAR" else "p"
   209                         + node.cpath + ";"]
   209                         + node.cpath + ";"]
   210 
   210 
   211         assert(found_heartbeat)
   211         assert(found_heartbeat)
   212 
   212 
   213         # TODO : filter only requiered external declarations
   213         # TODO : filter only requiered external declarations