File: scr

package info (click to toggle)
jhdf 2.11.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 39,996 kB
  • ctags: 17,959
  • sloc: java: 100,416; ansic: 24,920; sh: 2,256; makefile: 957; cpp: 48
file content (17 lines) | stat: -rw-r--r-- 392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 "}"
}