| OLD | NEW |
| 1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
| 2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
| 3 // http://code.google.com/p/protobuf/ | 3 // http://code.google.com/p/protobuf/ |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
| 10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 | 30 |
| 31 // Author: kenton@google.com (Kenton Varda) | 31 // Author: kenton@google.com (Kenton Varda) |
| 32 | 32 |
| 33 #include <google/protobuf/compiler/subprocess.h> | 33 #include <google/protobuf/compiler/subprocess.h> |
| 34 | 34 |
| 35 #include <algorithm> | 35 #include <algorithm> |
| 36 #include <iostream> |
| 36 | 37 |
| 37 #ifndef _WIN32 | 38 #ifndef _WIN32 |
| 38 #include <errno.h> | 39 #include <errno.h> |
| 39 #include <sys/select.h> | 40 #include <sys/select.h> |
| 40 #include <sys/wait.h> | 41 #include <sys/wait.h> |
| 41 #include <signal.h> | 42 #include <signal.h> |
| 42 #endif | 43 #endif |
| 43 | 44 |
| 44 #include <google/protobuf/stubs/common.h> | 45 #include <google/protobuf/stubs/common.h> |
| 45 #include <google/protobuf/message.h> | 46 #include <google/protobuf/message.h> |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 } | 452 } |
| 452 | 453 |
| 453 return true; | 454 return true; |
| 454 } | 455 } |
| 455 | 456 |
| 456 #endif // !_WIN32 | 457 #endif // !_WIN32 |
| 457 | 458 |
| 458 } // namespace compiler | 459 } // namespace compiler |
| 459 } // namespace protobuf | 460 } // namespace protobuf |
| 460 } // namespace google | 461 } // namespace google |
| OLD | NEW |