OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 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 <stdio.h> | 7 #include <stdio.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 "LC_IDENTIFICATION", | 41 "LC_IDENTIFICATION", |
42 "LC_MEASUREMENT", | 42 "LC_MEASUREMENT", |
43 "LC_MESSAGES", | 43 "LC_MESSAGES", |
44 "LC_MONETARY", | 44 "LC_MONETARY", |
45 "LC_NAME", | 45 "LC_NAME", |
46 "LC_NUMERIC", | 46 "LC_NUMERIC", |
47 "LC_PAPER", | 47 "LC_PAPER", |
48 "LC_TELEPHONE", | 48 "LC_TELEPHONE", |
49 "LC_TIME", | 49 "LC_TIME", |
50 "NACLVERBOSITY", | 50 "NACLVERBOSITY", |
51 "NACL_NPAPI_DEBUG", /* src/shared/npruntime/naclnp_util.cc */ | |
52 "NACL_PLUGIN_DEBUG", /* src/trusted/plugin/srpc/utility.cc */ | 51 "NACL_PLUGIN_DEBUG", /* src/trusted/plugin/srpc/utility.cc */ |
53 "NACL_PPAPI_PROXY_DEBUG", /* src/shared/ppapi_proxy/utility.cc */ | |
54 "NACL_SRPC_DEBUG", /* src/shared/srpc/utility.c */ | 52 "NACL_SRPC_DEBUG", /* src/shared/srpc/utility.c */ |
55 "NACL_SRPC_STANDALONE", /* src/shared/srpc/nacl_srpc.c */ | 53 "NACL_SRPC_STANDALONE", /* src/shared/srpc/nacl_srpc.c */ |
56 NULL, | 54 NULL, |
57 }; | 55 }; |
58 | 56 |
59 /* left arg is key, right arg is table entry */ | 57 /* left arg is key, right arg is table entry */ |
60 static int EnvCmp(void const *vleft, void const *vright) { | 58 static int EnvCmp(void const *vleft, void const *vright) { |
61 char const *left = *(char const *const *) vleft; | 59 char const *left = *(char const *const *) vleft; |
62 char const *right = *(char const *const *) vright; | 60 char const *right = *(char const *const *) vright; |
63 char cleft, cright; | 61 char cleft, cright; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 173 } |
176 | 174 |
177 char const *const *NaClEnvCleanserEnvironment(struct NaClEnvCleanser *self) { | 175 char const *const *NaClEnvCleanserEnvironment(struct NaClEnvCleanser *self) { |
178 return (char const *const *) self->cleansed_environ; | 176 return (char const *const *) self->cleansed_environ; |
179 } | 177 } |
180 | 178 |
181 void NaClEnvCleanserDtor(struct NaClEnvCleanser *self) { | 179 void NaClEnvCleanserDtor(struct NaClEnvCleanser *self) { |
182 free((void *) self->cleansed_environ); | 180 free((void *) self->cleansed_environ); |
183 self->cleansed_environ = NULL; | 181 self->cleansed_environ = NULL; |
184 } | 182 } |
OLD | NEW |