Patrick Pelissier
5b89196cd7
Add macro TUPLE_DEF2_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
feb8b30048
Factorization of M_C(name, _t)
2020-10-03 14:07:14 +02:00
Patrick Pelissier
b3a1a75f6f
Rename internal types:
...
a suffix ending with _ct means confidential type
ans is reserved for M*LIB internal usage.
OPLIST doesn't use the external types
but rather the internal types.
It enables to be independent of the real names
of the external types.
Such external names are planned to be fully customizable
(i.e. the user may define a name that suits its coding style)
2020-10-03 14:07:14 +02:00
Patrick Pelissier
f4cd8eaff9
Rename internal macro to TUPLEI_
2020-07-25 18:01:34 +02:00
Patrick Pelissier
2cd5258f89
Add comments
...
Replace TAB by SPACE.
2020-07-25 17:54:01 +02:00
Patrick Pelissier
8a36b5ff15
Workaround to avoid CLANG unused function warnings
2020-07-09 22:14:00 +02:00
Patrick Pelissier
ef74f8eb55
Fix other warnings about conversion but in C++
2020-06-14 01:10:37 +02:00
Patrick Pelissier
9c723da768
Change format of errror on oplist
...
This is to enable M_GLOBAL_OPLIST_OR_DEF to properly expand the erroneous oplist to the backend generator, that will report the error.
As such the erreneous oplist is surrounded by two pairs of brackets (())
2020-05-30 17:54:22 +02:00
Patrick Pelissier
92bddcaab4
Fix preprocessing issue
...
in case of recursive tuple or variant.
2020-05-30 12:13:43 +02:00
Patrick Pelissier
7761fb6bf1
Add contract for tuple & variant.
2020-05-24 19:08:18 +02:00
Patrick Pelissier
3885cb29a2
Add control of type and oplists
2020-05-17 11:53:27 +02:00
Patrick Pelissier
3cde7a1731
Add protection for use of oplist within a container oplist
2020-05-15 21:46:03 +02:00
Patrick Pelissier
6774afd751
Add checks of missing oplist in the last _DEF macros
2020-05-11 20:54:50 +02:00
Patrick Pelissier
4f7b0b9455
Happy new year 2020
2020-01-04 15:41:06 +01:00
Patrick Pelissier
90f248fbe8
Rename interface field of serial object into m_interface (WINDOWS compatibility as it defines a macro called interface)
2019-12-06 21:13:37 +01:00
Patrick Pelissier
0a99814ce2
Fix comments
2019-08-06 20:47:24 +02:00
Patrick Pelissier
60a10eb799
Uniformize the macro names
2019-06-09 12:02:38 +02:00
Patrick Pelissier
05a68157bc
Add local argument to serial interface to enable serial interface to create local parameters if needed (for example for serial binary)
2019-05-18 11:17:14 +02:00
Patrick Pelissier
12ba563416
Add assertions
2019-05-18 11:17:14 +02:00
Patrick Pelissier
b525723084
Implement Serial Json Read tuple
2019-05-18 11:17:13 +02:00
Patrick Pelissier
6c7ff1c723
Update/fix bugs
2019-05-18 11:17:13 +02:00
Patrick Pelissier
3b2aad1b2e
Export new methods for tuple
2019-05-18 11:17:13 +02:00
Patrick Pelissier
5222fabf02
Add tuple support for serial
2019-05-18 11:17:13 +02:00
Patrick Pelissier
8b3a4a802c
Happy new year!
2019-01-02 18:12:07 +01:00
Patrick Pelissier
fd9d308b28
Allow tuple initilization in M_LET
2018-10-27 09:28:17 +02:00
Patrick Pelissier
546b756932
Port TUPLE & VARIANT to API transformation infrastructure.
2018-09-25 21:38:31 +02:00
Patrick Pelissier
3452b72add
Fix regression of M*LIB:
...
oplist of tuple/variant wasn't able to detect the default INIT creation
as no valid OPLIST was passed in the absence of OPLIST.
Give the explicit default OPLIST in this case.
2018-09-15 15:30:03 +02:00
Patrick Pelissier
2e3b312fab
Fix issue of recursive usage of M_GLOBAL_OPLIST_OR_DEF
...
Update the way to use the macro to avoid being limited by the
preprocessor limitation.
2018-09-14 20:57:55 +02:00
Patrick Pelissier
9c0724ddb9
Simplification.
2018-09-08 09:10:37 +02:00
Patrick Pelissier
ce948bd9ce
Make INIT optional for TUPLE.
2018-09-08 09:02:54 +02:00
Patrick Pelissier
c9ebedb01f
Rename _get_ methods for tuple & variants into _get_at_ methods.
...
Add _cget_at_ methods too.
2018-08-21 23:58:03 +02:00
Patrick Pelissier
8f85c71654
Rename some internal macros to a better name.
2018-08-21 22:15:11 +02:00
Patrick Pelissier
6ef9936e24
Fix issue of recusrive definition of TUPLE using GLOBAL oplist:
...
There was a recursive call of M_REDUCE2 that fails to expand properly on its second invocation
Rewrite fully how global oplists are implemented:
it performs a first pass to expand the oplists, and the a separate pass to define the functions.
This enables to separate the pass, and use M_REDUCE2 in both.
2018-08-19 08:28:17 +02:00
Patrick Pelissier
0046157862
Fix issue for SWAP method not exported correctly for tuple.
2018-08-14 08:00:16 +02:00
Patrick Pelissier
acbf1efad6
Fix issue: CLEAN method was not properly exported by tuple.
2018-08-14 07:58:37 +02:00
Patrick Pelissier
c52c41c885
Export CLEAN method for tuple if it is defined.
2018-08-13 20:14:37 +02:00
Patrick Pelissier
822f9aacf6
Add CLEAN method for tuple.
2018-08-13 20:05:32 +02:00
Patrick Pelissier
7d83603646
TUPLE: Oplist is now optional for tuple definition.
2018-08-06 23:20:02 +02:00
Patrick Pelissier
96202aa78f
Do not use reserved identifiers of the C standard (See 7.1.3 Reserved identifiers)
2018-07-14 14:35:14 +02:00
Patrick Pelissier
cd1d59264e
Fix build issue with C++
2018-06-29 22:50:41 +02:00
Patrick Pelissier
e16d352e71
Fix prototype (forgot const)
2018-06-29 19:41:20 +02:00
Patrick Pelissier
dc92ad9c02
Fix compatbility issue with C++ which doesn't support
...
compound literal...
2018-05-21 23:00:48 +02:00
Patrick Pelissier
281f567d97
Add proper usage of const.
2018-05-19 11:10:09 +02:00
Patrick Pelissier
1a3cd2f626
Add experimental support for cmp function with user define order.
2018-05-16 22:36:26 +02:00
Patrick Pelissier
dcd300211f
Add methods _cmp_field for tuples.
2018-05-14 22:29:58 +02:00
Patrick Pelissier
1bf80cf315
Add function _parse_str
2018-05-03 13:37:19 +02:00
Patrick Pelissier
ac5b689950
Add method _set2 for tuple.
2018-04-30 20:00:26 +02:00
Patrick Pelissier
210e05f7fc
Update copyright to 2018
2018-01-29 20:28:30 +01:00
Patrick Pelissier
2e564088b0
Simplify the inclusion of headers.
2017-09-16 10:14:45 +02:00
Patrick Pelissier
44cdfa0c77
Remove use of feof and ferror as it is not needed as the return of fgetc
...
is sufficent.
2017-08-19 21:05:55 +02:00