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