salut tous le monde
j'ai un programme (n'est écrit par moi ,il est généré par Tau-SDL)
voila la partie du programme qui définie une macro C:
à partir du fichier vms_macro.h
===================================
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 #define SEQUENCE_TYPE_DEF(specifier, typename, isextmarker, root, noptdef, nextadd, \ m_root1, root1, m_extadd, extadd, m_root2, root2, \ vrtype) \ m_root1(typename, ##root1, 1) \ m_extadd(typename, ##extadd, 2) \ m_root2(typename, ##root2, 3) \ specifier tASN1Sequence typename = \ { \ type_ASN1_SEQUENCE \ VMS_VRTYPEC VMS_VRTYPE((const tVMSPointer)&vrtype) \ VMS_NAMESC VMS_NAMES((char*)#typename), \ m_root1##_REF(typename, 1), \ m_extadd##_REF(typename, 2), \ m_root2##_REF(typename, 3), \ (root << 4) | isextmarker, \ (sizeof(m_root1##_REF(typename, 1)) / sizeof(tASN1Component)), \ (sizeof(m_extadd##_REF(typename, 2)) / sizeof(tASN1Component)), \ (sizeof(m_root2##_REF(typename, 3)) / sizeof(tASN1Component)) \ VMS_PERC VMS_PER(noptdef) \ VMS_PERC VMS_PER(nextadd) \ }
à partie du fichier RFC1157_SNMP_asn1coder.c
--------------------
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 SEQUENCE_TYPE_DEF(GLOBAL_INFO,yASN1_Message,EXTMARKER_ABSENT,NONE_ROOT,0,0, PRESENT_LIST,ROOT_COMPONENTS( REQUIRED_COMPONENT(yASN1_Message,version,TAGGED_OR_DIRECT_REF(yASN1_INTEGER,yASN1_INTEGER),0) VMS_COMMA REQUIRED_COMPONENT(yASN1_Message,community,TAGGED_OR_DIRECT_REF(yASN1_OCTET_STRING,yASN1_OCTET_STRING),1) VMS_COMMA REQUIRED_COMPONENT(yASN1_Message,data,TAGGED_OR_DIRECT_REF(yASN1_PDUs,yASN1_PDUs),2) ), ABSENT_LIST,ROOT_COMPONENTS(EMPTY_LIST), ABSENT_LIST,ROOT_COMPONENTS(EMPTY_LIST), VR_SEQUENCE(ySDL_Message) );
lorsque je compile j'ai des erreurs comme suit:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 RFC1157_SNMP_asn1coder.c:85:1: pasting "," and "ROOT_COMPONENTS" does not give a valid preprocessing token
Partager