Update README on details on OPLIST

This commit is contained in:
Patrick Pelissier committed 2019-11-21 06:27:32 +01:00
1 parent 7d802c03e5
commit 708d17a4d2
1 file changed
-9
-9
View File
@@ -556,15 +556,6 @@ Example:
If there is two operations with the same name in an oplist, the left one has the priority. This enables partial overriding.
Some pre-defined oplist exist:
* M\_DEFAULT\_OPLIST: Oplist for a C type (integer or float),
* M\_POD\_OPLIST: Oplist for a plain structure (not an array type),
* M\_A1\_OPLIST: Oplist for a structure defined as an array of size 1,
* M\_CLASSIC\_OPLIST(name): Oplist for a type that provides standard functions: name##\_init, name##\_init\_set, name##\_set, name##\_clear.
* M\_CSTR\_OPLIST: Oplist for a string represented by a const char pointer.
* M\_PTR\_OPLIST: Oplist for a plain pointer.
Oplists can be registered globally by defining, for the type 'type', a macro named
M\_OPL\_ ## type () that expands to the oplist of the type.
Only type without space in their name can be registered. A typedef of the type