File: NameInfo.rb

package info (click to toggle)
libconstantine-java 0.7-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 860 kB
  • ctags: 4,468
  • sloc: java: 5,562; ruby: 976; xml: 683; makefile: 41
file content (17 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'gen/ConstGenerator'
def gen_nameinfo_java(options)
  ConstGenerator.new 'platform.nameinfo', options do |cg|
    cg.include "sys/socket.h"
    cg.include "netdb.h"
    %w[
      NI_MAXHOST
      NI_MAXSERV
      NI_NOFQDN
      NI_NUMERICHOST
      NI_NAMEREQD
      NI_NUMERICSERV
      NI_DGRAM
      NI_WITHSCOPEID
    ].each {|c| cg.const c}
  end
end