*author : Davidlin *date : 2014-12-11pm *email : [email protected] or [email protected] * World : The city of SZ, in China *ver : 000.000.001 *history: editor time do * 1) Linpeng 2014-12-11 created this file! * 2) */
About the origin of Auto_tool:
Auto_tool Series Auxiliary Tool Set is the author in the work of learning, deeply fragmented redundant corner work takes up too much development time, so according to their own needs, written shell,make,bat,teraterm and other suitable for a demand of automatic tools, Save time and focus on more important things by allowing yourself to be rescued from the fragmented time of minute by minute.
Data structure definition of Auto_tool
typedef char NAME_T;TYPEDEF unsigned int ver_t;typedef unsigned int sn_t;
struct auto_tool_t { name_t tool[24]; ver_t master; ver_t Salve; sn_t sn;};
#define INIT_AUTO_TOOL (name) { . TOOL = name, . master = 0000, . Slave = 0000, \ . sn_t = 0000, };
Static auto_tool_t Make = init_auto_tool (make); Used to identify the makefile file static auto_tool_t Shell = Init_auto_tool (shell); Used to identify the shell script static auto_tool_t bat = Init_auto_tool (BAT); Used to identify the bat script static auto_tool_t teraterm = init_auto_tool (teraterm); Used to identify TeraTerm scripts
Example 1:
File number:make-0014-1209-0001. Name = Make ,. master = 0014,. Slave = 1209,. SN = 0001,
Thought: Small is beauty
A module does only one function, and if more functions are needed, it should be a combination of these small modules.
Auto_tool: Origin and definition