File: create

package info (click to toggle)
openblas 0.3.21%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 55,584 kB
  • sloc: asm: 1,192,251; ansic: 327,031; fortran: 74,421; makefile: 13,364; sh: 4,649; perl: 4,414; python: 661; 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"