10 lines
187 B
Awk
10 lines
187 B
Awk
BEGIN{
|
|
print "static const char* const af_names[] = { "
|
|
}
|
|
!/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ {
|
|
printf " [%s] = \"%s\",\n", $1, $1
|
|
}
|
|
END{
|
|
print "};"
|
|
}
|