Changeset 206

Show
Ignore:
Timestamp:
03/16/08 03:08:45 (4 months ago)
Author:
mattn
Message:

* use CMD_SEP in sample plugin (minor cleanup)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/branches/ZeroRadiant/plugins/sample/plugin.cpp

    r205 r206  
    2222#include "plugin.h" 
    2323 
    24 #define CMD_SEP "-"  
     24#define CMD_SEP "-" 
    2525#define CMD_ABOUT "About..." 
    2626// ============================================================================= 
     
    4343 
    4444//backwards for some reason 
    45 static const char *PLUGIN_COMMANDS = CMD_ABOUT ";-"
     45static const char *PLUGIN_COMMANDS = CMD_ABOUT ";" CMD_SEP
    4646static const char *PLUGIN_ABOUT = "Sample plugin\n"; 
    4747 
     
    6161} toolbar_button_info_t; 
    6262 
    63 static const toolbar_button_info_t toolbar_buttons[NUM_TOOLBAR_BUTTONS] =  
     63static const toolbar_button_info_t toolbar_buttons[NUM_TOOLBAR_BUTTONS] = 
    6464{ 
    6565        { 
     
    143143CSynapseServer* g_pSynapseServer = NULL; 
    144144CSynapseClientSample g_SynapseClient; 
    145      
     145 
    146146#if __GNUC__ >= 4 
    147147#pragma GCC visibility push(default) 
    148148#endif 
    149 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer)  
     149extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 
    150150{ 
    151151#if __GNUC__ >= 4 
     
    162162        g_SynapseClient.AddAPI(TOOLBAR_MAJOR, SAMPLE_MINOR, sizeof(_QERPlugToolbarTable)); 
    163163        g_SynapseClient.AddAPI(PLUGIN_MAJOR, SAMPLE_MINOR, sizeof(_QERPluginTable)); 
    164          
     164 
    165165        g_SynapseClient.AddAPI(RADIANT_MAJOR, NULL, sizeof(g_FuncTable), SYN_REQUIRE, &g_FuncTable); 
    166166        g_SynapseClient.AddAPI(QGL_MAJOR, NULL, sizeof(g_QglTable), SYN_REQUIRE, &g_QglTable); 
     
    178178        if (!strcmp(pAPI->major_name, PLUGIN_MAJOR)) { 
    179179                _QERPluginTable* pTable= static_cast<_QERPluginTable*>(pAPI->mpTable); 
    180          
     180 
    181181                pTable->m_pfnQERPlug_Init = QERPlug_Init; 
    182182                pTable->m_pfnQERPlug_GetName = QERPlug_GetName; 
     
    186186        } else if (!strcmp(pAPI->major_name, TOOLBAR_MAJOR)) { 
    187187                _QERPlugToolbarTable* pTable= static_cast<_QERPlugToolbarTable*>(pAPI->mpTable); 
    188          
     188 
    189189                pTable->m_pfnToolbarButtonCount = &ToolbarButtonCount; 
    190190                pTable->m_pfnGetToolbarButton = &GetToolbarButton; 
    191191                return true; 
    192192        } 
    193          
     193 
    194194        Syn_Printf("ERROR: RequestAPI( '%s' ) not found in '%s'\n", pAPI->major_name, GetInfo()); 
    195195        return false;