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

Unified Diff: src/untrusted/irt/irt_interfaces.c

Issue 10826171: Incorporate shimming into the irt (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/untrusted/irt/irt_ppapi.c » ('j') | src/untrusted/irt/irt_ppapi.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/irt/irt_interfaces.c
===================================================================
--- src/untrusted/irt/irt_interfaces.c (revision 9381)
+++ src/untrusted/irt/irt_interfaces.c (working copy)
@@ -30,19 +30,21 @@
{ NACL_IRT_BLOCKHOOK_v0_1, &nacl_irt_blockhook, sizeof(nacl_irt_blockhook) },
{ NACL_IRT_RESOURCE_OPEN_v0_1, &nacl_irt_resource_open,
sizeof(nacl_irt_resource_open) },
+/* @IGNORE_LINES_FOR_CODE_HYGIENE[1] */
#ifdef IRT_PPAPI
{ NACL_IRT_PPAPIHOOK_v0_1, &nacl_irt_ppapihook, sizeof(nacl_irt_ppapihook) },
{ NACL_IRT_RANDOM_v0_1, &nacl_irt_random, sizeof(nacl_irt_random) },
#endif
{ NACL_IRT_CLOCK_v0_1, &nacl_irt_clock, sizeof(nacl_irt_clock) },
+ { NACL_IRT_CONTROL_v0_1, &nacl_irt_control, sizeof(nacl_irt_control) },
jvoung (off chromium) 2012/08/07 15:33:10 missing file for this?
{ NACL_IRT_DEV_EXCEPTION_HANDLING_v0_1, &nacl_irt_dev_exception_handling,
sizeof(nacl_irt_dev_exception_handling) },
};
size_t nacl_irt_interface(const char *interface_ident,
- void *table, size_t tablesize) {
- int i;
- for (i = 0; i < NACL_ARRAY_SIZE(irt_interfaces); ++i) {
+ void *table,
+ size_t tablesize) {
+ for (int i = 0; i < NACL_ARRAY_SIZE(irt_interfaces); ++i) {
if (0 == strcmp(interface_ident, irt_interfaces[i].name)) {
const size_t size = irt_interfaces[i].size;
if (size <= tablesize) {
« no previous file with comments | « no previous file | src/untrusted/irt/irt_ppapi.c » ('j') | src/untrusted/irt/irt_ppapi.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698