Changeset 906


Ignore:
Timestamp:
Dec 15, 2003, 9:33:09 PM (22 years ago)
Author:
bird
Message:

As parameters

Location:
trunk/testcase
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/testcase/570c.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r905 r906  
    8484
    8585
     86/*
     87 * Parameters.
     88 */
     89int ParamArgs(
     90    void    (* _System pfn1Void)(int a, int b, int c, int d),
     91    void *  (* _System pfn1PVoid)(int a, int b, int c, int d),
     92    int     (* _System pfn1Int)(int a, int b, int c, int d),
     93    PTYPE   (* _System pfn1PType)(int a, int b, int c, int d),
     94    void    (_System * pfn2Void)(int a, int b, int c, int d),
     95    void *  (_System * pfn2PVoid)(int a, int b, int c, int d),
     96    int     (_System * pfn2Int)(int a, int b, int c, int d),
     97    PTYPE   (_System * pfn2PType)(int a, int b, int c, int d)
     98    )
     99{
     100    pfn1Void(1,2,3,4);
     101    pfn1PVoid(1,2,3,4);
     102    pfn1Int(1,2,3,4);
     103    pfn1PType(1,2,3,4);
     104
     105    pfn2Void(1,2,3,4);
     106    pfn2PVoid(1,2,3,4);
     107    pfn2Int(1,2,3,4);
     108    pfn2PType(1,2,3,4);
     109    return 0;
     110}
     111
     112
    86113
    87114int DoC(int a, int b, int c, int d)
     
    172199    PVar2PType(1,2,3,4);
    173200
     201    /* parameters */
     202    ParamArgs(Void, PVoid, Int, PType,
     203              Void, PVoid, Int, PType);
     204
     205
    174206    return 0;
    175207}
  • trunk/testcase/570main.cpp

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r905 r906  
    116116
    117117
     118/*
     119 * Parameters.
     120 */
     121int ParamArgs(
     122    void    (* _System pfn1Void)(int a, int b, int c, int d),
     123    void *  (* _System pfn1PVoid)(int a, int b, int c, int d),
     124    int     (* _System pfn1Int)(int a, int b, int c, int d),
     125    PTYPE   (* _System pfn1PType)(int a, int b, int c, int d),
     126    void    (_System * pfn2Void)(int a, int b, int c, int d),
     127    void *  (_System * pfn2PVoid)(int a, int b, int c, int d),
     128    int     (_System * pfn2Int)(int a, int b, int c, int d),
     129    PTYPE   (_System * pfn2PType)(int a, int b, int c, int d)
     130    )
     131{
     132    pfn1Void(1,2,3,4);
     133    pfn1PVoid(1,2,3,4);
     134    pfn1Int(1,2,3,4);
     135    pfn1PType(1,2,3,4);
     136
     137    pfn2Void(1,2,3,4);
     138    pfn2PVoid(1,2,3,4);
     139    pfn2Int(1,2,3,4);
     140    pfn2PType(1,2,3,4);
     141    return 0;
     142}
     143
    118144
    119145
     
    222248    PVar2PType(1,2,3,4);
    223249
     250    /* parameters */
     251    ParamArgs(Void, PVoid, Int, PType,
     252              Void, PVoid, Int, PType);
     253
     254
    224255    /* test C stuff */
    225256    DoC();
  • trunk/testcase/572c.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r905 r906  
    8484
    8585
     86/*
     87 * Parameters.
     88 */
     89int ParamArgs(
     90    void    (* _Optlink pfn1Void)(int a, int b, int c, int d),
     91    void *  (* _Optlink pfn1PVoid)(int a, int b, int c, int d),
     92    int     (* _Optlink pfn1Int)(int a, int b, int c, int d),
     93    PTYPE   (* _Optlink pfn1PType)(int a, int b, int c, int d),
     94    void    (_Optlink * pfn2Void)(int a, int b, int c, int d),
     95    void *  (_Optlink * pfn2PVoid)(int a, int b, int c, int d),
     96    int     (_Optlink * pfn2Int)(int a, int b, int c, int d),
     97    PTYPE   (_Optlink * pfn2PType)(int a, int b, int c, int d)
     98    )
     99{
     100    pfn1Void(1,2,3,4);
     101    pfn1PVoid(1,2,3,4);
     102    pfn1Int(1,2,3,4);
     103    pfn1PType(1,2,3,4);
     104
     105    pfn2Void(1,2,3,4);
     106    pfn2PVoid(1,2,3,4);
     107    pfn2Int(1,2,3,4);
     108    pfn2PType(1,2,3,4);
     109    return 0;
     110}
     111
     112
    86113int DoC(int a, int b, int c, int d)
    87114{
     
    170197    PVar2PType(1,2,3,4);
    171198
     199    /* parameters */
     200    ParamArgs(CVoid, CPVoid, CInt, CPType,
     201              CVoid, CPVoid, CInt, CPType);
     202
    172203    return 0;
    173204}
  • trunk/testcase/572main.cpp

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r905 r906  
    118118
    119119
     120/*
     121 * Parameters.
     122 */
     123int ParamArgs(
     124    void    (* _Optlink pfn1Void)(int a, int b, int c, int d),
     125    void *  (* _Optlink pfn1PVoid)(int a, int b, int c, int d),
     126    int     (* _Optlink pfn1Int)(int a, int b, int c, int d),
     127    PTYPE   (* _Optlink pfn1PType)(int a, int b, int c, int d),
     128    void    (_Optlink * pfn2Void)(int a, int b, int c, int d),
     129    void *  (_Optlink * pfn2PVoid)(int a, int b, int c, int d),
     130    int     (_Optlink * pfn2Int)(int a, int b, int c, int d),
     131    PTYPE   (_Optlink * pfn2PType)(int a, int b, int c, int d)
     132    )
     133{
     134    pfn1Void(1,2,3,4);
     135    pfn1PVoid(1,2,3,4);
     136    pfn1Int(1,2,3,4);
     137    pfn1PType(1,2,3,4);
     138
     139    pfn2Void(1,2,3,4);
     140    pfn2PVoid(1,2,3,4);
     141    pfn2Int(1,2,3,4);
     142    pfn2PType(1,2,3,4);
     143    return 0;
     144}
     145
     146
    120147extern "C" int DoC(void);
    121148int main(void)
     
    222249    PVar2PType(1,2,3,4);
    223250
     251    /* parameters */
     252    ParamArgs(Void, PVoid, Int, PType,
     253              Void, PVoid, Int, PType);
     254
    224255    /* test C stuff */
    225256    DoC();
Note: See TracChangeset for help on using the changeset viewer.