3 # ------------------------------------------------
\r
4 # Copyright 2014 AT&T Intellectual Property
\r
5 # Licensed under the Apache License, Version 2.0 (the "License");
\r
6 # you may not use this file except in compliance with the License.
\r
7 # You may obtain a copy of the License at
\r
9 # http://www.apache.org/licenses/LICENSE-2.0
\r
11 # Unless required by applicable law or agreed to in writing, software
\r
12 # distributed under the License is distributed on an "AS IS" BASIS,
\r
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 # See the License for the specific language governing permissions and
\r
15 # limitations under the License.
\r
16 # -------------------------------------------
\r
18 open(I,"cat ../packet.h | grep '#define CSVELEMENTS' | cut -f 3 -d ' ' |");
\r
22 printf("#ifndef CSV_MACRO_H\n#define CSV_MACRO_H\n");
\r
23 for($x=1;$x<=$num;$x++) {
\r
24 printf "#define get_csv_uint_pos$x(X,Y) get_csv_uint((X),(Y),$x)\n";
\r
25 printf "#define get_csv_ullong_pos$x(X,Y) get_csv_ullong((X),(Y),$x)\n";
\r
26 printf "#define get_csv_ip_pos$x(X,Y) get_csv_ip((X),(Y),$x)\n";
\r
27 printf "#define get_csv_ipv6_pos$x(X,Y) get_csv_ipv6((X),(Y),$x)\n";
\r
28 printf "#define get_csv_string_pos$x(X,Y) get_csv_string((X),(Y),$x)\n";
\r
29 printf "#define get_csv_v_str_pos$x(X,Y) get_csv_string((X),(Y),$x)\n";
\r
30 printf "#define get_csv_bool_pos$x(X,Y) get_csv_bool((X),(Y),$x)\n";
\r
31 printf "#define get_csv_int_pos$x(X,Y) get_csv_int((X),(Y),$x)\n";
\r
32 printf "#define get_csv_llong_pos$x(X,Y) get_csv_llong((X),(Y),$x)\n";
\r
33 printf "#define get_csv_float_pos$x(X,Y) get_csv_float((X),(Y),$x)\n";
\r