Changeset 570

Show
Ignore:
Timestamp:
06/22/06 19:53:31 (3 years ago)
Author:
common
Message:

nepenthes

nepenthes-core

  • Module.hpp fixed indenting
  • Nepenthes.cpp added arm and mips to arches
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/nepenthes-core/include/Module.hpp

    r332 r570  
    2929 
    3030#ifndef HAVE_MODULE_HPP 
    31 #define HAVE_MODULE_HPP 
     31       #define HAVE_MODULE_HPP 
    3232 
    33 #include <string> 
     33       #include <string> 
    3434 
    35 #ifdef WIN32 
    36 #include <windows.h> 
    37 #endif 
     35       #ifdef WIN32 
     36               #include <windows.h> 
     37       #endif 
    3838 
    3939using namespace std; 
     
    5151         * quite everything in nepenthes is a module, are you? 
    5252         */ 
    53     class Module  
    54     { 
    55     public: 
    56         virtual ~Module(){}; 
    57         virtual bool Init()=0; 
    58         virtual bool Exit()=0; 
     53        class Module  
     54        { 
     55        public: 
     56                virtual ~Module() 
     57                { 
     58                }; 
     59                virtual bool Init()=0; 
     60                virtual bool Exit()=0; 
    5961 
    60 virtual void setConfig(Config *config) 
    61 
    62         m_Config = config; 
    63 
     62               virtual void setConfig(Config *config) 
     63               
     64                       m_Config = config; 
     65               
    6466 
    6567 
    6668#ifdef WIN32 
    67 virtual void setDlHandle(HMODULE handle) 
    68 
    69         m_DlHandle = handle; 
    70 
     69               virtual void setDlHandle(HMODULE handle) 
     70               
     71                       m_DlHandle = handle; 
     72               
    7173#else 
    72 virtual void setDlHandle(void *handle) 
    73 
    74         m_DlHandle = handle; 
    75 
     74               virtual void setDlHandle(void *handle) 
     75               
     76                       m_DlHandle = handle; 
     77               
    7678#endif 
    7779 
    7880 
    7981#ifdef WIN32 
    80 virtual HMODULE getDlHandle() 
    81 
    82         return m_DlHandle; 
    83 
     82               virtual HMODULE getDlHandle() 
     83               
     84                       return m_DlHandle; 
     85               
    8486#else 
    85 virtual void *getDlHandle() 
    86 
    87         return m_DlHandle; 
    88 
     87               virtual void *getDlHandle() 
     88               
     89                       return m_DlHandle; 
     90               
    8991#endif 
    9092 
    9193 
    92 virtual Config *getConfig() 
    93 
    94         return m_Config; 
    95 
     94               virtual Config *getConfig() 
     95               
     96                       return m_Config; 
     97               
    9698 
    97 virtual string getModuleDescription() 
    98 
    99         return m_ModuleDescription; 
    100 
     99               virtual string getModuleDescription() 
     100               
     101                       return m_ModuleDescription; 
     102               
    101103 
    102 virtual string getModuleName() 
    103 
    104         return m_ModuleName; 
    105 
    106     protected: 
     104               virtual string getModuleName() 
     105               
     106                       return m_ModuleName; 
     107               
     108       protected: 
    107109 
    108110                ModuleManager *m_ModuleManager; 
    109                 Nepenthes        *m_Nepenthes; 
     111                Nepenthes     *m_Nepenthes; 
    110112 
    111         string  m_ModuleName; 
    112         string  m_ModuleDescription; 
    113         string  m_ModuleRevision; 
     113               string  m_ModuleName; 
     114               string  m_ModuleDescription; 
     115               string  m_ModuleRevision; 
    114116 
    115117#ifdef WIN32 
     
    120122                 * and we need to dlcose() the module 
    121123                 */ 
    122         void    *m_DlHandle; 
     124               void    *m_DlHandle; 
    123125#endif 
    124126 
    125         Config  *m_Config; 
    126     }; 
     127               Config  *m_Config; 
     128       }; 
    127129 
    128130 
  • nepenthes/trunk/nepenthes-core/src/Nepenthes.cpp

    r560 r570  
    16921692#if defined(__alpha__) || defined(__alpha) || defined(_M_ALPHA) 
    16931693#  define MY_ARCH "Alpha" 
     1694#elif defined(__arm__) 
     1695#  if defined(__ARMEB__) 
     1696#    define MY_ARCH "ARMeb" 
     1697#  else  
     1698#    define MY_ARCH "ARM" 
     1699#  endif  
    16941700#elif defined(i386) || defined(__i386__) || defined(__i386) || defined(_M_IX86) || defined(_X86_) || defined(__THW_INTEL) 
    16951701#  define MY_ARCH "x86" 
     
    16991705#  define MY_ARCH "Intel Architecture-64" 
    17001706#elif defined(__mips__) || defined(__mips) || defined(__MIPS__) 
    1701 #  define MY_ARCH "MIPS" 
     1707#  if defined(__mips32__) || defined(__mips32) 
     1708#    define MY_ARCH "MIPS32" 
     1709#  else  
     1710#    define MY_ARCH "MIPS" 
     1711#  endif  
    17021712#elif defined(__hppa__) || defined(__hppa) 
    17031713#  define MY_ARCH "PA RISC"