qa: update struct-flags coccinelle test

pull/2752/head
Eric Leblond 9 years ago committed by Victor Julien
parent 7a17b4acf5
commit 91d2809bca

@ -1,29 +1,29 @@
@flags@ @flags@
SignatureHeader *struct0; SignatureInitData *struct0;
identifier struct_flags0 =~ "^(?!SIG_FLAG).+"; identifier struct_flags0 =~ "^(?!SIG_FLAG_INIT_).+";
Signature *struct1; Signature *struct1;
identifier struct_flags1 =~ "^(?!SIG_FLAG).+"; identifier struct_flags1 =~ "^(?!SIG_FLAG).+";
Signature *struct2; Flow *struct2;
identifier struct_flags2 =~ "^(?!SIG_FLAG_INIT_).+"; identifier struct_flags2 =~ "^(?!FLOWFILE_).+";
Flow *struct3; Flow *struct3;
identifier struct_flags3 =~ "^(?!FLOW_).+"; identifier struct_flags3 =~ "^(?!FLOW_END_FLAG_).+";
TcpSegment *struct4; TcpStream *struct4;
identifier struct_flags4 =~ "^(?!SEGMENTTCP_FLAG).+"; identifier struct_flags4 =~ "^(?!STREAMTCP_STREAM_FLAG_).+";
TcpStream *struct5; TcpSession *struct5;
identifier struct_flags5 =~ "^(?!STREAMTCP_STREAM_FLAG_).+"; identifier struct_flags5 =~ "^(?!STREAMTCP_FLAG).+";
TcpSession *struct6; TcpStreamCnf *struct6;
identifier struct_flags6 =~ "^(?!STREAMTCP_FLAG).+"; identifier struct_flags6 =~ "^(?!STREAMTCP_INIT_).+";
Packet *struct7; Packet *struct7;
identifier struct_flags7 =~ "^(?!FLOW_PKT_).+"; identifier struct_flags7 =~ "^(?!FLOW_PKT_).+";
position p1; position p1;
@@ @@
( (
struct0->flags@p1 |= struct_flags0 struct0->init_flags@p1 |= struct_flags0
| |
struct0->flags@p1 & struct_flags0 struct0->init_flags@p1 & struct_flags0
| |
struct0->flags@p1 &= ~struct_flags0 struct0->init_flags@p1 &= ~struct_flags0
| |
struct1->flags@p1 |= struct_flags1 struct1->flags@p1 |= struct_flags1
| |
@ -31,17 +31,17 @@ struct1->flags@p1 & struct_flags1
| |
struct1->flags@p1 &= ~struct_flags1 struct1->flags@p1 &= ~struct_flags1
| |
struct2->init_flags@p1 |= struct_flags2 struct2->file_flags@p1 |= struct_flags2
| |
struct2->init_flags@p1 & struct_flags2 struct2->file_flags@p1 & struct_flags2
| |
struct2->init_flags@p1 &= ~struct_flags2 struct2->file_flags@p1 &= ~struct_flags2
| |
struct3->flags@p1 |= struct_flags3 struct3->flow_end_flags@p1 |= struct_flags3
| |
struct3->flags@p1 & struct_flags3 struct3->flow_end_flags@p1 & struct_flags3
| |
struct3->flags@p1 &= ~struct_flags3 struct3->flow_end_flags@p1 &= ~struct_flags3
| |
struct4->flags@p1 |= struct_flags4 struct4->flags@p1 |= struct_flags4
| |

Loading…
Cancel
Save