1 # This script generates api_id decode list header from api list
4 # cat api_names.txt | awk -f ./gen_api_id_mapping_header_list.awk > sample.h
5 # where api_names.txt is function name list file
10 print " * this file genereted by <swap-probe> project with cmd <make headers>"
13 print "#ifdef __cplusplus"
17 print "const char *api_id_list[] = {"
24 split(def, splited, "###")
25 if (splited[2] != ""){
29 printf "\"%-135s//%d %s\n", def, api_id, orig
36 print "#ifdef __cplusplus"