Struct TEST {
Char a;
Short b;
int c [4];
Long d;
.
};
Now int c [4] to become an int [8] c
This structure has been used in many places, can you tell me how to do can be as little as possible to change the code
CodePudding user response:
This kind of situation, if this part is a protocol length change, you'll have to change all the array used place,Then the length of an array with the macro definition, is not so entangled with the next time, it is good to the size of the change of macro directly,
Want to steal a lazy, that is to give ourselves a pit