OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can be | |
4 * found in the LICENSE file. | |
5 */ | |
6 | |
7 /* | |
8 * text2bytes.h | |
Brad Chen
2012/03/28 17:26:43
Doesn't match filename. Maybe simpler just to omit
| |
9 * Hexidecimal text to bytes conversion tools. | |
10 */ | |
11 | |
12 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_TESTING_ENUMINSTS_TEXT2BYTES_H_ | |
13 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_TESTING_ENUMINSTS_TEXT2BYTES_H_ | |
14 | |
15 #include "native_client/src/trusted/validator/x86/testing/enuminsts/enuminsts.h" | |
16 | |
17 /* Reads a line of text defining the sequence of bytes that defines | |
18 * an instruction, and converts that to the corresponding sequence of | |
19 * opcode bytes. Returns the number of bytes found. Returning zero implies | |
20 * that no instruction opcode was found in the given text. | |
21 * Arguments are: | |
22 * ibytes - The found sequence of opcode bytes. | |
23 * itext - The sequence of bytes to convert. | |
24 * context - String describing the context (i.e. filename or | |
25 * command line argument description). | |
26 * line - The line number associated with the context (if negative, | |
27 * it assumes that the line number shouldn't be reported). | |
28 */ | |
29 extern int Text2Bytes(uint8_t ibytes[NACL_ENUM_MAX_INSTRUCTION_BYTES], | |
30 char* itext, | |
Brad Chen
2012/03/28 17:26:43
const?
Karl
2012/03/28 18:25:28
Done.
| |
31 const char* context, | |
32 int line); | |
33 | |
34 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_TESTING_ENUMINSTS_INPUT_TESTE R_H_ */ | |
OLD | NEW |