| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include <assert.h> | 7 #include <assert.h> |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdlib.h> | 10 #include <stdlib.h> |
| 11 #include <string.h> | 11 #include <string.h> |
| 12 | 12 |
| 13 #include "native_client/src/include/elf32.h" | 13 #include "native_client/src/include/elf32.h" |
| 14 #include "native_client/src/include/elf64.h" | 14 #include "native_client/src/include/elf64.h" |
| 15 #include "native_client/src/shared/platform/nacl_check.h" | 15 #include "native_client/src/shared/platform/nacl_check.h" |
| 16 #include "native_client/src/shared/utils/types.h" | 16 #include "native_client/src/shared/utils/types.h" |
| 17 #include "native_client/src/trusted/validator_ragel/unreviewed/validator_interna
l.h" | 17 #include "native_client/src/trusted/validator_ragel/unreviewed/validator.h" |
| 18 | 18 |
| 19 /* This is a copy of NaClLog from shared/platform/nacl_log.c to avoid | 19 /* This is a copy of NaClLog from shared/platform/nacl_log.c to avoid |
| 20 * linking in code in NaCl shared code in the unreviewed/Makefile and be able to | 20 * linking in code in NaCl shared code in the unreviewed/Makefile and be able to |
| 21 * use CHECK(). | 21 * use CHECK(). |
| 22 | 22 |
| 23 * TODO(khim): remove the copy of NaClLog implementation as soon as | 23 * TODO(khim): remove the copy of NaClLog implementation as soon as |
| 24 * unreviewed/Makefile is eliminated. | 24 * unreviewed/Makefile is eliminated. |
| 25 */ | 25 */ |
| 26 void NaClLog(int detail_level, char const *fmt, ...) { | 26 void NaClLog(int detail_level, char const *fmt, ...) { |
| 27 va_list ap; | 27 va_list ap; |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 } | 293 } |
| 294 else | 294 else |
| 295 break; | 295 break; |
| 296 } | 296 } |
| 297 for (index = initial_index; index < argc; ++index) { | 297 for (index = initial_index; index < argc; ++index) { |
| 298 const char *filename = argv[index]; | 298 const char *filename = argv[index]; |
| 299 ProcessFile(filename, repeat_count, raw_bitness, options, cpu_features); | 299 ProcessFile(filename, repeat_count, raw_bitness, options, cpu_features); |
| 300 } | 300 } |
| 301 return 0; | 301 return 0; |
| 302 } | 302 } |
| OLD | NEW |