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

Unified Diff: src/trusted/plugin/utility.h

Issue 7799028: Remove src/trusted/plugin (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix gyp file for necessary -I Created 9 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 | « src/trusted/plugin/string_encoding_test.cc ('k') | src/trusted/plugin/utility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/plugin/utility.h
diff --git a/src/trusted/plugin/utility.h b/src/trusted/plugin/utility.h
deleted file mode 100644
index efd4e75eb1c543b0b752cd2e0044713e242de0b5..0000000000000000000000000000000000000000
--- a/src/trusted/plugin/utility.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2011 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-// A collection of debugging related interfaces.
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_UTILITY_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_UTILITY_H_
-
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/include/portability.h"
-#include "native_client/src/shared/platform/nacl_threads.h"
-
-#define SRPC_PLUGIN_DEBUG 1
-
-namespace plugin {
-
-// Tests that a string is a valid JavaScript identifier. According to the
-// ECMAScript spec, this should be done in terms of unicode character
-// categories. For now, we are simply limiting identifiers to the ASCII
-// subset of that spec. If successful, it returns the length of the
-// identifier in the location pointed to by length (if it is not NULL).
-// TODO(sehr): add Unicode identifier support.
-bool IsValidIdentifierString(const char* strval, uint32_t* length);
-
-// Debugging print utility
-extern int gNaClPluginDebugPrintEnabled;
-extern FILE* gNaClPluginLogFile;
-extern int NaClPluginPrintLog(const char *format, ...);
-extern int NaClPluginDebugPrintCheckEnv();
-extern FILE* NaClPluginLogFileEnv();
-#if SRPC_PLUGIN_DEBUG
-# define PLUGIN_PRINTF(args) do { \
- if (-1 == ::plugin::gNaClPluginDebugPrintEnabled) { \
- ::plugin::gNaClPluginDebugPrintEnabled = \
- ::plugin::NaClPluginDebugPrintCheckEnv(); \
- ::plugin::gNaClPluginLogFile = ::plugin::NaClPluginLogFileEnv();\
- } \
- if (0 != ::plugin::gNaClPluginDebugPrintEnabled) { \
- ::plugin::NaClPluginPrintLog("%08"NACL_PRIx32": ", \
- NaClThreadId()); \
- ::plugin::NaClPluginPrintLog args; \
- } \
- } while (0)
-#else
-# define PLUGIN_PRINTF(args) do { if (0) { printf args; } } while (0)
-/* allows DCE but compiler can still do format string checks */
-#endif
-
-} // namespace plugin
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_UTILITY_H_
« no previous file with comments | « src/trusted/plugin/string_encoding_test.cc ('k') | src/trusted/plugin/utility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698