2021-08-09 09:15:42 +00:00
|
|
|
BEGIN { FS="\"" }
|
|
|
|
|
|
|
|
function process(line, second) {
|
2021-08-09 23:40:05 +00:00
|
|
|
if (line ~ /^#include[ \t]*".+"[ \t\r]*$/) {
|
2021-08-09 09:15:42 +00:00
|
|
|
while (getline < second) {
|
|
|
|
process($0, $2)
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
print line
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
{ process($0, $2) }
|