File: create

package info (click to toggle)
openblas 0.3.30%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,164 kB
  • sloc: asm: 1,261,430; ansic: 416,437; fortran: 74,453; makefile: 13,677; sh: 4,917; perl: 4,575; python: 1,555; cpp: 244
file content (22 lines) | stat: -rwxr-xr-x 344 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

count=0

for arg in "$@"; do
    printf "#define\tinterface_%s\t\t%d\n" "$arg" "$count"
    count=`expr $count + 1`
done

printf "#ifdef USE_FUNCTABLE\n"

printf "#define MAX_PROF_TABLE %d\n" "$count"

printf "static char *func_table[] = {\n"

for arg in "$@"; do
    printf "\"%s\",\n" "$arg"
done

printf "};\n"
printf "#endif\n"