Sha256: 393db2c4e372e84d0c7fe73cc7eaed0f1e7a006a1b9ea36fa010d46367c3a477

Contents?: true

Size: 328 Bytes

Versions: 35

Compression:

Stored size: 328 Bytes

Contents

#!/usr/bin/env ruby

Dir.chdir(File.dirname($0))

f = File.open("const.cstub", "w")

IO.readlines("const.def").each { |name|
  name.sub(/^#.*/, "")
  name.strip!
  next if name.empty?

  f.write <<CODE
#if defined(#{name})#{name.start_with?('IPPROTO_') ? ' || defined(_WINSOCKAPI_)' : ''}
  define_const(#{name});
#endif
CODE
}

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
esruby-0.1.0 resources/mruby/mrbgems/mruby-socket/src/gen.rb
esruby-0.0.11 resources/mruby/mrbgems/mruby-socket/src/gen.rb
esruby-0.0.10 resources/mruby/mrbgems/mruby-socket/src/gen.rb
esruby-0.0.9 resources/mruby/mrbgems/mruby-socket/src/gen.rb
esruby-0.0.8 resources/mruby/mrbgems/mruby-socket/src/gen.rb
esruby-0.0.7 resources/mruby/mrbgems/mruby-socket/src/gen.rb
esruby-0.0.6 resources/mruby/mrbgems/mruby-socket/src/gen.rb
esruby-0.0.5 resources/mruby/mrbgems/mruby-socket/src/gen.rb
esruby-0.0.3 resources/mruby/mrbgems/mruby-socket/src/gen.rb
esruby-0.0.2 resources/mruby/mrbgems/mruby-socket/src/gen.rb
esruby-0.0.0 resources/mruby/mrbgems/mruby-socket/src/gen.rb
script_core-0.0.4 ext/enterprise_script_service/mruby/mrbgems/mruby-socket/src/gen.rb
script_core-0.0.3 ext/enterprise_script_service/mruby/mrbgems/mruby-socket/src/gen.rb
script_core-0.0.2 ext/enterprise_script_service/mruby/mrbgems/mruby-socket/src/gen.rb
script_core-0.0.1 ext/enterprise_script_service/mruby/mrbgems/mruby-socket/src/gen.rb