Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: source/libvpx/build/make/obj_int_extract.c

Issue 144033005: Fix OUTPUT_FMT usage in obj_int_extract (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 26 matching lines...) Expand all
37 #if defined(__MACH__) 37 #if defined(__MACH__)
38 38
39 #include <mach-o/loader.h> 39 #include <mach-o/loader.h>
40 #include <mach-o/nlist.h> 40 #include <mach-o/nlist.h>
41 41
42 int print_macho_equ(output_fmt_t mode, uint8_t* name, int val) { 42 int print_macho_equ(output_fmt_t mode, uint8_t* name, int val) {
43 switch (mode) { 43 switch (mode) {
44 case OUTPUT_FMT_RVDS: 44 case OUTPUT_FMT_RVDS:
45 printf("%-40s EQU %5d\n", name, val); 45 printf("%-40s EQU %5d\n", name, val);
46 return 0; 46 return 0;
47 case OUTPUT_FMT_GAS: 47 case OUTPUT_FMT_GAS:
48 printf(".set %-40s, %5d\n", name, val); 48 printf(".set %-40s, %5d\n", name, val);
49 return 0; 49 return 0;
50 case OUTPUT_C_HEADER: 50 case OUTPUT_FMT_C_HEADER:
51 printf("#define %-40s %5d\n", name, val); 51 printf("#define %-40s %5d\n", name, val);
52 return 0; 52 return 0;
53 default: 53 default:
54 log_msg("Unsupported mode: %d", mode); 54 log_msg("Unsupported mode: %d", mode);
55 return 1; 55 return 1;
56 } 56 }
57 } 57 }
58 58
59 int parse_macho(uint8_t *base_buf, size_t sz, output_fmt_t mode) { 59 int parse_macho(uint8_t *base_buf, size_t sz, output_fmt_t mode) {
60 int i, j; 60 int i, j;
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 #endif 832 #endif
833 833
834 free(file_buf); 834 free(file_buf);
835 835
836 if (!res) 836 if (!res)
837 return EXIT_SUCCESS; 837 return EXIT_SUCCESS;
838 838
839 bail: 839 bail:
840 return EXIT_FAILURE; 840 return EXIT_FAILURE;
841 } 841 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698