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

Side by Side Diff: sandbox/linux/bpf_dsl/codegen.cc

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros Created 5 years 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
« no previous file with comments | « sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc ('k') | sandbox/linux/bpf_dsl/codegen_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sandbox/linux/bpf_dsl/codegen.h" 5 #include "sandbox/linux/bpf_dsl/codegen.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <limits> 10 #include <limits>
8 #include <utility> 11 #include <utility>
9 12
10 #include "base/logging.h" 13 #include "base/logging.h"
11 #include "sandbox/linux/system_headers/linux_filter.h" 14 #include "sandbox/linux/system_headers/linux_filter.h"
12 15
13 // This CodeGen implementation strives for simplicity while still 16 // This CodeGen implementation strives for simplicity while still
14 // generating acceptable BPF programs under typical usage patterns 17 // generating acceptable BPF programs under typical usage patterns
15 // (e.g., by PolicyCompiler). 18 // (e.g., by PolicyCompiler).
16 // 19 //
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 if (base::get<1>(lhs) != base::get<1>(rhs)) 152 if (base::get<1>(lhs) != base::get<1>(rhs))
150 return base::get<1>(lhs) < base::get<1>(rhs); 153 return base::get<1>(lhs) < base::get<1>(rhs);
151 if (base::get<2>(lhs) != base::get<2>(rhs)) 154 if (base::get<2>(lhs) != base::get<2>(rhs))
152 return base::get<2>(lhs) < base::get<2>(rhs); 155 return base::get<2>(lhs) < base::get<2>(rhs);
153 if (base::get<3>(lhs) != base::get<3>(rhs)) 156 if (base::get<3>(lhs) != base::get<3>(rhs))
154 return base::get<3>(lhs) < base::get<3>(rhs); 157 return base::get<3>(lhs) < base::get<3>(rhs);
155 return false; 158 return false;
156 } 159 }
157 160
158 } // namespace sandbox 161 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc ('k') | sandbox/linux/bpf_dsl/codegen_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698