| 123 | |
| 124 | |
| 125 | int |
| 126 | TypeSpec::new_struct (StructSpec *n) |
| 127 | { |
| 128 | std::vector<std::shared_ptr<StructSpec> > & m_structs (struct_list()); |
| 129 | if (m_structs.size() == 0) |
| 130 | m_structs.resize (1); // Allocate an empty one |
| 131 | m_structs.push_back (std::shared_ptr<StructSpec>(n)); |
| 132 | return (int)m_structs.size()-1; |
| 133 | } |
| 134 | |
| 135 | |
| 136 |