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 * Hexidecimal text to bytes conversion tools. | |
9 */ | |
10 | |
11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_TESTING_ENUMINSTS_TEXT2BYTES_H_ | |
12 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_TESTING_ENUMINSTS_TEXT2BYTES_H_ | |
13 | |
14 #include "native_client/src/trusted/validator/x86/testing/enuminsts/enuminsts.h" | |
15 | |
16 /* Reads a line of text defining the sequence of bytes that defines | |
17 * an instruction, and converts that to the corresponding sequence of | |
18 * opcode bytes. Returns the number of bytes found. Returning zero implies | |
19 * that no instruction opcode was found in the given text. | |
20 * Arguments are: | |
21 * ibytes - The found sequence of opcode bytes. | |
22 * itext - The sequence of bytes to convert. | |
23 * context - String describing the context (i.e. filename or | |
24 * command line argument description). | |
25 * line - The line number associated with the context (if negative, | |
26 * it assumes that the line number shouldn't be reported). | |
27 */ | |
28 extern int Text2Bytes(InstByteArray ibytes, | |
29 const char* itext, | |
30 const char* context, | |
31 const int line); | |
32 | |
33 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_TESTING_ENUMINSTS_INPUT_TESTE
R_H_ */ | |
OLD | NEW |