]> www.ginac.de Git - cln.git/blob - src/base/proplist/cl_pl_add.cc
Initial revision
[cln.git] / src / base / proplist / cl_pl_add.cc
1 // class cl_property_list.
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_proplist.h"
8
9
10 // Implementation.
11
12 #include "cl_abort.h"
13
14 // This tells the compiler to put the `cl_property' vtable into this file.
15 void cl_property::dummy () {}
16
17 void cl_property_list::add_property (cl_property* new_property)
18 {
19         if (new_property->next)
20                 cl_abort();
21         new_property->next = list;
22         list = new_property;
23 }