Skip to content

Commit a45daac

Browse files
committed
Readme fix 1.0
1 parent c3cb08f commit a45daac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Installation is easy. Jus add __interpreter.h__, and __interpreter.c__ files to
1414

1515
First you have to add the two files to your project. Than you have to create the instruction data in __interpreter.c__ file under the following comment:
1616

17-
'''c
17+
'''
1818
// +---- Create instruction data for the API ----+
1919
// | |
2020
// | This is where you have to add |
@@ -29,7 +29,7 @@ Use the __create_instruction_data()__ macro to add your commands to the interpre
2929

3030
The next step is to match the functions to your commands. You have to do it in interpreter.c file, in the init_interpreter() function, under the following comment:
3131

32-
'''c
32+
'''
3333
// +---- Match instruction to it's function ----+
3434
// | |
3535
// | This is where you have to match |
@@ -44,7 +44,7 @@ Use the __add_instruction()__ macro to match the name and the asociated function
4444

4545
The next thing you have to do is to specify the number of commands you have been added. It can be done in the __interpreter.h__ file under the following comment:
4646

47-
'''c
47+
'''
4848
// +---- Set the correct values ----+
4949
// | |
5050
// | NUM_OF_API_FUNCS value has |
@@ -59,7 +59,7 @@ Modify the __NUM_OF_API_FUNCS__ value to the right number unless __the program w
5959

6060
The last thing you have to do is to actually create your functions. A simple example function can be like this:
6161

62-
'''c
62+
'''
6363
void stop_func(char *args, int(*resp_fn)(const char*, ...))
6464
{
6565
printf("STOP!\r\n");

0 commit comments

Comments
 (0)