• somefile.c

    static commands_t commands[] = {
    #include "commands-list.h"
        { 0, 0 }
    };
    
  • commands-list.h

    { "beginblock", command_beginblock },
    { "capb", command_capb },
    { "clear", command_clear },
    ...
    { "x_save", command_x_save },