Changeset 8091

Show
Ignore:
Timestamp:
16/10/11 18:20:44 (7 months ago)
Author:
westram
Message:
  • added template IGNORE_RESULT(), to ignore results tagged with __ATTR__USERESULT
Location:
branches/ptpan_back
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • branches/ptpan_back/AISC_COM/C/aisc_extern.c

    r7415 r8091  
    22#include <string.h> 
    33#include <aisc.h> 
     4#include <attributes.h> 
    45#include <server.h> 
    56#include "aisc_extern_privat.h" 
  • branches/ptpan_back/AISC_COM/C/aisc_server.h

    r7415 r8091  
    1212#include <aisc_com.h> 
    1313 
     14#ifndef ATTRIBUTES_H 
     15#include <attributes.h> 
     16#endif 
    1417#include <server.h> 
    1518#include <aisc_server_proto.h> 
  • branches/ptpan_back/AISC_COM/C/server.c

    r8030 r8091  
    2929#include "aisc_com.h" 
    3030// AISC_MKPT_PROMOTE:#include <aisc_func_types.h> 
     31#include <attributes.h> 
    3132#include "server.h" 
    3233#include "aisc_global.h" 
  • branches/ptpan_back/AISC_COM/C/server.h

    r7415 r8091  
    88/* define ARB attributes: */ 
    99#ifndef ATTRIBUTES_H 
    10 # include <attributes.h> 
     10#error You have to include attributes.h before including server.h 
     11// it's not possible to include attributes here due to link problems  
    1112#endif 
    1213 
  • branches/ptpan_back/NALIGNER/ali_other_stuff.hxx

    r6381 r8091  
    1212#define ALI_OTHER_STUFF_HXX 
    1313 
     14#ifndef PT_COM_H 
    1415#include <PT_com.h> 
    15  
     16#endif 
     17#ifndef ATTRIBUTES_H 
     18#include <attributes.h> 
     19#endif 
     20#ifndef SERVER_H 
    1621extern "C" { 
    1722#include <server.h> 
    1823} 
    19  
     24#endif 
     25#ifndef ARBDBT_H 
    2026#include <arbdbt.h> 
     27#endif 
     28#ifndef SERVERCNTRL_H 
    2129#include <servercntrl.h> 
     30#endif 
    2231 
    2332#else 
  • branches/ptpan_back/NAMES_COM/names_extern.c

    r7415 r8091  
    44 
    55struct sigcontext; 
     6#include <attributes.h> 
    67#include "C/server.h" 
    78 
  • branches/ptpan_back/PROBE_COM/PT_extern.c

    r7415 r8091  
    33#include <cstring> 
    44#include "PT_server.h" 
     5#include <attributes.h> 
    56#include "C/server.h" 
    67#include <aisc_server_proto.h> 
  • branches/ptpan_back/TEMPLATES/attributes.h

    r7931 r8091  
    101101 
    102102// ------------------------------------------------------------ 
     103// casting result to void does not help when a function is 
     104// declared with __ATTR__USERESULT. Use 
     105 
     106#ifdef __cplusplus 
     107template <typename T> void IGNORE_RESULT(const T&) {} 
     108#endif 
     109 
     110// ------------------------------------------------------------ 
    103111// helper macros to declare attributed function prototype and 
    104112// start function definition in one line (static or inline functions only)