equal
deleted
inserted
replaced
58 |
58 |
59 public: |
59 public: |
60 static symbol_c *get_id (symbol_c *datatype); /* get the identifier (name) of the datatype); returns NULL if anonymous datatype! Does not work for elementary datatypes!*/ |
60 static symbol_c *get_id (symbol_c *datatype); /* get the identifier (name) of the datatype); returns NULL if anonymous datatype! Does not work for elementary datatypes!*/ |
61 static const char *get_id_str(symbol_c *datatype); /* get the identifier (name) of the datatype); returns NULL if anonymous datatype! */ |
61 static const char *get_id_str(symbol_c *datatype); /* get the identifier (name) of the datatype); returns NULL if anonymous datatype! */ |
62 |
62 |
63 static symbol_c *get_struct_field_type_id (symbol_c *struct_datatype, symbol_c *struct_fieldname); |
63 static symbol_c *get_struct_field_type_id (symbol_c *struct_datatype, symbol_c *struct_fieldname); // returns datatype of a field in a structure |
|
64 static symbol_c *get_array_storedtype_id (symbol_c *type_symbol); // returns the datatype of the variables stored in the array |
64 static symbol_c *get_ref_to (symbol_c *type_symbol); // Defined in IEC 61131-3 v3 (returns the type that is being referenced/pointed to) |
65 static symbol_c *get_ref_to (symbol_c *type_symbol); // Defined in IEC 61131-3 v3 (returns the type that is being referenced/pointed to) |
65 |
66 |
66 /* Returns true if both datatypes are equivalent (not necessarily equal!). |
67 /* Returns true if both datatypes are equivalent (not necessarily equal!). |
67 * WARNING: May return true even though the datatypes are not the same/identicial!!! |
68 * WARNING: May return true even though the datatypes are not the same/identicial!!! |
68 * This occurs when at least one of the datatypes is of a generic |
69 * This occurs when at least one of the datatypes is of a generic |