uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

rpc.x (510B)


      1 struct arg_arr {
      2 	int	n;
      3 	int	arr<>;
      4 };
      5 
      6 struct arg_prod {
      7 	float	a;
      8 	struct arg_arr arr;
      9 };
     10 
     11 struct minmax {
     12 	int	arr<2>;
     13 };
     14 
     15 struct float_arr {
     16 	float	arr<>;
     17 };
     18 
     19 program calc_avg_PROG {
     20 	version calc_avg_VERS {
     21 		float calc_avg(arg_arr) = 1;
     22 	} = 1;
     23 } = 0x20000000;
     24 
     25 program calc_minmax_PROG {
     26 	version calc_minmax_VERS {
     27 		struct minmax calc_minmax(arg_arr) = 1;
     28 	} = 1;
     29 } = 0x20000001;
     30 
     31 program calc_prod_PROG {
     32 	version calc_prod_VERS {
     33 		struct float_arr calc_prod(arg_prod) = 1;
     34 	} = 1;
     35 } = 0x20000002;