update HACK.TXT with coding style
This commit is contained in:
parent
064ae66bf4
commit
bc43e9fca1
13
HACK.TXT
13
HACK.TXT
|
@ -1,5 +1,7 @@
|
||||||
Capstone source is organized as followings.
|
Code structure
|
||||||
|
--------------
|
||||||
|
|
||||||
|
Capstone source is organized as followings.
|
||||||
|
|
||||||
. <- core engine + README + COMPILE.TXT etc
|
. <- core engine + README + COMPILE.TXT etc
|
||||||
├── arch <- code handling disasm engine for each arch
|
├── arch <- code handling disasm engine for each arch
|
||||||
|
@ -51,7 +53,14 @@ See bindings/<language>/README for detail instructions on how to compile &
|
||||||
install the bindings.
|
install the bindings.
|
||||||
|
|
||||||
|
|
||||||
Adding an architecture :
|
Coding style
|
||||||
|
------------
|
||||||
|
- C code follows Linux kernel coding style, using tabs for indentation.
|
||||||
|
- Python code uses 4 spaces for indentation.
|
||||||
|
|
||||||
|
|
||||||
|
Adding an architecture
|
||||||
|
----------------------
|
||||||
|
|
||||||
Obviously, you first need to write all the logic and put it in a new directory arch/newarch
|
Obviously, you first need to write all the logic and put it in a new directory arch/newarch
|
||||||
Then, you have to modify other files.
|
Then, you have to modify other files.
|
||||||
|
|
Loading…
Reference in New Issue