Auto_tool: Origin and definition

Source: Internet
Author: User

*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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.