Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
** Invoke shotgun/main.c (first_time, not_needed) ** Execute build:shotgun ** Invoke build:platform (first_time) ** Invoke runtime/platform.conf (first_time) ** Invoke Rakefile (first_time, not_needed) ** Invoke rakelib/struct_generator.rb (first_time, not_needed) ** Execute runtime/platform.conf #include <stdio.h> #include <sys/socket.h> #include <netdb.h> #include <stddef.h> int main(int argc, char **argv) { printf("%s %u %u\n", "ai_flags", (unsigned int)offsetof(struct addrinfo, ai_fl ags), (unsigned int)sizeof(((struct addrinfo*)0)->ai_flags)); printf("%s %u %u\n", "ai_family", (unsigned int)offsetof(struct addrinfo, ai_f amily), (unsigned int)sizeof(((struct addrinfo*)0)->ai_family)); printf("%s %u %u\n", "ai_socktype", (unsigned int)offsetof(struct addrinfo, ai _socktype), (unsigned int)sizeof(((struct addrinfo*)0)->ai_socktype)); printf("%s %u %u\n", "ai_protocol", (unsigned int)offsetof(struct addrinfo, ai _protocol), (unsigned int)sizeof(((struct addrinfo*)0)->ai_protocol)); printf("%s %u %u\n", "ai_addrlen", (unsigned int)offsetof(struct addrinfo, ai_ addrlen), (unsigned int)sizeof(((struct addrinfo*)0)->ai_addrlen)); printf("%s %u %u\n", "ai_addr", (unsigned int)offsetof(struct addrinfo, ai_add r), (unsigned int)sizeof(((struct addrinfo*)0)->ai_addr)); printf("%s %u %u\n", "ai_canonname", (unsigned int)offsetof(struct addrinfo, a i_canonname), (unsigned int)sizeof(((struct addrinfo*)0)->ai_canonname)); printf("%s %u %u\n", "ai_next", (unsigned int)offsetof(struct addrinfo, ai_nex t), (unsigned int)sizeof(((struct addrinfo*)0)->ai_next)); return 0; } /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0: In function `main ': /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:8: error: derefere ncing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:8: error: derefere ncing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:9: error: derefere ncing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:9: error: derefere ncing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:10: error: derefer $ /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:10: error: derefer encing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:11: error: derefer encing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:11: error: derefer encing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:12: error: derefer encing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:12: error: derefer encing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:13: error: derefer encing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:13: error: derefer encing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:14: error: derefer encing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:14: error: derefer encing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:15: error: derefer encing pointer to incomplete type /cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:15: error: derefer encing pointer to incomplete type #include <stdio.h> #include <dirent.h> #include <stddef.h> int main(int argc, char **argv) { printf("%s %u %u\n", "d_name", (unsigned int)offsetof(struct dirent, d_name), (unsigned int)sizeof(((struct dirent*)0)->d_name)); return 0; } rake aborted! No such file or directory - rb_struct_gen_bin_652 ./rakelib/struct_generator.rb:110:in `unlink' ./rakelib/struct_generator.rb:110:in `calculate' /home/A/rubinius/rakelib/platform.rake:20 /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:544:in `call' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:544:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chai n' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chai n' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chai n' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chai n' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chai n' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chai n' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chai n' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chai n' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_h andling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_h andling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19
This paste will be private.
From the Design Piracy series on my blog: