Former-commit-id:133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly06a8b51d6d
[formerly9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:377dcd10b9
[formerly3360eb6c5f
] Former-commit-id:8e80217e59
17 lines
392 B
Text
17 lines
392 B
Text
BEGIN {
|
|
print "#include <stdio.h>"
|
|
print "#include <hdf5.h>"
|
|
print
|
|
print "main()"
|
|
print "{"
|
|
print "\t\/\* AUTOMATICALY GENERATE CONSTANTS */"
|
|
print "\t\/\* paste into HDFConstants.java */"
|
|
print
|
|
print "\tprintf(\"\t\/\*AUTOMATICALLY GENERATED CONSTANTS\*\/ \\n\");"
|
|
}
|
|
{print "\tprintf(\"\tfinal static public int "$1" = %d;\\n\", (int)"$1");"}
|
|
END{
|
|
print ""
|
|
print "\treturn 0;"
|
|
print "}"
|
|
}
|