Changeset 671


Ignore:
Timestamp:
08/11/05 19:13:23 (7 years ago)
Author:
faa59
Message:

Clean up NX_EXTERNAL and CALLING_STYLE

Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/napi.h

    r520 r671  
    3434#define CONSTCHAR       const char 
    3535 
    36 #if defined(_WIN32) && defined(_DLL) 
    37 #       ifdef NX45DLL_EXPORTS 
    38 #               define NX_EXTERNAL __declspec(dllexport) 
    39 #       else 
    40 #               define NX_EXTERNAL __declspec(dllimport) 
    41 #       endif 
    42 #else 
    43 #       define NX_EXTERNAL 
    44 #endif 
    45  
    4636#ifdef _WIN32 
    47 #define snprintf nxisnprintf 
     37//#define snprintf nxisnprintf 
    4838extern int nxisnprintf(char* buffer, int len, const char* format, ... ); 
    4939#endif /* _WIN32 */ 
     
    134124#define CONCAT(__a,__b) __a##__b        /* token concatenation */ 
    135125 
    136 #if defined(__unix) || defined(__unix__) || defined (__VMS) || defined(__APPLE__) 
    137  
    138126#    ifdef __VMS 
    139127#        define MANGLE(__arg)   __arg  
     
    141129#        define MANGLE(__arg)   CONCAT(__arg,_) 
    142130#    endif 
    143  
    144 #    define CALLING_STYLE   /* blank */ 
    145131 
    146132#    define NXopen              MANGLE(nxiopen) 
     
    181167#    define NXsetnumberformat       MANGLE(nxisetnumberformat) 
    182168#    define NXsetcache          MANGLE(nxisetcache) 
    183 /* FORTRAN helpers - for NeXus internal use only */ 
     169 
     170/*  
     171 * FORTRAN helpers - for NeXus internal use only  
     172 */ 
    184173#    define NXfopen             MANGLE(nxifopen) 
    185174#    define NXfclose            MANGLE(nxifclose) 
     
    190179#    define NXfputattr          MANGLE(nxifputattr) 
    191180 
    192 #elif defined(_WIN32) 
    193 /*  
    194  * START OF WINDOWS SPECIFIC CONFIGURATION 
    195  * 
    196  * Added by Freddie Akeroyd 9/8/2002 
    197  * 
    198  * Various PC calling conventions - you need only uncomment one of the following definitions of MANGLE() 
    199  * anlong with the appropriate CALLING_STYLE 
    200  * The choice arises because under Windows the default way FORTRAN calls FORTRAN is different 
    201  * from the dafault way C calls C, and so when you need to have FORTRAN calling C you must 
    202  * force them to use the same convention. Notice the use of "default way" above ... by choice 
    203  * of compiler options (or compiler vendor) you may actually have FORTRAN calling in the C way  
    204  * etc., so you might need to experiment with the options below until you get no "unresolved symbols"  
    205  * 
    206  * Choice 1: Should allow both FORTRAN and C NeXus interfaces to work in a "default" setup  
    207  * Choice 2: For when choice 1: gives problems and you only require the C interface 
    208  * Choice 3: An alternative to 1: which may allow both FORTRAN and C in a non-default setup 
    209  */ 
    210 #       define MANGLE(__arg)            __arg                           /* Choice 1 */ 
    211 #       define CALLING_STYLE            __stdcall                       /* Choice 1 */ 
    212 /* #    define MANGLE(__arg)            __arg                           /* Choice 2 */ 
    213 /* #    define CALLING_STYLE                                            /* Choice 2 */ 
    214 /* #    define MANGLE(__arg)            CONCAT(__arg,_)                 /* Choice 3 */ 
    215 /* #    define CALLING_STYLE            __stdcall                       /* Choice 3 */ 
    216 /*  
    217  * END OF WINDOWS SPECIFIC CONFIGURATION  
    218  */ 
    219 #       define NXopen                   MANGLE(NXIOPEN) 
    220 #       define NXclose                  MANGLE(NXICLOSE) 
    221 #       define NXflush                  MANGLE(NXIFLUSH) 
    222 #       define NXmakegroup              MANGLE(NXIMAKEGROUP) 
    223 #       define NXopengroup              MANGLE(NXIOPENGROUP) 
    224 #       define NXopenpath               MANGLE(NXIOPENPATH) 
    225 #       define NXopengrouppath          MANGLE(NXIOPENGROUPPATH) 
    226 #       define NXclosegroup             MANGLE(NXICLOSEGROUP) 
    227 #       define NXmakedata               MANGLE(NXIMAKEDATA) 
    228 #       define NXcompress               MANGLE(NXICOMPRESS) 
    229 #       define NXopendata               MANGLE(NXIOPENDATA) 
    230 #       define NXclosedata              MANGLE(NXICLOSEDATA) 
    231 #       define NXgetdata                MANGLE(NXIGETDATA) 
    232 #       define NXgetslab                MANGLE(NXIGETSLAB) 
    233 #       define NXgetattr                MANGLE(NXIGETATTR) 
    234 #       define NXgetdim                 MANGLE(NXIGETDIM) 
    235 #       define NXputdata                MANGLE(NXIPUTDATA) 
    236 #       define NXputslab                MANGLE(NXIPUTSLAB) 
    237 #       define NXputattr                MANGLE(NXIPUTATTR) 
    238 #       define NXputdim                 MANGLE(NXIPUTDIM) 
    239 #       define NXgetinfo                MANGLE(NXIGETINFO) 
    240 #       define NXgetgroupinfo           MANGLE(NXIGETGROUPINFO) 
    241 #       define NXsameID            MANGLE(NXISAMEID) 
    242 #       define NXinitgroupdir           MANGLE(NXIINITGROUPDIR) 
    243 #       define NXgetnextentry           MANGLE(NXIGETNEXTENTRY) 
    244 #       define NXgetattrinfo            MANGLE(NXIGETATTRINFO) 
    245 #       define NXinitattrdir            MANGLE(NXIINITATTRDIR) 
    246 #       define NXsetnumberformat        MANGLE(NXISETNUMBERFORMAT) 
    247 #       define NXgetnextattr            MANGLE(NXIGETNEXTATTR) 
    248 #       define NXgetgroupID             MANGLE(NXIGETGROUPID) 
    249 #       define NXgetdataID              MANGLE(NXIGETDATAID) 
    250 #       define NXmakelink               MANGLE(NXIMAKELINK) 
    251 #       define NXopensourcegroup        MANGLE(NXIOPENSOURCEGROUP) 
    252 #       define NXmalloc                 MANGLE(NXIMALLOC) 
    253 #       define NXfree                   MANGLE(NXIFREE) 
    254 /* FORTRAN helpers - for NeXus internal use only */ 
    255 #       define NXfopen                  MANGLE(NXIFOPEN) 
    256 #       define NXfclose                 MANGLE(NXIFCLOSE) 
    257 #       define NXfflush                 MANGLE(NXIFFLUSH) 
    258 #       define NXfmakedata              MANGLE(NXIFMAKEDATA) 
    259 #   define NXfcompmakedata  MANGLE(NXIFCOMPMAKEDATA) 
    260 #       define NXfcompress              MANGLE(NXIFCOMPRESS) 
    261 #       define NXfputattr               MANGLE(NXIFPUTATTR) 
    262 #else 
    263 #   error Cannot compile - unknown operating system 
    264 #endif 
    265  
    266181 
    267182/*  
     
    272187extern "C" { 
    273188#endif /* __cplusplus */ 
    274 NX_EXTERNAL  NXstatus CALLING_STYLE NXopen(CONSTCHAR * filename, NXaccess access_method, NXhandle* pHandle); 
    275 NX_EXTERNAL  NXstatus CALLING_STYLE NXclose(NXhandle* pHandle); 
    276 NX_EXTERNAL  NXstatus CALLING_STYLE NXflush(NXhandle* pHandle); 
    277    
    278 NX_EXTERNAL  NXstatus CALLING_STYLE NXmakegroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
    279 NX_EXTERNAL  NXstatus CALLING_STYLE NXopengroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
    280 NX_EXTERNAL  NXstatus CALLING_STYLE NXopenpath (NXhandle handle, CONSTCHAR *path); 
    281 NX_EXTERNAL  NXstatus CALLING_STYLE NXopengrouppath (NXhandle handle, CONSTCHAR *path); 
    282  
    283 NX_EXTERNAL  NXstatus CALLING_STYLE NXclosegroup(NXhandle handle); 
    284    
    285 NX_EXTERNAL  NXstatus CALLING_STYLE NXmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 
    286 NX_EXTERNAL  NXstatus CALLING_STYLE NXcompmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 
    287 NX_EXTERNAL  NXstatus CALLING_STYLE NXcompress (NXhandle handle, int compr_type); 
    288 NX_EXTERNAL  NXstatus CALLING_STYLE NXopendata (NXhandle handle, CONSTCHAR* label); 
    289 NX_EXTERNAL  NXstatus CALLING_STYLE NXclosedata(NXhandle handle); 
    290 NX_EXTERNAL  NXstatus CALLING_STYLE NXputdata(NXhandle handle, void* data); 
    291  
    292 NX_EXTERNAL  NXstatus CALLING_STYLE NXputattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 
    293 NX_EXTERNAL  NXstatus CALLING_STYLE NXputslab(NXhandle handle, void* data, int start[], int size[]);     
    294  
    295 NX_EXTERNAL  NXstatus CALLING_STYLE NXgetdataID(NXhandle handle, NXlink* pLink); 
    296 NX_EXTERNAL  NXstatus CALLING_STYLE NXmakelink(NXhandle handle, NXlink* pLink); 
    297 NX_EXTERNAL  NXstatus CALLING_STYLE NXopensourcegroup(NXhandle handle); 
    298  
    299 NX_EXTERNAL  NXstatus CALLING_STYLE NXgetdata(NXhandle handle, void* data); 
    300 NX_EXTERNAL  NXstatus CALLING_STYLE NXgetinfo(NXhandle handle, int* rank, int dimension[], int* datatype); 
    301 NX_EXTERNAL  NXstatus CALLING_STYLE NXgetnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype); 
    302  
    303 NX_EXTERNAL  NXstatus CALLING_STYLE NXgetslab(NXhandle handle, void* data, int start[], int size[]); 
    304 NX_EXTERNAL  NXstatus CALLING_STYLE NXgetnextattr(NXhandle handle, NXname pName, int *iLength, int *iType); 
    305 NX_EXTERNAL  NXstatus CALLING_STYLE NXgetattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 
    306 NX_EXTERNAL  NXstatus CALLING_STYLE NXgetattrinfo(NXhandle handle, int* no_items); 
    307 NX_EXTERNAL  NXstatus CALLING_STYLE NXgetgroupID(NXhandle handle, NXlink* pLink); 
    308 NX_EXTERNAL  NXstatus CALLING_STYLE NXgetgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass); 
    309 NX_EXTERNAL  NXstatus CALLING_STYLE NXsameID(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID); 
    310  
    311 NX_EXTERNAL  NXstatus CALLING_STYLE NXinitgroupdir(NXhandle handle); 
    312 NX_EXTERNAL  NXstatus CALLING_STYLE NXinitattrdir(NXhandle handle); 
    313 NX_EXTERNAL  NXstatus CALLING_STYLE NXsetnumberformat(NXhandle handle, 
     189extern  NXstatus NXopen(CONSTCHAR * filename, NXaccess access_method, NXhandle* pHandle); 
     190extern  NXstatus NXclose(NXhandle* pHandle); 
     191extern  NXstatus NXflush(NXhandle* pHandle); 
     192   
     193extern  NXstatus NXmakegroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
     194extern  NXstatus NXopengroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
     195extern  NXstatus NXopenpath (NXhandle handle, CONSTCHAR *path); 
     196extern  NXstatus NXopengrouppath (NXhandle handle, CONSTCHAR *path); 
     197 
     198extern  NXstatus NXclosegroup(NXhandle handle); 
     199   
     200extern  NXstatus NXmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 
     201extern  NXstatus NXcompmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 
     202extern  NXstatus NXcompress (NXhandle handle, int compr_type); 
     203extern  NXstatus NXopendata (NXhandle handle, CONSTCHAR* label); 
     204extern  NXstatus NXclosedata(NXhandle handle); 
     205extern  NXstatus NXputdata(NXhandle handle, void* data); 
     206 
     207extern  NXstatus NXputattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 
     208extern  NXstatus NXputslab(NXhandle handle, void* data, int start[], int size[]);     
     209 
     210extern  NXstatus NXgetdataID(NXhandle handle, NXlink* pLink); 
     211extern  NXstatus NXmakelink(NXhandle handle, NXlink* pLink); 
     212extern  NXstatus NXopensourcegroup(NXhandle handle); 
     213 
     214extern  NXstatus NXgetdata(NXhandle handle, void* data); 
     215extern  NXstatus NXgetinfo(NXhandle handle, int* rank, int dimension[], int* datatype); 
     216extern  NXstatus NXgetnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype); 
     217 
     218extern  NXstatus NXgetslab(NXhandle handle, void* data, int start[], int size[]); 
     219extern  NXstatus NXgetnextattr(NXhandle handle, NXname pName, int *iLength, int *iType); 
     220extern  NXstatus NXgetattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 
     221extern  NXstatus NXgetattrinfo(NXhandle handle, int* no_items); 
     222extern  NXstatus NXgetgroupID(NXhandle handle, NXlink* pLink); 
     223extern  NXstatus NXgetgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass); 
     224extern  NXstatus NXsameID(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID); 
     225 
     226extern  NXstatus NXinitgroupdir(NXhandle handle); 
     227extern  NXstatus NXinitattrdir(NXhandle handle); 
     228extern  NXstatus NXsetnumberformat(NXhandle handle, 
    314229                                                      int type, char *format); 
    315230 
    316 NX_EXTERNAL  NXstatus CALLING_STYLE NXmalloc(void** data, int rank, int dimensions[], int datatype); 
    317 NX_EXTERNAL  NXstatus CALLING_STYLE NXfree(void** data); 
     231extern  NXstatus NXmalloc(void** data, int rank, int dimensions[], int datatype); 
     232extern  NXstatus NXfree(void** data); 
    318233 
    319234 
     
    321236    NAPI internals  
    322237------------------------------------------------------------------------*/ 
    323 NX_EXTERNAL  void CALLING_STYLE NXMSetError(void *pData, void (*ErrFunc)(void *pD, char *text)); 
     238extern  void NXMSetError(void *pData, void (*ErrFunc)(void *pD, char *text)); 
    324239extern void (*NXIReportError)(void *pData,char *text); 
    325240extern void *NXpData; 
    326241extern char *NXIformatNeXusTime(); 
    327242 
    328  
    329243/* 
    330244  another special function for setting the default cache size for HDF-5 
    331245*/ 
    332 NX_EXTERNAL  NXstatus CALLING_STYLE NXsetcache(long newVal); 
    333  
    334 /* 
    335  * We need to include CALLING_STYLE in the function pointer definition 
    336  * or else we get a type mismatch on Win32 
    337  */ 
     246extern  NXstatus  NXsetcache(long newVal); 
     247 
    338248  typedef struct { 
    339249        NXhandle *pNexusData;    
    340250        int stripFlag; 
    341         NXstatus (CALLING_STYLE *nxclose)(NXhandle* pHandle); 
    342         NXstatus (CALLING_STYLE *nxflush)(NXhandle* pHandle); 
    343         NXstatus (CALLING_STYLE *nxmakegroup) (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
    344         NXstatus (CALLING_STYLE *nxopengroup) (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
    345         NXstatus (CALLING_STYLE *nxclosegroup)(NXhandle handle); 
    346         NXstatus (CALLING_STYLE *nxmakedata) (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 
    347         NXstatus (CALLING_STYLE *nxcompmakedata) (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 
    348         NXstatus (CALLING_STYLE *nxcompress) (NXhandle handle, int compr_type); 
    349         NXstatus (CALLING_STYLE *nxopendata) (NXhandle handle, CONSTCHAR* label); 
    350         NXstatus (CALLING_STYLE *nxclosedata)(NXhandle handle); 
    351         NXstatus (CALLING_STYLE *nxputdata)(NXhandle handle, void* data); 
    352         NXstatus (CALLING_STYLE *nxputattr)(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 
    353         NXstatus (CALLING_STYLE *nxputslab)(NXhandle handle, void* data, int start[], int size[]);     
    354         NXstatus (CALLING_STYLE *nxgetdataID)(NXhandle handle, NXlink* pLink); 
    355         NXstatus (CALLING_STYLE *nxmakelink)(NXhandle handle, NXlink* pLink); 
    356         NXstatus (CALLING_STYLE *nxgetdata)(NXhandle handle, void* data); 
    357         NXstatus (CALLING_STYLE *nxgetinfo)(NXhandle handle, int* rank, int dimension[], int* datatype); 
    358         NXstatus (CALLING_STYLE *nxgetnextentry)(NXhandle handle, NXname name, NXname nxclass, int* datatype); 
    359         NXstatus (CALLING_STYLE *nxgetslab)(NXhandle handle, void* data, int start[], int size[]); 
    360         NXstatus (CALLING_STYLE *nxgetnextattr)(NXhandle handle, NXname pName, int *iLength, int *iType); 
    361         NXstatus (CALLING_STYLE *nxgetattr)(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 
    362         NXstatus (CALLING_STYLE *nxgetattrinfo)(NXhandle handle, int* no_items); 
    363         NXstatus (CALLING_STYLE *nxgetgroupID)(NXhandle handle, NXlink* pLink); 
    364         NXstatus (CALLING_STYLE *nxgetgroupinfo)(NXhandle handle, int* no_items, NXname name, NXname nxclass); 
    365         NXstatus (CALLING_STYLE *nxsameID)(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID); 
    366         NXstatus (CALLING_STYLE *nxinitgroupdir)(NXhandle handle); 
    367         NXstatus (CALLING_STYLE *nxinitattrdir)(NXhandle handle); 
    368         NXstatus (CALLING_STYLE *nxsetnumberformat)(NXhandle handle, 
     251        NXstatus ( *nxclose)(NXhandle* pHandle); 
     252        NXstatus ( *nxflush)(NXhandle* pHandle); 
     253        NXstatus ( *nxmakegroup) (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
     254        NXstatus ( *nxopengroup) (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
     255        NXstatus ( *nxclosegroup)(NXhandle handle); 
     256        NXstatus ( *nxmakedata) (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 
     257        NXstatus ( *nxcompmakedata) (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 
     258        NXstatus ( *nxcompress) (NXhandle handle, int compr_type); 
     259        NXstatus ( *nxopendata) (NXhandle handle, CONSTCHAR* label); 
     260        NXstatus ( *nxclosedata)(NXhandle handle); 
     261        NXstatus ( *nxputdata)(NXhandle handle, void* data); 
     262        NXstatus ( *nxputattr)(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 
     263        NXstatus ( *nxputslab)(NXhandle handle, void* data, int start[], int size[]);     
     264        NXstatus ( *nxgetdataID)(NXhandle handle, NXlink* pLink); 
     265        NXstatus ( *nxmakelink)(NXhandle handle, NXlink* pLink); 
     266        NXstatus ( *nxgetdata)(NXhandle handle, void* data); 
     267        NXstatus ( *nxgetinfo)(NXhandle handle, int* rank, int dimension[], int* datatype); 
     268        NXstatus ( *nxgetnextentry)(NXhandle handle, NXname name, NXname nxclass, int* datatype); 
     269        NXstatus ( *nxgetslab)(NXhandle handle, void* data, int start[], int size[]); 
     270        NXstatus ( *nxgetnextattr)(NXhandle handle, NXname pName, int *iLength, int *iType); 
     271        NXstatus ( *nxgetattr)(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 
     272        NXstatus ( *nxgetattrinfo)(NXhandle handle, int* no_items); 
     273        NXstatus ( *nxgetgroupID)(NXhandle handle, NXlink* pLink); 
     274        NXstatus ( *nxgetgroupinfo)(NXhandle handle, int* no_items, NXname name, NXname nxclass); 
     275        NXstatus ( *nxsameID)(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID); 
     276        NXstatus ( *nxinitgroupdir)(NXhandle handle); 
     277        NXstatus ( *nxinitattrdir)(NXhandle handle); 
     278        NXstatus ( *nxsetnumberformat)(NXhandle handle, 
    369279                                                    int type,char *format); 
    370280  } NexusFunction, *pNexusFunction; 
    371281  /*---------------------*/ 
    372282  extern long nx_cacheSize; 
     283 
     284/* FORTRAN internals */ 
     285 
     286  extern NXstatus  NXfopen(char * filename, NXaccess* am,  
     287                                        NexusFunction* pHandle); 
     288  extern NXstatus  NXfclose (NexusFunction* pHandle); 
     289  extern NXstatus  NXfputattr(NXhandle fid, char *name, void *data,  
     290                                   int *pDatalen, int *pIType); 
     291  extern NXstatus  NXfcompress(NXhandle fid, int *compr_type); 
     292  extern NXstatus  NXfcompmakedata(NXhandle fid, char *name,  
     293                int *pDatatype, 
     294                int *pRank, int dimensions[], 
     295                int *compression_type, int chunk[]); 
     296  extern NXstatus  NXfmakedata(NXhandle fid, char *name, int *pDatatype, 
     297                int *pRank, int dimensions[]); 
     298  extern NXstatus  NXfflush(NexusFunction* pHandle); 
     299 
    373300#ifdef __cplusplus 
    374301} 
  • trunk/include/napi4.h

    r473 r671  
    88 */ 
    99 
    10 NX_EXTERNAL  NXstatus CALLING_STYLE NX4open(CONSTCHAR *filename, NXaccess access_method, NXhandle* pHandle); 
    11 NX_EXTERNAL  NXstatus CALLING_STYLE NX4close(NXhandle* pHandle); 
    12 NX_EXTERNAL  NXstatus CALLING_STYLE NX4flush(NXhandle* pHandle); 
     10extern  NXstatus NX4open(CONSTCHAR *filename, NXaccess access_method, NXhandle* pHandle); 
     11extern  NXstatus NX4close(NXhandle* pHandle); 
     12extern  NXstatus NX4flush(NXhandle* pHandle); 
    1313   
    14 NX_EXTERNAL  NXstatus CALLING_STYLE NX4makegroup (NXhandle handle, CONSTCHAR* Vgroup, CONSTCHAR* NXclass); 
    15 NX_EXTERNAL  NXstatus CALLING_STYLE NX4opengroup (NXhandle handle, CONSTCHAR* Vgroup, CONSTCHAR* NXclass); 
    16 NX_EXTERNAL  NXstatus CALLING_STYLE NX4closegroup(NXhandle handle); 
     14extern  NXstatus NX4makegroup (NXhandle handle, CONSTCHAR* Vgroup, CONSTCHAR* NXclass); 
     15extern  NXstatus NX4opengroup (NXhandle handle, CONSTCHAR* Vgroup, CONSTCHAR* NXclass); 
     16extern  NXstatus NX4closegroup(NXhandle handle); 
    1717   
    18 NX_EXTERNAL  NXstatus CALLING_STYLE NX4makedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 
    19 NX_EXTERNAL  NXstatus CALLING_STYLE NX4compmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 
    20 NX_EXTERNAL  NXstatus CALLING_STYLE NX4compress (NXhandle handle, int compr_type); 
    21 NX_EXTERNAL  NXstatus CALLING_STYLE NX4opendata (NXhandle handle, CONSTCHAR* label); 
     18extern  NXstatus NX4makedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 
     19extern  NXstatus NX4compmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 
     20extern  NXstatus NX4compress (NXhandle handle, int compr_type); 
     21extern  NXstatus NX4opendata (NXhandle handle, CONSTCHAR* label); 
    2222 
    23 NX_EXTERNAL  NXstatus CALLING_STYLE NX4closedata(NXhandle handle); 
     23extern  NXstatus NX4closedata(NXhandle handle); 
    2424   
    25 NX_EXTERNAL  NXstatus CALLING_STYLE NX4getdata(NXhandle handle, void* data); 
    26 NX_EXTERNAL  NXstatus CALLING_STYLE NX4getslab(NXhandle handle, void* data, int start[], int size[]); 
    27 NX_EXTERNAL  NXstatus CALLING_STYLE NX4getattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 
     25extern  NXstatus NX4getdata(NXhandle handle, void* data); 
     26extern  NXstatus NX4getslab(NXhandle handle, void* data, int start[], int size[]); 
     27extern  NXstatus NX4getattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 
    2828   
    29 NX_EXTERNAL  NXstatus CALLING_STYLE NX4putdata(NXhandle handle, void* data); 
    30 NX_EXTERNAL  NXstatus CALLING_STYLE NX4putslab(NXhandle handle, void* data, int start[], int size[]); 
    31 NX_EXTERNAL  NXstatus CALLING_STYLE NX4putattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 
     29extern  NXstatus NX4putdata(NXhandle handle, void* data); 
     30extern  NXstatus NX4putslab(NXhandle handle, void* data, int start[], int size[]); 
     31extern  NXstatus NX4putattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 
    3232   
    33 NX_EXTERNAL  NXstatus CALLING_STYLE NX4getinfo(NXhandle handle, int* rank, int dimension[], int* datatype); 
    34 NX_EXTERNAL  NXstatus CALLING_STYLE NX4getgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass); 
    35 NX_EXTERNAL  NXstatus CALLING_STYLE NX4initgroupdir(NXhandle handle); 
    36 NX_EXTERNAL  NXstatus CALLING_STYLE NX4getnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype); 
    37 NX_EXTERNAL  NXstatus CALLING_STYLE NX4getattrinfo(NXhandle handle, int* no_items); 
    38 NX_EXTERNAL  NXstatus CALLING_STYLE NX4initattrdir(NXhandle handle); 
    39 NX_EXTERNAL  NXstatus CALLING_STYLE NX4getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType); 
     33extern  NXstatus NX4getinfo(NXhandle handle, int* rank, int dimension[], int* datatype); 
     34extern  NXstatus NX4getgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass); 
     35extern  NXstatus NX4initgroupdir(NXhandle handle); 
     36extern  NXstatus NX4getnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype); 
     37extern  NXstatus NX4getattrinfo(NXhandle handle, int* no_items); 
     38extern  NXstatus NX4initattrdir(NXhandle handle); 
     39extern  NXstatus NX4getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType); 
    4040   
    41 NX_EXTERNAL  NXstatus CALLING_STYLE NX4getgroupID(NXhandle handle, NXlink* pLink); 
    42 NX_EXTERNAL  NXstatus CALLING_STYLE NX4getdataID(NXhandle handle, NXlink* pLink); 
    43 NX_EXTERNAL  NXstatus CALLING_STYLE NX4makelink(NXhandle handle, NXlink* pLink); 
     41extern  NXstatus NX4getgroupID(NXhandle handle, NXlink* pLink); 
     42extern  NXstatus NX4getdataID(NXhandle handle, NXlink* pLink); 
     43extern  NXstatus NX4makelink(NXhandle handle, NXlink* pLink); 
    4444void NX4assignFunctions(pNexusFunction fHandle); 
    4545 
  • trunk/include/napi5.h

    r433 r671  
    55/* HDF5 interface */ 
    66 
    7 NX_EXTERNAL  NXstatus CALLING_STYLE NX5open(CONSTCHAR *filename, NXaccess access_method, NXhandle* pHandle); 
    8 NX_EXTERNAL  NXstatus CALLING_STYLE NX5close(NXhandle* pHandle); 
    9 NX_EXTERNAL  NXstatus CALLING_STYLE NX5flush(NXhandle* pHandle); 
     7extern  NXstatus NX5open(CONSTCHAR *filename, NXaccess access_method, NXhandle* pHandle); 
     8extern  NXstatus NX5close(NXhandle* pHandle); 
     9extern  NXstatus NX5flush(NXhandle* pHandle); 
    1010   
    11 NX_EXTERNAL  NXstatus CALLING_STYLE NX5makegroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
    12 NX_EXTERNAL  NXstatus CALLING_STYLE NX5opengroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
    13 NX_EXTERNAL  NXstatus CALLING_STYLE NX5closegroup(NXhandle handle); 
     11extern  NXstatus NX5makegroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
     12extern  NXstatus NX5opengroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 
     13extern  NXstatus NX5closegroup(NXhandle handle); 
    1414   
    15 NX_EXTERNAL  NXstatus CALLING_STYLE NX5makedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 
    16 NX_EXTERNAL  NXstatus CALLING_STYLE NX5compmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 
    17 NX_EXTERNAL  NXstatus CALLING_STYLE NX5compress (NXhandle handle, int compr_type); 
    18 NX_EXTERNAL  NXstatus CALLING_STYLE NX5opendata (NXhandle handle, CONSTCHAR* label); 
    19 NX_EXTERNAL  NXstatus CALLING_STYLE NX5closedata(NXhandle handle); 
    20 NX_EXTERNAL  NXstatus CALLING_STYLE NX5putdata(NXhandle handle, void* data); 
     15extern  NXstatus NX5makedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 
     16extern  NXstatus NX5compmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 
     17extern  NXstatus NX5compress (NXhandle handle, int compr_type); 
     18extern  NXstatus NX5opendata (NXhandle handle, CONSTCHAR* label); 
     19extern  NXstatus NX5closedata(NXhandle handle); 
     20extern  NXstatus NX5putdata(NXhandle handle, void* data); 
    2121 
    22 NX_EXTERNAL  NXstatus CALLING_STYLE NX5putattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 
    23 NX_EXTERNAL  NXstatus CALLING_STYLE NX5putslab(NXhandle handle, void* data, int start[], int size[]);     
     22extern  NXstatus NX5putattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 
     23extern  NXstatus NX5putslab(NXhandle handle, void* data, int start[], int size[]);     
    2424 
    25 NX_EXTERNAL  NXstatus CALLING_STYLE NX5getdataID(NXhandle handle, NXlink* pLink); 
    26 NX_EXTERNAL  NXstatus CALLING_STYLE NX5makelink(NXhandle handle, NXlink* pLink); 
     25extern  NXstatus NX5getdataID(NXhandle handle, NXlink* pLink); 
     26extern  NXstatus NX5makelink(NXhandle handle, NXlink* pLink); 
    2727 
    28 NX_EXTERNAL  NXstatus CALLING_STYLE NX5getdata(NXhandle handle, void* data); 
    29 NX_EXTERNAL  NXstatus CALLING_STYLE NX5getinfo(NXhandle handle, int* rank, int dimension[], int* datatype); 
    30 NX_EXTERNAL  NXstatus CALLING_STYLE NX5getnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype); 
     28extern  NXstatus NX5getdata(NXhandle handle, void* data); 
     29extern  NXstatus NX5getinfo(NXhandle handle, int* rank, int dimension[], int* datatype); 
     30extern  NXstatus NX5getnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype); 
    3131 
    32 NX_EXTERNAL  NXstatus CALLING_STYLE NX5getslab(NXhandle handle, void* data, int start[], int size[]); 
    33 NX_EXTERNAL  NXstatus CALLING_STYLE NX5getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType); 
    34 NX_EXTERNAL  NXstatus CALLING_STYLE NX5getattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 
    35 NX_EXTERNAL  NXstatus CALLING_STYLE NX5getattrinfo(NXhandle handle, int* no_items); 
    36 NX_EXTERNAL  NXstatus CALLING_STYLE NX5getgroupID(NXhandle handle, NXlink* pLink); 
    37 NX_EXTERNAL  NXstatus CALLING_STYLE NX5getgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass); 
     32extern  NXstatus NX5getslab(NXhandle handle, void* data, int start[], int size[]); 
     33extern  NXstatus NX5getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType); 
     34extern  NXstatus NX5getattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 
     35extern  NXstatus NX5getattrinfo(NXhandle handle, int* no_items); 
     36extern  NXstatus NX5getgroupID(NXhandle handle, NXlink* pLink); 
     37extern  NXstatus NX5getgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass); 
    3838 
    39 NX_EXTERNAL  NXstatus CALLING_STYLE NX5initgroupdir(NXhandle handle); 
    40 NX_EXTERNAL  NXstatus CALLING_STYLE NX5initattrdir(NXhandle handle); 
     39extern  NXstatus NX5initgroupdir(NXhandle handle); 
     40extern  NXstatus NX5initattrdir(NXhandle handle); 
    4141 
    4242void NX5assignFunctions(pNexusFunction fHandle); 
  • trunk/include/napiu.h

    r421 r671  
    3535#endif /* __cplusplus */ 
    3636 
    37 NX_EXTERNAL  NXstatus CALLING_STYLE NXUwriteglobals(NXhandle file_id, const char* user, const char* affiliation, const char* address, const char* phone, const char* fax, const char* email); 
     37extern  NXstatus NXUwriteglobals(NXhandle file_id, const char* user, const char* affiliation, const char* address, const char* phone, const char* fax, const char* email); 
    3838 
    39 NX_EXTERNAL  NXstatus CALLING_STYLE NXUwritegroup(NXhandle file_id, const char* group_name, const char* group_class); 
     39extern  NXstatus NXUwritegroup(NXhandle file_id, const char* group_name, const char* group_class); 
    4040 
    41 NX_EXTERNAL NXstatus CALLING_STYLE NXUwritedata(NXhandle file_id, const char* data_name, const void* data, int data_type, int rank, const int dim[], const char* units, const int start[], const int size[]); 
     41extern NXstatus NXUwritedata(NXhandle file_id, const char* data_name, const void* data, int data_type, int rank, const int dim[], const char* units, const int start[], const int size[]); 
    4242 
    43 NX_EXTERNAL NXstatus CALLING_STYLE NXUreaddata(NXhandle file_id, const char* data_name, void* data, char* units, const int start[], const int size[]); 
     43extern NXstatus NXUreaddata(NXhandle file_id, const char* data_name, void* data, char* units, const int start[], const int size[]); 
    4444 
    45 NX_EXTERNAL NXstatus CALLING_STYLE NXUwritehistogram(NXhandle file_id, const char* data_name, const void* data, const char* units); 
     45extern NXstatus NXUwritehistogram(NXhandle file_id, const char* data_name, const void* data, const char* units); 
    4646 
    47 NX_EXTERNAL NXstatus CALLING_STYLE NXUreadhistogram(NXhandle file_id, const char* data_name, void* data, char* units); 
     47extern NXstatus NXUreadhistogram(NXhandle file_id, const char* data_name, void* data, char* units); 
    4848 
    49 NX_EXTERNAL NXstatus CALLING_STYLE NXUsetcompress(NXhandle file_id, int comp_type, int comp_size); 
     49extern NXstatus NXUsetcompress(NXhandle file_id, int comp_type, int comp_size); 
    5050 
    51 NX_EXTERNAL NXstatus CALLING_STYLE NXUfindgroup(NXhandle file_id, const char* group_name, char* group_class); 
     51extern NXstatus NXUfindgroup(NXhandle file_id, const char* group_name, char* group_class); 
    5252 
    53 NX_EXTERNAL NXstatus CALLING_STYLE NXUfindclass(NXhandle file_id, const char* group_class, char* group_name, int find_index); 
     53extern NXstatus NXUfindclass(NXhandle file_id, const char* group_class, char* group_name, int find_index); 
    5454 
    55 NX_EXTERNAL NXstatus CALLING_STYLE NXUfinddata(NXhandle file_id, const char* data_name); 
     55extern NXstatus NXUfinddata(NXhandle file_id, const char* data_name); 
    5656 
    57 NX_EXTERNAL NXstatus CALLING_STYLE NXUfindattr(NXhandle file_id, const char* attr_name); 
     57extern NXstatus NXUfindattr(NXhandle file_id, const char* attr_name); 
    5858 
    59 NX_EXTERNAL NXstatus CALLING_STYLE NXUfindsignal(NXhandle file_id, int signal, char* data_name, int* data_rank, int* data_type, int data_dimensions[]); 
     59extern NXstatus NXUfindsignal(NXhandle file_id, int signal, char* data_name, int* data_rank, int* data_type, int data_dimensions[]); 
    6060 
    61 NX_EXTERNAL NXstatus CALLING_STYLE NXUfindaxis(NXhandle file_id, int axis, int primary, char* data_name, int* data_rank, int* data_type, int data_dimensions[]); 
     61extern NXstatus NXUfindaxis(NXhandle file_id, int axis, int primary, char* data_name, int* data_rank, int* data_type, int data_dimensions[]); 
    6262 
    63 NX_EXTERNAL NXstatus CALLING_STYLE NXUfindlink(NXhandle file_id, NXlink* group_id, const char* group_class); 
     63extern NXstatus NXUfindlink(NXhandle file_id, NXlink* group_id, const char* group_class); 
    6464 
    65 NX_EXTERNAL NXstatus CALLING_STYLE NXUresumelink(NXhandle file_id, NXlink group_id); 
     65extern NXstatus NXUresumelink(NXhandle file_id, NXlink group_id); 
    6666 
    6767#ifdef __cplusplus 
  • trunk/include/nxxml.h

    r521 r671  
    2323#define NEXUSXML 
    2424 
    25 NX_EXTERNAL  NXstatus CALLING_STYLE NXXopen(CONSTCHAR *filename,  
     25extern  NXstatus NXXopen(CONSTCHAR *filename,  
    2626                                            NXaccess access_method,  
    2727                                            NXhandle* pHandle); 
    28 NX_EXTERNAL  NXstatus CALLING_STYLE NXXclose(NXhandle* pHandle); 
    29 NX_EXTERNAL  NXstatus CALLING_STYLE NXXflush(NXhandle* pHandle); 
     28extern  NXstatus NXXclose(NXhandle* pHandle); 
     29extern  NXstatus NXXflush(NXhandle* pHandle); 
    3030 
    31 NXstatus CALLING_STYLE NXXmakegroup (NXhandle fid, CONSTCHAR *name,  
     31NXstatus NXXmakegroup (NXhandle fid, CONSTCHAR *name,  
    3232                                     CONSTCHAR *nxclass); 
    33 NXstatus CALLING_STYLE NXXopengroup (NXhandle fid, CONSTCHAR *name,  
     33NXstatus NXXopengroup (NXhandle fid, CONSTCHAR *name,  
    3434                                     CONSTCHAR *nxclass); 
    35 NXstatus CALLING_STYLE NXXclosegroup (NXhandle fid); 
     35NXstatus NXXclosegroup (NXhandle fid); 
    3636 
    37 NXstatus CALLING_STYLE NXXcompmakedata (NXhandle fid, CONSTCHAR *name,  
     37NXstatus NXXcompmakedata (NXhandle fid, CONSTCHAR *name,  
    3838                                        int datatype,  
    3939                                        int rank,  
    4040                                        int dimensions[], 
    4141                                        int compress_type, int chunk_size[]); 
    42 NXstatus CALLING_STYLE NXXmakedata (NXhandle fid,  
     42NXstatus NXXmakedata (NXhandle fid,  
    4343                                    CONSTCHAR *name, int datatype,  
    4444                                    int rank, int dimensions[]); 
    45 NXstatus CALLING_STYLE NXXopendata (NXhandle fid, CONSTCHAR *name); 
    46 NXstatus CALLING_STYLE NXXclosedata (NXhandle fid); 
    47 NXstatus CALLING_STYLE NXXputdata (NXhandle fid, void *data); 
    48 NXstatus CALLING_STYLE NXXgetdata (NXhandle fid, void *data); 
    49 NXstatus CALLING_STYLE NXXgetinfo (NXhandle fid, int *rank,  
     45NXstatus NXXopendata (NXhandle fid, CONSTCHAR *name); 
     46NXstatus NXXclosedata (NXhandle fid); 
     47NXstatus NXXputdata (NXhandle fid, void *data); 
     48NXstatus NXXgetdata (NXhandle fid, void *data); 
     49NXstatus NXXgetinfo (NXhandle fid, int *rank,  
    5050                                   int dimension[], int *iType); 
    51 NXstatus CALLING_STYLE NXXputslab (NXhandle fid, void *data,  
     51NXstatus NXXputslab (NXhandle fid, void *data,  
    5252                                   int iStart[], int iSize[]); 
    53 NXstatus CALLING_STYLE NXXgetslab (NXhandle fid, void *data,  
     53NXstatus NXXgetslab (NXhandle fid, void *data,  
    5454                                   int iStart[], int iSize[]); 
    55 NXstatus CALLING_STYLE NXXputattr (NXhandle fid, CONSTCHAR *name, void *data,  
     55NXstatus NXXputattr (NXhandle fid, CONSTCHAR *name, void *data,  
    5656                                   int datalen, int iType); 
    57 NXstatus CALLING_STYLE NXXgetattr (NXhandle fid, char *name,  
     57NXstatus NXXgetattr (NXhandle fid, char *name,  
    5858                                   void *data, int* datalen, int* iType); 
    5959 
    60 NXstatus CALLING_STYLE NXXgetnextentry (NXhandle fid,NXname name,  
     60NXstatus NXXgetnextentry (NXhandle fid,NXname name,  
    6161                                        NXname nxclass, int *datatype); 
    62 NX_EXTERNAL  NXstatus CALLING_STYLE NXXgetnextattr(NXhandle handle,  
     62extern  NXstatus NXXgetnextattr(NXhandle handle,  
    6363                                NXname pName, int *iLength, int *iType); 
    64 NX_EXTERNAL  NXstatus CALLING_STYLE NXXinitgroupdir(NXhandle handle); 
    65 NX_EXTERNAL  NXstatus CALLING_STYLE NXXinitattrdir(NXhandle handle); 
    66 NX_EXTERNAL  NXstatus CALLING_STYLE NXXgetattrinfo (NXhandle fid, int *iN); 
    67 NX_EXTERNAL  NXstatus CALLING_STYLE NXXgetgroupinfo (NXhandle fid, int *iN,  
     64extern  NXstatus NXXinitgroupdir(NXhandle handle); 
     65extern  NXstatus NXXinitattrdir(NXhandle handle); 
     66extern  NXstatus NXXgetattrinfo (NXhandle fid, int *iN); 
     67extern  NXstatus NXXgetgroupinfo (NXhandle fid, int *iN,  
    6868                                        NXname pName, NXname pClass); 
    6969 
    70 NX_EXTERNAL NXstatus CALLING_STYLE NXXgetdataID (NXhandle fid, NXlink* sRes); 
    71 NX_EXTERNAL NXstatus CALLING_STYLE NXXgetgroupID (NXhandle fid, NXlink* sRes); 
    72 NX_EXTERNAL NXstatus CALLING_STYLE NXXmakelink (NXhandle fid, NXlink* sLink); 
    73 NX_EXTERNAL NXstatus CALLING_STYLE NXXsameID (NXhandle fileid,  
     70extern NXstatus NXXgetdataID (NXhandle fid, NXlink* sRes); 
     71extern NXstatus NXXgetgroupID (NXhandle fid, NXlink* sRes); 
     72extern NXstatus NXXmakelink (NXhandle fid, NXlink* sLink); 
     73extern NXstatus NXXsameID (NXhandle fileid,  
    7474                                              NXlink* pFirstID, NXlink* pSecondID); 
    7575 
  • trunk/src/Makefile.am

    r596 r671  
    2929#==================================================================== 
    3030 
    31 AM_CPPFLAGS=-I$(top_srcdir)/include @HDF4_CPPFLAGS@ @HDF5_CPPFLAGS@ @XML_CPPFLAGS@ 
     31AM_CPPFLAGS=-I$(top_srcdir)/include @HDF4_CPPFLAGS@ @HDF5_CPPFLAGS@ @XML_CPPFLAGS@ -DIN_NEXUS_LIBRARY 
    3232 
    3333if HAVE_HDF4 
  • trunk/src/napi.c

    r545 r671  
    3535#include "napi.h" 
    3636 
    37    
    38   static int iFortifyScope; 
     37static int iFortifyScope; 
    3938/*------------------------------------------------------------------------ 
    4039  HDF-5 cache size special stuff 
     
    4241long nx_cacheSize =  1024000; /* 1MB, HDF-5 default */ 
    4342 
    44 NXstatus CALLING_STYLE NXsetcache(long newVal) 
     43NXstatus NXsetcache(long newVal) 
    4544{ 
    4645  if(newVal > 0) 
     
    5150  return NX_ERROR; 
    5251} 
     52 
     53     
    5354/*-----------------------------------------------------------------------*/ 
    5455static NXstatus NXisXML(CONSTCHAR *filename) 
     
    6768  return NX_ERROR; 
    6869} 
     70 
    6971/*-------------------------------------------------------------------------*/ 
    7072  
     
    8486  /*---------------------------------------------------------------------*/ 
    8587 
    86   NX_EXTERNAL void CALLING_STYLE NXMSetError(void *pData,  
     88  extern void NXMSetError(void *pData,  
    8789                              void (*NewError)(void *pD, char *text)) 
    8890  { 
     
    144146} 
    145147/*-----------------------------------------------------------------------*/ 
    146   NXstatus CALLING_STYLE  NXopen(CONSTCHAR *filename, NXaccess am, NXhandle *gHandle) 
     148  NXstatus   NXopen(CONSTCHAR *filename, NXaccess am, NXhandle *gHandle) 
    147149  { 
    148150    int hdf_type=0; 
     
    275277/* ------------------------------------------------------------------------- */ 
    276278 
    277   NXstatus CALLING_STYLE NXclose (NXhandle *fid) 
     279  NXstatus NXclose (NXhandle *fid) 
    278280  {  
    279281    NXhandle hfil;  
     
    294296  /*-----------------------------------------------------------------------*/    
    295297 
    296   NXstatus CALLING_STYLE NXmakegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)  
     298  NXstatus NXmakegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)  
    297299  { 
    298300     pNexusFunction pFunc = (pNexusFunction)fid; 
     
    302304  /*------------------------------------------------------------------------*/ 
    303305 
    304   NXstatus CALLING_STYLE NXopengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 
     306  NXstatus NXopengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 
    305307  { 
    306308    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    310312  /* ------------------------------------------------------------------- */ 
    311313 
    312   NXstatus CALLING_STYLE NXclosegroup (NXhandle fid) 
     314  NXstatus NXclosegroup (NXhandle fid) 
    313315  { 
    314316    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    318320  /* --------------------------------------------------------------------- */ 
    319321   
    320   NXstatus CALLING_STYLE NXmakedata (NXhandle fid, CONSTCHAR *name, int datatype,  
     322  NXstatus NXmakedata (NXhandle fid, CONSTCHAR *name, int datatype,  
    321323                                  int rank, int dimensions[]) 
    322324  { 
     
    337339 /* --------------------------------------------------------------------- */ 
    338340   
    339   NXstatus CALLING_STYLE NXcompmakedata (NXhandle fid, CONSTCHAR *name, int datatype,  
     341  NXstatus NXcompmakedata (NXhandle fid, CONSTCHAR *name, int datatype,  
    340342                           int rank, int dimensions[],int compress_type, int chunk_size[]) 
    341343  { 
     
    356358  /* --------------------------------------------------------------------- */ 
    357359 
    358   NXstatus CALLING_STYLE NXcompress (NXhandle fid, int compress_type) 
     360  NXstatus NXcompress (NXhandle fid, int compress_type) 
    359361  { 
    360362    pNexusFunction pFunc = (pNexusFunction)fid;  
     
    365367  /* --------------------------------------------------------------------- */ 
    366368   
    367   NXstatus CALLING_STYLE NXopendata (NXhandle fid, CONSTCHAR *name) 
     369  NXstatus NXopendata (NXhandle fid, CONSTCHAR *name) 
    368370  { 
    369371    pNexusFunction pFunc = (pNexusFunction)fid;  
     
    374376  /* ----------------------------------------------------------------- */ 
    375377     
    376   NXstatus CALLING_STYLE NXclosedata (NXhandle fid) 
     378  NXstatus NXclosedata (NXhandle fid) 
    377379  {  
    378380    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    382384  /* ------------------------------------------------------------------- */ 
    383385 
    384   NXstatus CALLING_STYLE NXputdata (NXhandle fid, void *data) 
     386  NXstatus NXputdata (NXhandle fid, void *data) 
    385387  { 
    386388    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    390392  /* ------------------------------------------------------------------- */ 
    391393 
    392   NXstatus CALLING_STYLE NXputattr (NXhandle fid, CONSTCHAR *name, void *data,  
     394  NXstatus NXputattr (NXhandle fid, CONSTCHAR *name, void *data,  
    393395                                  int datalen, int iType) 
    394396  { 
     
    399401  /* ------------------------------------------------------------------- */ 
    400402 
    401   NXstatus CALLING_STYLE NXputslab (NXhandle fid, void *data, int iStart[], int iSize[]) 
     403  NXstatus NXputslab (NXhandle fid, void *data, int iStart[], int iSize[]) 
    402404  { 
    403405    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    407409  /* ------------------------------------------------------------------- */ 
    408410 
    409   NXstatus CALLING_STYLE NXgetdataID (NXhandle fid, NXlink* sRes) 
     411  NXstatus NXgetdataID (NXhandle fid, NXlink* sRes) 
    410412  {   
    411413    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    416418  /* ------------------------------------------------------------------- */ 
    417419 
    418   NXstatus CALLING_STYLE NXmakelink (NXhandle fid, NXlink* sLink) 
     420  NXstatus NXmakelink (NXhandle fid, NXlink* sLink) 
    419421  { 
    420422    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    422424  } 
    423425  /* --------------------------------------------------------------------*/ 
    424   NXstatus CALLING_STYLE NXopensourcegroup(NXhandle fid) 
     426  NXstatus NXopensourcegroup(NXhandle fid) 
    425427  { 
    426428    char target_path[512]; 
     
    437439  /*----------------------------------------------------------------------*/ 
    438440 
    439   NXstatus CALLING_STYLE NXflush(NXhandle *pHandle) 
     441  NXstatus NXflush(NXhandle *pHandle) 
    440442  { 
    441443    NXhandle hfil;  
     
    453455  /*-------------------------------------------------------------------------*/ 
    454456   
    455   NXstatus CALLING_STYLE NXmalloc (void** data, int rank,  
     457  NXstatus NXmalloc (void** data, int rank,  
    456458                                   int dimensions[], int datatype) 
    457459  { 
     
    488490  /*-------------------------------------------------------------------------*/ 
    489491 
    490   NXstatus CALLING_STYLE NXfree (void** data) 
     492  NXstatus NXfree (void** data) 
    491493  { 
    492494    if (data == NULL) { 
     
    506508            
    507509  
    508   NXstatus CALLING_STYLE NXgetnextentry (NXhandle fid, NXname name, NXname nxclass, int *datatype) 
     510  NXstatus NXgetnextentry (NXhandle fid, NXname name, NXname nxclass, int *datatype) 
    509511  { 
    510512    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    553555  /*-------------------------------------------------------------------------*/ 
    554556 
    555   NXstatus CALLING_STYLE NXgetdata (NXhandle fid, void *data) 
     557  NXstatus NXgetdata (NXhandle fid, void *data) 
    556558  { 
    557559    int status, type, rank, iDim[NX_MAXRANK]; 
     
    578580  /*-------------------------------------------------------------------------*/ 
    579581  
    580   NXstatus CALLING_STYLE NXgetinfo (NXhandle fid, int *rank,  
     582  NXstatus NXgetinfo (NXhandle fid, int *rank,  
    581583                                    int dimension[], int *iType) 
    582584  { 
     
    608610  /*-------------------------------------------------------------------------*/ 
    609611 
    610   NXstatus CALLING_STYLE NXgetslab (NXhandle fid, void *data,  
     612  NXstatus NXgetslab (NXhandle fid, void *data,  
    611613                                    int iStart[], int iSize[]) 
    612614  { 
     
    618620  /*-------------------------------------------------------------------------*/ 
    619621 
    620   NXstatus CALLING_STYLE NXgetnextattr (NXhandle fileid, NXname pName, 
     622  NXstatus NXgetnextattr (NXhandle fileid, NXname pName, 
    621623                                     int *iLength, int *iType) 
    622624  { 
     
    628630  /*-------------------------------------------------------------------------*/ 
    629631 
    630   NXstatus CALLING_STYLE NXgetattr (NXhandle fid, char *name, void *data, int* datalen, int* iType) 
     632  NXstatus NXgetattr (NXhandle fid, char *name, void *data, int* datalen, int* iType) 
    631633  { 
    632634    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    637639  /*-------------------------------------------------------------------------*/ 
    638640 
    639   NXstatus CALLING_STYLE NXgetattrinfo (NXhandle fid, int *iN) 
     641  NXstatus NXgetattrinfo (NXhandle fid, int *iN) 
    640642  { 
    641643    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    646648  /*-------------------------------------------------------------------------*/ 
    647649 
    648   NXstatus CALLING_STYLE NXgetgroupID (NXhandle fileid, NXlink* sRes) 
     650  NXstatus NXgetgroupID (NXhandle fileid, NXlink* sRes) 
    649651  { 
    650652    pNexusFunction pFunc = (pNexusFunction)fileid; 
     
    654656  /*-------------------------------------------------------------------------*/ 
    655657 
    656   NXstatus CALLING_STYLE NXgetgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) 
     658  NXstatus NXgetgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) 
    657659  { 
    658660    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    663665  /*-------------------------------------------------------------------------*/ 
    664666 
    665   NXstatus CALLING_STYLE NXsameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID) 
     667  NXstatus NXsameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID) 
    666668  { 
    667669    pNexusFunction pFunc = (pNexusFunction)fileid; 
     
    671673  /*-------------------------------------------------------------------------*/ 
    672674   
    673   NXstatus CALLING_STYLE NXinitattrdir (NXhandle fid) 
     675  NXstatus NXinitattrdir (NXhandle fid) 
    674676  { 
    675677    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    678680  /*-------------------------------------------------------------------------*/ 
    679681   
    680   NXstatus CALLING_STYLE NXsetnumberformat (NXhandle fid,  
     682  NXstatus NXsetnumberformat (NXhandle fid,  
    681683                                            int type, char *format) 
    682684  { 
     
    699701  /*-------------------------------------------------------------------------*/ 
    700702  
    701   NXstatus CALLING_STYLE NXinitgroupdir (NXhandle fid) 
     703  NXstatus NXinitgroupdir (NXhandle fid) 
    702704  { 
    703705    pNexusFunction pFunc = (pNexusFunction)fid; 
     
    928930} 
    929931/*---------------------------------------------------------------------*/ 
    930 NXstatus CALLING_STYLE NXopenpath(NXhandle hfil, CONSTCHAR *path) 
     932NXstatus NXopenpath(NXhandle hfil, CONSTCHAR *path) 
    931933{ 
    932934  int status, run = 1; 
     
    965967} 
    966968/*---------------------------------------------------------------------*/ 
    967 NXstatus CALLING_STYLE NXopengrouppath(NXhandle hfil, CONSTCHAR *path) 
     969NXstatus NXopengrouppath(NXhandle hfil, CONSTCHAR *path) 
    968970{ 
    969971  int status, run = 1; 
     
    10821084   * instead, but that would mean writing far more wrappers 
    10831085   */ 
    1084   NXstatus CALLING_STYLE NXfopen(char * filename, NXaccess* am,  
     1086  NXstatus NXfopen(char * filename, NXaccess* am,  
    10851087                                 NexusFunction* pHandle) 
    10861088  { 
     
    11071109 * a temporary copy as NXclose will try to free() this 
    11081110 */ 
    1109   NXstatus CALLING_STYLE NXfclose (NexusFunction* pHandle) 
     1111  NXstatus NXfclose (NexusFunction* pHandle) 
    11101112  { 
    11111113    NXhandle h; 
     
    11191121   
    11201122/*---------------------------------------------------------------------*/   
    1121   NXstatus CALLING_STYLE NXfflush(NexusFunction* pHandle) 
     1123  NXstatus NXfflush(NexusFunction* pHandle) 
    11221124  { 
    11231125    NXhandle h; 
     
    11301132  } 
    11311133/*----------------------------------------------------------------------*/ 
    1132   NXstatus CALLING_STYLE NXfmakedata(NXhandle fid, char *name, int *pDatatype, 
     1134  NXstatus NXfmakedata(NXhandle fid, char *name, int *pDatatype, 
    11331135                int *pRank, int dimensions[]) 
    11341136  { 
     
    11581160 
    11591161 
    1160   NXstatus CALLING_STYLE NXfcompmakedata(NXhandle fid, char *name,  
     1162  NXstatus NXfcompmakedata(NXhandle fid, char *name,  
    11611163                int *pDatatype, 
    11621164                int *pRank, int dimensions[], 
     
    11911193  } 
    11921194/*-----------------------------------------------------------------------*/ 
    1193   NXstatus CALLING_STYLE NXfcompress(NXhandle fid, int *compr_type) 
     1195  NXstatus NXfcompress(NXhandle fid, int *compr_type) 
    11941196  {  
    11951197      return NXcompress(fid,*compr_type); 
    11961198  } 
    11971199/*-----------------------------------------------------------------------*/ 
    1198   NXstatus CALLING_STYLE NXfputattr(NXhandle fid, char *name, void *data,  
     1200  NXstatus NXfputattr(NXhandle fid, char *name, void *data,  
    11991201                                   int *pDatalen, int *pIType) 
    12001202  { 
     
    12151217          return ret; 
    12161218  } 
     1219 
     1220/* 
     1221 * windows stdcall aliases 
     1222 */ 
     1223#ifdef _WIN32 
     1224 
     1225NXstatus __stdcall NXISETCACHE(long newVal) 
     1226{ 
     1227    return NXsetcache(newVal); 
     1228} 
     1229 
     1230void __stdcall NXNXNXREPORTERROR(void *pData, char *string) 
     1231{ 
     1232    NXNXNXReportError(pData, string); 
     1233} 
     1234      
     1235NXstatus __stdcall NXIOPEN(CONSTCHAR *filename, NXaccess am, NXhandle *gHandle) 
     1236{ 
     1237    return NXopen(filename, am, gHandle); 
     1238} 
     1239 
     1240NXstatus __stdcall NXICLOSE(NXhandle *fid) 
     1241{ 
     1242    return NXclose(fid); 
     1243} 
     1244 
     1245NXstatus __stdcall NXIFLUSH(NXhandle* pHandle) 
     1246{ 
     1247    return NXflush(pHandle); 
     1248} 
     1249 
     1250NXstatus __stdcall NXIMAKEGROUP(NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass) 
     1251{ 
     1252    return NXmakegroup(handle, name, NXclass); 
     1253} 
     1254 
     1255NXstatus __stdcall NXIOPENGROUP(NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass) 
     1256{ 
     1257    return NXopengroup(handle, name, NXclass); 
     1258} 
     1259 
     1260NXstatus __stdcall NXIOPENPATH(NXhandle handle, CONSTCHAR *path) 
     1261{ 
     1262    return NXopenpath(handle, path); 
     1263} 
     1264 
     1265NXstatus __stdcall NXIOPENGROUPPATH (NXhandle handle, CONSTCHAR *path) 
     1266{ 
     1267    return NXopengrouppath(handle, path); 
     1268} 
     1269 
     1270NXstatus __stdcall NXICLOSEGROUP(NXhandle handle) 
     1271{ 
     1272    return NXclosegroup(handle); 
     1273} 
     1274   
     1275NXstatus __stdcall NXIMAKEDATA (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]) 
     1276{ 
     1277    return NXmakedata (handle, label, datatype, rank, dim); 
     1278} 
     1279 
     1280NXstatus __stdcall NXICOMPMAKEDATA (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]) 
     1281{ 
     1282    return NXcompmakedata (handle, label, datatype, rank, dim, comp_typ, bufsize); 
     1283} 
     1284 
     1285NXstatus __stdcall NXICOMPRESS (NXhandle handle, int compr_type) 
     1286{ 
     1287    return NXcompress (handle, compr_type); 
     1288} 
     1289 
     1290NXstatus __stdcall NXIOPENDATA (NXhandle handle, CONSTCHAR* label) 
     1291{ 
     1292    return NXopendata (handle, label); 
     1293} 
     1294 
     1295NXstatus __stdcall NXICLOSEDATA(NXhandle handle) 
     1296{ 
     1297    return NXclosedata(handle); 
     1298} 
     1299 
     1300NXstatus __stdcall NXIPUTDATA(NXhandle handle, void* data) 
     1301{ 
     1302    return NXputdata(handle, data); 
     1303} 
     1304 
     1305NXstatus __stdcall NXIPUTATTR(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType) 
     1306{ 
     1307    return NXputattr(handle, name, data, iDataLen, iType); 
     1308} 
     1309 
     1310NXstatus __stdcall NXIPUTSLAB(NXhandle handle, void* data, int start[], int size[]) 
     1311{ 
     1312    return NXputslab(handle, data, start, size); 
     1313} 
     1314 
     1315NXstatus __stdcall NXIGETDATAID(NXhandle handle, NXlink* pLink) 
     1316{ 
     1317    return NXgetdataID(handle, pLink); 
     1318} 
     1319 
     1320NXstatus __stdcall NXIMAKELINK(NXhandle handle, NXlink* pLink) 
     1321{ 
     1322    return NXmakelink(handle, pLink); 
     1323} 
     1324 
     1325NXstatus __stdcall NXIOPENSOURCEGROUP(NXhandle handle) 
     1326{ 
     1327    return NXopensourcegroup(handle); 
     1328} 
     1329 
     1330NXstatus __stdcall NXIGETDATA(NXhandle handle, void* data) 
     1331{ 
     1332    return NXgetdata(handle, data); 
     1333} 
     1334 
     1335NXstatus __stdcall NXIGETINFO(NXhandle handle, int* rank, int dimension[], int* datatype) 
     1336{ 
     1337    return NXgetinfo(handle, rank, dimension, datatype); 
     1338} 
     1339 
     1340NXstatus __stdcall NXIGETNEXTENTRY(NXhandle handle, NXname name, NXname nxclass, int* datatype) 
     1341{ 
     1342    return NXgetnextentry(handle, name, nxclass, datatype); 
     1343} 
     1344 
     1345NXstatus __stdcall NXIGETSLAB(NXhandle handle, void* data, int start[], int size[]) 
     1346{ 
     1347    return NXgetslab(handle, data, start, size); 
     1348} 
     1349 
     1350NXstatus __stdcall NXIGETNEXTATTR(NXhandle handle, NXname pName, int *iLength, int *iType) 
     1351{ 
     1352    return NXgetnextattr(handle, pName, iLength, iType); 
     1353} 
     1354 
     1355NXstatus __stdcall NXIGETATTR(NXhandle handle, char* name, void* data, int* iDataLen, int* iType) 
     1356{ 
     1357    return NXgetattr(handle, name, data, iDataLen, iType); 
     1358} 
     1359 
     1360NXstatus __stdcall NXIGETATTRINFO(NXhandle handle, int* no_items) 
     1361{ 
     1362    return NXgetattrinfo(handle, no_items); 
     1363} 
     1364 
     1365NXstatus __stdcall NXIGETGROUPID(NXhandle handle, NXlink* pLink) 
     1366{ 
     1367    return NXgetgroupID(handle, pLink); 
     1368} 
     1369 
     1370NXstatus __stdcall NXIGETGROUPINFO(NXhandle handle, int* no_items, NXname name, NXname nxclass) 
     1371{ 
     1372    return NXgetgroupinfo(handle, no_items, name, nxclass); 
     1373} 
     1374 
     1375NXstatus __stdcall NXISAMEID(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID) 
     1376{ 
     1377    return NXsameID(handle, pFirstID, pSecondID); 
     1378} 
     1379 
     1380NXstatus __stdcall NXIINITGROUPDIR(NXhandle handle) 
     1381{ 
     1382    return  NXinitgroupdir(handle); 
     1383} 
     1384NXstatus __stdcall NXIINITATTRDIR(NXhandle handle) 
     1385{ 
     1386    return  NXinitattrdir(handle); 
     1387} 
     1388NXstatus __stdcall NXISETNUMBERFORMAT(NXhandle handle, int type, char *format) 
     1389{ 
     1390    return  NXsetnumberformat(handle,type, format); 
     1391} 
     1392 
     1393NXstatus __stdcall NXIMALLOC(void** data, int rank, int dimensions[], int datatype) 
     1394{ 
     1395    return NXmalloc(data, rank, dimensions, datatype); 
     1396} 
     1397 
     1398NXstatus __stdcall NXIFREE(void** data) 
     1399{ 
     1400    return NXfree(data); 
     1401} 
     1402 
     1403#if 0 
     1404/*----------------------------------------------------------------------- 
     1405    NAPI internals  
     1406------------------------------------------------------------------------*/ 
     1407extern  void  NXMSetError(void *pData, void (*ErrFunc)(void *pD, char *text)); 
     1408extern void (*NXIReportError)(void *pData,char *text); 
     1409extern void *NXpData; 
     1410extern char *NXIformatNeXusTime(); 
     1411#endif 
     1412 
     1413/* FORTRAN internals */ 
     1414 
     1415NXstatus __stdcall NXIFOPEN(char * filename, NXaccess* am,  
     1416                                        NexusFunction* pHandle) 
     1417{ 
     1418    return NXfopen(filename, am, pHandle); 
     1419} 
     1420 
     1421NXstatus __stdcall NXIFCLOSE (NexusFunction* pHandle) 
     1422{ 
     1423  return  NXfclose (pHandle); 
     1424} 
     1425 
     1426NXstatus __stdcall NXIFPUTATTR(NXhandle fid, char *name, void *data,  
     1427                                   int *pDatalen, int *pIType) 
     1428{ 
     1429  return  NXfputattr(fid, name, data, pDatalen, pIType); 
     1430} 
     1431 
     1432NXstatus __stdcall NXIFCOMPRESS(NXhandle fid, int *compr_type) 
     1433{ 
     1434  return  NXfcompress(fid, compr_type); 
     1435} 
     1436 
     1437NXstatus __stdcall NXIFCOMPMAKEDATA(NXhandle fid, char *name,  
     1438                int *pDatatype, 
     1439                int *pRank, int dimensions[], 
     1440                int *compression_type, int chunk[]) 
     1441{ 
     1442  return  NXfcompmakedata(fid, name, pDatatype, pRank, dimensions, 
     1443                compression_type, chunk); 
     1444} 
     1445 
     1446NXstatus __stdcall NXIFMAKEDATA(NXhandle fid, char *name, int *pDatatype, 
     1447                int *pRank, int dimensions[]) 
     1448{ 
     1449  return  NXfmakedata(fid, name, pDatatype, pRank, dimensions); 
     1450} 
     1451 
     1452NXstatus __stdcall NXIFFLUSH(NexusFunction* pHandle) 
     1453{ 
     1454  return NXfflush(pHandle); 
     1455} 
     1456 
     1457#endif /* _WIN32 */ 
  • trunk/src/napi4.c

    r510 r671  
    321321 
    322322 
    323    NXstatus CALLING_STYLE NX4open(CONSTCHAR *filename, NXaccess am,  
     323   NXstatus NX4open(CONSTCHAR *filename, NXaccess am,  
    324324                                  NXhandle* pHandle) 
    325325  { 
     
    455455/*-----------------------------------------------------------------------*/ 
    456456  
    457   NXstatus CALLING_STYLE NX4close (NXhandle* fid) 
     457  NXstatus NX4close (NXhandle* fid) 
    458458  { 
    459459    pNexusFile pFile = NULL; 
     
    493493 
    494494   
    495   NXstatus CALLING_STYLE NX4makegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)  
     495  NXstatus NX4makegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)  
    496496  { 
    497497    pNexusFile pFile; 
     
    537537 
    538538   
    539   NXstatus CALLING_STYLE NX4opengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 
     539  NXstatus NX4opengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 
    540540  { 
    541541    pNexusFile pFile; 
     
    571571 
    572572   
    573    NXstatus CALLING_STYLE NX4closegroup (NXhandle fid) 
     573   NXstatus NX4closegroup (NXhandle fid) 
    574574  { 
    575575    pNexusFile pFile; 
     
    604604  /* --------------------------------------------------------------------- */ 
    605605   
    606   NXstatus CALLING_STYLE NX4makedata (NXhandle fid, CONSTCHAR *name, int datatype, int rank, 
     606  NXstatus NX4makedata (NXhandle fid, CONSTCHAR *name, int datatype, int rank, 
    607607              int dimensions[]) 
    608608  { 
     
    729729   
    730730    
    731   NXstatus CALLING_STYLE NX4compmakedata (NXhandle fid, CONSTCHAR *name, int datatype, int rank, 
     731  NXstatus NX4compmakedata (NXhandle fid, CONSTCHAR *name, int datatype, int rank, 
    732732              int dimensions[],int compress_type, int chunk_size[]) 
    733733  { 
     
    896896 
    897897    
    898   NXstatus CALLING_STYLE NX4compress (NXhandle fid, int compress_type) 
     898  NXstatus NX4compress (NXhandle fid, int compress_type) 
    899899  { 
    900900    pNexusFile pFile; 
     
    960960   
    961961  
    962   NXstatus CALLING_STYLE NX4opendata (NXhandle fid, CONSTCHAR *name) 
     962  NXstatus NX4opendata (NXhandle fid, CONSTCHAR *name) 
    963963  { 
    964964    pNexusFile pFile; 
     
    10021002     
    10031003   
    1004   NXstatus CALLING_STYLE NX4closedata (NXhandle fid) 
     1004  NXstatus NX4closedata (NXhandle fid) 
    10051005  { 
    10061006    pNexusFile pFile; 
     
    10271027  /* ------------------------------------------------------------------- */ 
    10281028 
    1029   NXstatus CALLING_STYLE NX4putdata (NXhandle fid, void *data) 
     1029  NXstatus NX4putdata (NXhandle fid, void *data) 
    10301030  { 
    10311031    pNexusFile pFile; 
     
    10641064 
    10651065  NXstatus 
    1066   CALLING_STYLE NX4putattr (NXhandle fid, CONSTCHAR *name, void *data, int datalen, int iType) 
     1066  NX4putattr (NXhandle fid, CONSTCHAR *name, void *data, int datalen, int iType) 
    10671067  { 
    10681068    pNexusFile pFile; 
     
    11271127 
    11281128    
    1129   NXstatus CALLING_STYLE NX4putslab (NXhandle fid, void *data, int iStart[], int iSize[]) 
     1129  NXstatus NX4putslab (NXhandle fid, void *data, int iStart[], int iSize[]) 
    11301130  { 
    11311131    pNexusFile pFile; 
     
    11841184  /* ------------------------------------------------------------------- */ 
    11851185 
    1186   NXstatus CALLING_STYLE NX4getdataID (NXhandle fid, NXlink* sRes) 
     1186  NXstatus NX4getdataID (NXhandle fid, NXlink* sRes) 
    11871187  { 
    11881188    pNexusFile pFile; 
     
    12071207 
    12081208   
    1209   NXstatus CALLING_STYLE NX4makelink (NXhandle fid, NXlink* sLink) 
     1209  NXstatus NX4makelink (NXhandle fid, NXlink* sLink) 
    12101210  { 
    12111211    pNexusFile pFile; 
     
    12341234  /*----------------------------------------------------------------------*/ 
    12351235 
    1236   NXstatus CALLING_STYLE NX4flush(NXhandle *pHandle) 
     1236  NXstatus NX4flush(NXhandle *pHandle) 
    12371237  { 
    12381238    char *pFileName, *pCopy = NULL; 
     
    13151315   
    13161316 
    1317   NXstatus CALLING_STYLE NX4getnextentry (NXhandle fid, NXname name, NXname nxclass, int *datatype) 
     1317  NXstatus NX4getnextentry (NXhandle fid, NXname name, NXname nxclass, int *datatype) 
    13181318  { 
    13191319    pNexusFile pFile; 
     
    13971397 
    13981398    
    1399   NXstatus CALLING_STYLE NX4getdata (NXhandle fid, void *data) 
     1399  NXstatus NX4getdata (NXhandle fid, void *data) 
    14001400  { 
    14011401    pNexusFile pFile; 
     
    14221422 
    14231423  NXstatus 
    1424   CALLING_STYLE NX4getinfo (NXhandle fid, int *rank, int dimension[],  
     1424  NX4getinfo (NXhandle fid, int *rank, int dimension[],  
    14251425                            int *iType) 
    14261426  { 
     
    14541454 
    14551455   
    1456   NXstatus CALLING_STYLE NX4getslab (NXhandle fid, void *data, int iStart[], int iSize[]) 
     1456  NXstatus NX4getslab (NXhandle fid, void *data, int iStart[], int iSize[]) 
    14571457  { 
    14581458    pNexusFile pFile; 
     
    14971497  /*-------------------------------------------------------------------------*/ 
    14981498 
    1499   NXstatus CALLING_STYLE NX4getnextattr (NXhandle fileid, NXname pName, 
     1499  NXstatus NX4getnextattr (NXhandle fileid, NXname pName, 
    15001500           int *iLength, int *iType) 
    15011501  { 
     
    15401540 
    15411541 
    1542   NXstatus CALLING_STYLE NX4getattr (NXhandle fid, char *name, void *data, int* datalen, int* iType) 
     1542  NXstatus NX4getattr (NXhandle fid, char *name, void *data, int* datalen, int* iType) 
    15431543  { 
    15441544    pNexusFile pFile; 
     
    16491649 
    16501650     
    1651   NXstatus CALLING_STYLE NX4getattrinfo (NXhandle fid, int *iN) 
     1651  NXstatus NX4getattrinfo (NXhandle fid, int *iN) 
    16521652  { 
    16531653    pNexusFile pFile; 
     
    16751675  /*-------------------------------------------------------------------------*/ 
    16761676 
    1677   NXstatus CALLING_STYLE NX4getgroupID (NXhandle fileid, NXlink* sRes) 
     1677  NXstatus NX4getgroupID (NXhandle fileid, NXlink* sRes) 
    16781678  { 
    16791679    pNexusFile pFile; 
     
    16981698 
    16991699  NXstatus 
    1700   CALLING_STYLE NX4getgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) 
     1700  NX4getgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) 
    17011701  { 
    17021702    pNexusFile pFile; 
     
    17191719  /* ------------------------------------------------------------------- */ 
    17201720 
    1721   NXstatus CALLING_STYLE NX4sameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID) 
     1721  NXstatus NX4sameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID) 
    17221722  { 
    17231723    pNexusFile pFile; 
     
    17341734 
    17351735   
    1736   NXstatus CALLING_STYLE NX4initattrdir (NXhandle fid) 
     1736  NXstatus NX4initattrdir (NXhandle fid) 
    17371737  { 
    17381738    pNexusFile pFile; 
     
    17511751  
    17521752   
    1753   NXstatus CALLING_STYLE NX4initgroupdir (NXhandle fid) 
     1753  NXstatus NX4initgroupdir (NXhandle fid) 
    17541754  { 
    17551755    pNexusFile pFile; 
  • trunk/src/napi5.c

    r510 r671  
    6363   warning 
    6464*/ 
    65 NXstatus CALLING_STYLE NX5closegroup (NXhandle fid); 
     65NXstatus NX5closegroup (NXhandle fid); 
    6666   
    6767  /*--------------------------------------------------------------------*/ 
     
    113113   ---------------------------------------------------------------------*/ 
    114114 
    115   NXstatus CALLING_STYLE NX5open(CONSTCHAR *filename, NXaccess am,  
     115  NXstatus NX5open(CONSTCHAR *filename, NXaccess am,  
    116116                                 NXhandle* pHandle) 
    117117  { 
     
    298298  /* ------------------------------------------------------------------------- */ 
    299299 
    300   NXstatus CALLING_STYLE NX5close (NXhandle* fid) 
     300  NXstatus NX5close (NXhandle* fid) 
    301301  { 
    302302    pNexusFile5 pFile = NULL; 
     
    345345 /*-----------------------------------------------------------------------*/    
    346346 
    347   NXstatus CALLING_STYLE NX5makegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)  
     347  NXstatus NX5makegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)  
    348348  { 
    349349    pNexusFile5 pFile; 
     
    401401  } 
    402402 
    403   NXstatus CALLING_STYLE NX5opengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 
     403  NXstatus NX5opengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 
    404404  { 
    405405 
     
    503503  /* ------------------------------------------------------------------- */ 
    504504 
    505   NXstatus CALLING_STYLE NX5closegroup (NXhandle fid) 
     505  NXstatus NX5closegroup (NXhandle fid) 
    506506  { 
    507507    pNexusFile5 pFile; 
     
    560560 /* --------------------------------------------------------------------- */ 
    561561 
    562   NXstatus CALLING_STYLE NX5compmakedata (NXhandle fid, CONSTCHAR *name,  
     562  NXstatus NX5compmakedata (NXhandle fid, CONSTCHAR *name,  
    563563                                          int datatype,  
    564564                                          int rank, int dimensions[], 
     
    729729  /* --------------------------------------------------------------------- */ 
    730730 
    731   NXstatus CALLING_STYLE NX5makedata (NXhandle fid, CONSTCHAR *name, int datatype,  
     731  NXstatus NX5makedata (NXhandle fid, CONSTCHAR *name, int datatype,  
    732732                                  int rank, int dimensions[]) 
    733733  { 
     
    753753  /* --------------------------------------------------------------------- */ 
    754754 
    755   NXstatus CALLING_STYLE NX5compress (NXhandle fid, int compress_type) 
     755  NXstatus NX5compress (NXhandle fid, int compress_type) 
    756756  { 
    757757    printf(" NXcompress ERROR: NeXus API  based  on  HDF5  doesn't support\n"); 
     
    764764  /* --------------------------------------------------------------------- */ 
    765765 
    766   NXstatus CALLING_STYLE NX5opendata (NXhandle fid, CONSTCHAR *name) 
     766  NXstatus NX5opendata (NXhandle fid, CONSTCHAR *name) 
    767767  { 
    768768    pNexusFile5 pFile; 
     
    804804  /* ----------------------------------------------------------------- */ 
    805805 
    806   NXstatus CALLING_STYLE NX5closedata (NXhandle fid) 
     806  NXstatus NX5closedata (NXhandle fid) 
    807807  { 
    808808    pNexusFile5 pFile; 
     
    825825 
    826826 
    827   NXstatus CALLING_STYLE NX5putdata (NXhandle fid, void *data) 
     827  NXstatus NX5putdata (NXhandle fid, void *data) 
    828828  { 
    829829    pNexusFile5 pFile; 
     
    847847  /* ------------------------------------------------------------------- */ 
    848848 
    849   NXstatus CALLING_STYLE NX5putattr (NXhandle fid, CONSTCHAR *name, void *data,  
     849  NXstatus NX5putattr (NXhandle fid, CONSTCHAR *name, void *data,  
    850850                                  int datalen, int iType) 
    851851  { 
     
    964964  /* ------------------------------------------------------------------- */ 
    965965  
    966   NXstatus CALLING_STYLE NX5putslab (NXhandle fid, void *data, int iStart[], int iSize[]) 
     966  NXstatus NX5putslab (NXhandle fid, void *data, int iStart[], int iSize[]) 
    967967  { 
    968968    pNexusFile5 pFile; 
     
    10331033  /* ------------------------------------------------------------------- */ 
    10341034 
    1035   NXstatus CALLING_STYLE NX5getdataID (NXhandle fid, NXlink* sRes) 
     1035  NXstatus NX5getdataID (NXhandle fid, NXlink* sRes) 
    10361036  { 
    10371037    pNexusFile5 pFile; 
     
    10531053 /* ------------------------------------------------------------------- */ 
    10541054  
    1055   NXstatus CALLING_STYLE NX5makelink (NXhandle fid, NXlink* sLink) 
     1055  NXstatus NX5makelink (NXhandle fid, NXlink* sLink) 
    10561056  { 
    10571057    pNexusFile5 pFile; 
     
    11241124  /*----------------------------------------------------------------------*/ 
    11251125 
    1126   NXstatus CALLING_STYLE NX5flush(NXhandle *pHandle) 
     1126  NXstatus NX5flush(NXhandle *pHandle) 
    11271127  { 
    11281128    pNexusFile5 pFile = NULL; 
     
    12031203  /*-------------------------------------------------------------------------*/ 
    12041204 
    1205   NXstatus CALLING_STYLE NX5getgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) 
     1205  NXstatus NX5getgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) 
    12061206  { 
    12071207    pNexusFile5 pFile; 
     
    12401240  /*-------------------------------------------------------------------------*/ 
    12411241 
    1242   NXstatus CALLING_STYLE NX5getnextentry (NXhandle fid,NXname name, NXname nxclass, int *datatype) 
     1242  NXstatus NX5getnextentry (NXhandle fid,NXname name, NXname nxclass, int *datatype) 
    12431243  { 
    12441244    pNexusFile5 pFile; 
     
    13821382   /*-------------------------------------------------------------------------*/ 
    13831383 
    1384    NXstatus CALLING_STYLE NX5getdata (NXhandle fid, void *data) 
     1384   NXstatus NX5getdata (NXhandle fid, void *data) 
    13851385   { 
    13861386     pNexusFile5 pFile; 
     
    14651465   /*-------------------------------------------------------------------------*/ 
    14661466 
    1467    NXstatus CALLING_STYLE NX5getinfo (NXhandle fid, int *rank, int dimension[], int *iType) 
     1467   NXstatus NX5getinfo (NXhandle fid, int *rank, int dimension[], int *iType) 
    14681468   { 
    14691469     pNexusFile5 pFile; 
     
    15481548   /*-------------------------------------------------------------------------*/ 
    15491549 
    1550    NXstatus CALLING_STYLE NX5getslab (NXhandle fid, void *data, int iStart[], int iSize[]) 
     1550   NXstatus NX5getslab (NXhandle fid, void *data, int iStart[], int iSize[]) 
    15511551   { 
    15521552     pNexusFile5 pFile; 
     
    16831683   } 
    16841684 
    1685    NXstatus CALLING_STYLE NX5getnextattr (NXhandle fileid, NXname pName, 
     1685   NXstatus NX5getnextattr (NXhandle fileid, NXname pName, 
    16861686                                       int *iLength, int *iType) 
    16871687   { 
     
    18331833   /*-------------------------------------------------------------------------*/ 
    18341834 
    1835    NXstatus CALLING_STYLE NX5getattr (NXhandle fid, char *name, void *data, int* datalen, int* iType) 
     1835   NXstatus NX5getattr (NXhandle fid, char *name, void *data, int* datalen, int* iType) 
    18361836   { 
    18371837     pNexusFile5 pFile; 
     
    19351935   /*-------------------------------------------------------------------------*/ 
    19361936 
    1937    NXstatus CALLING_STYLE NX5getattrinfo (NXhandle fid, int *iN) 
     1937   NXstatus NX5getattrinfo (NXhandle fid, int *iN) 
    19381938   { 
    19391939     pNexusFile5 pFile; 
     
    19971997 
    19981998   /*-------------------------------------------------------------------------*/ 
    1999    NXstatus CALLING_STYLE NX5getgroupID (NXhandle fileid, NXlink* sRes) 
     1999   NXstatus NX5getgroupID (NXhandle fileid, NXlink* sRes) 
    20002000  { 
    20012001    pNexusFile5 pFile; 
     
    20222022  /* ------------------------------------------------------------------- */ 
    20232023 
    2024   NXstatus CALLING_STYLE NX5sameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID) 
     2024  NXstatus NX5sameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID) 
    20252025  { 
    20262026    pNexusFile5 pFile; 
     
    20382038 /*-------------------------------------------------------------------------*/ 
    20392039  
    2040   NXstatus CALLING_STYLE NX5initattrdir (NXhandle fid) 
     2040  NXstatus NX5initattrdir (NXhandle fid) 
    20412041  { 
    20422042    pNexusFile5 pFile; 
     
    20492049  /*-------------------------------------------------------------------------*/ 
    20502050  
    2051   NXstatus CALLING_STYLE NX5initgroupdir (NXhandle fid) 
     2051  NXstatus NX5initgroupdir (NXhandle fid) 
    20522052  { 
    20532053    pNexusFile5 pFile; 
  • trunk/src/napiu.c

    r433 r671  
    4242        } 
    4343 
    44  NXstatus CALLING_STYLE NXUwriteglobals(NXhandle file_id, const char* user, const char* affiliation, const char* address, const char* telephone_number, const char* fax_number, const char* email) 
     44 NXstatus NXUwriteglobals(NXhandle file_id, const char* user, const char* affiliation, const char* address, const char* telephone_number, const char* fax_number, const char* email) 
    4545 { 
    4646        DO_GLOBAL(user); 
     
    5454 
    5555 /* NXUwritegroup creates and leaves open a group */ 
    56  NXstatus CALLING_STYLE NXUwritegroup(NXhandle file_id, const char* group_name, const char* group_class) 
     56 NXstatus NXUwritegroup(NXhandle file_id, const char* group_name, const char* group_class) 
    5757 { 
    5858           int status; 
     
    6565 } 
    6666 
    67  NXstatus CALLING_STYLE NXUwritedata(NXhandle file_id, const char* data_name, const void* data, int data_type, int rank, const int dim[], const char* units, const int start[], const int size[]) 
     67 NXstatus NXUwritedata(NXhandle file_id, const char* data_name, const void* data, int data_type, int rank, const int dim[], const char* units, const int start[], const int size[]) 
    6868 { 
    6969         return NX_OK; 
    7070 } 
    7171 
    72  NXstatus CALLING_STYLE NXUreaddata(NXhandle file_id, const char* data_name, void* data, char* units, const int start[], const int size[]) 
     72 NXstatus NXUreaddata(NXhandle file_id, const char* data_name, void* data, char* units, const int start[], const int size[]) 
    7373 { 
    7474         return NX_OK; 
    7575 } 
    7676 
    77  NXstatus CALLING_STYLE NXUwritehistogram(NXhandle file_id, const char* data_name, const void* data, const char* units) 
     77 NXstatus NXUwritehistogram(NXhandle file_id, const char* data_name, const void* data, const char* units) 
    7878 { 
    7979         return NX_OK; 
    8080 } 
    8181 
    82  NXstatus CALLING_STYLE NXUreadhistogram(NXhandle file_id, const char* data_name, void* data, char* units) 
     82 NXstatus NXUreadhistogram(NXhandle file_id, const char* data_name, void* data, char* units) 
    8383 { 
    8484         return NX_OK; 
     
    8989 
    9090 /* NXUsetcompress sets the default compression type and minimum size */ 
    91  NXstatus CALLING_STYLE NXUsetcompress(NXhandle file_id, int comp_type, int comp_size) 
     91 NXstatus NXUsetcompress(NXhandle file_id, int comp_type, int comp_size) 
    9292 { 
    9393         int status; 
     
    111111 
    112112        /* !NXUfindgroup finds if a NeXus group of the specified name exists */ 
    113  NXstatus CALLING_STYLE NXUfindgroup(NXhandle file_id, const char* group_name, char* group_class) 
     113 NXstatus NXUfindgroup(NXhandle file_id, const char* group_name, char* group_class) 
    114114 { 
    115115        int status, n; 
     
    123123 } 
    124124 
    125  NXstatus CALLING_STYLE NXUfindclass(NXhandle file_id, const char* group_class, char* group_name, int find_index) 
     125 NXstatus NXUfindclass(NXhandle file_id, const char* group_class, char* group_name, int find_index) 
    126126 { 
    127127         return NX_OK; 
     
    129129 
    130130/* NXUfinddata finds if a NeXus data item is in the current group */ 
    131  NXstatus CALLING_STYLE NXUfinddata(NXhandle file_id, const char* data_name) 
     131 NXstatus NXUfinddata(NXhandle file_id, const char* data_name) 
    132132 { 
    133133         return NX_OK; 
    134134 } 
    135135 
    136  NXstatus CALLING_STYLE NXUfindattr(NXhandle file_id, const char* attr_name) 
     136 NXstatus NXUfindattr(NXhandle file_id, const char* attr_name) 
    137137 { 
    138138         return NX_OK; 
    139139 } 
    140140 
    141  NXstatus CALLING_STYLE NXUfindsignal(NXhandle file_id, int signal, char* data_name, int* data_rank, int* data_type, int data_dimensions[]) 
     141 NXstatus NXUfindsignal(NXhandle file_id, int signal, char* data_name, int* data_rank, int* data_type, int data_dimensions[]) 
    142142 { 
    143143         return NX_OK; 
    144144 } 
    145145 
    146  NXstatus CALLING_STYLE NXUfindaxis(NXhandle file_id, int axis, int primary, char* data_name, int* data_rank, int* data_type, int data_dimensions[]) 
     146 NXstatus NXUfindaxis(NXhandle file_id, int axis, int primary, char* data_name, int* data_rank, int* data_type, int data_dimensions[]) 
    147147 { 
    148148         return NX_OK; 
    149149 } 
    150150 
    151  NXstatus CALLING_STYLE NXUfindlink(NXhandle file_id, NXlink* group_id, const char* group_class) 
     151 NXstatus NXUfindlink(NXhandle file_id, NXlink* group_id, const char* group_class) 
    152152 { 
    153153         return NX_OK; 
    154154 } 
    155155 
    156  NXstatus CALLING_STYLE NXUresumelink(NXhandle file_id, NXlink group_id) 
     156 NXstatus NXUresumelink(NXhandle file_id, NXlink group_id) 
    157157 { 
    158158         return NX_OK; 
  • trunk/src/nxxml.c

    r509 r671  
    9393} 
    9494/*-----------------------------------------------------------------------*/ 
    95 NXstatus CALLING_STYLE NXXopen(CONSTCHAR *filename, NXaccess am,  
     95NXstatus NXXopen(CONSTCHAR *filename, NXaccess am,  
    9696                               NXhandle* pHandle) { 
    9797  pXMLNexus xmlHandle = NULL; 
     
    172172} 
    173173/*----------------------------------------------------------------------*/ 
    174 NXstatus CALLING_STYLE NXXclose (NXhandle* fid){ 
     174NXstatus NXXclose (NXhandle* fid){ 
    175175  pXMLNexus xmlHandle = NULL; 
    176176  FILE *fp = NULL; 
     
    194194} 
    195195/*----------------------------------------------------------------------*/ 
    196 NXstatus CALLING_STYLE NXXflush(NXhandle *fid){ 
     196NXstatus NXXflush(NXhandle *fid){ 
    197197  pXMLNexus xmlHandle = NULL; 
    198198  FILE *fp = NULL; 
     
    215215                   Group functions 
    216216=========================================================================*/ 
    217 NXstatus CALLING_STYLE NXXmakegroup (NXhandle fid, CONSTCHAR *name,  
     217NXstatus NXXmakegroup (NXhandle fid, CONSTCHAR *name,  
    218218                                     CONSTCHAR *nxclass){ 
    219219  pXMLNexus xmlHandle = NULL; 
     
    262262} 
    263263/*------------------------------------------------------------------------*/ 
    264 NXstatus CALLING_STYLE NXXopengroup (NXhandle fid, CONSTCHAR *name,  
     264NXstatus NXXopengroup (NXhandle fid, CONSTCHAR *name,  
    265265                                     CONSTCHAR *nxclass){ 
    266266  pXMLNexus xmlHandle = NULL; 
     
    296296} 
    297297/*----------------------------------------------------------------------*/ 
    298 NXstatus CALLING_STYLE NXXclosegroup (NXhandle fid){ 
     298NXstatus NXXclosegroup (NXhandle fid){ 
    299299  pXMLNexus xmlHandle = NULL; 
    300300  mxml_node_t *newGroup = NULL; 
     
    318318         dataset functions 
    319319=========================================================================*/ 
    320 NXstatus CALLING_STYLE NXXcompmakedata (NXhandle fid, CONSTCHAR *name,  
     320NXstatus NXXcompmakedata (NXhandle fid, CONSTCHAR *name,  
    321321                                        int datatype,  
    322322                                        int rank,  
     
    358358} 
    359359/*------------------------------------------------------------------------*/ 
    360 NXstatus CALLING_STYLE NXXmakedata (NXhandle fid,  
     360NXstatus NXXmakedata (NXhandle fid,  
    361361                                    CONSTCHAR *name, int datatype,  
    362362                                    int rank, int dimensions[]){ 
     
    454454} 
    455455/*-----------------------------------------------------------------------*/ 
    456 NXstatus CALLING_STYLE NXXopendata (NXhandle fid, CONSTCHAR *name){ 
     456NXstatus NXXopendata (NXhandle fid, CONSTCHAR *name){ 
    457457  pXMLNexus xmlHandle = NULL; 
    458458  mxml_node_t *dataNode = NULL; 
     
    493493} 
    494494/*----------------------------------------------------------------------*/ 
    495 NXstatus CALLING_STYLE NXXclosedata (NXhandle fid){ 
     495NXstatus NXXclosedata (NXhandle fid){ 
    496496  pXMLNexus xmlHandle = NULL; 
    497497 
     
    519519} 
    520520/*------------------------------------------------------------------------*/ 
    521 NXstatus CALLING_STYLE NXXputdata (NXhandle fid, void *data){ 
     521NXstatus NXXputdata (NXhandle fid, void *data){ 
    522522  pXMLNexus xmlHandle = NULL; 
    523523  mxml_node_t *userData = NULL; 
     
    551551} 
    552552/*------------------------------------------------------------------------*/ 
    553 NXstatus CALLING_STYLE NXXgetdata (NXhandle fid, void *data){ 
     553NXstatus NXXgetdata (NXhandle fid, void *data){ 
    554554  pXMLNexus xmlHandle = NULL; 
    555555  mxml_node_t *userData = NULL; 
     
    583583} 
    584584/*------------------------------------------------------------------------*/ 
    585 NXstatus CALLING_STYLE NXXgetinfo (NXhandle fid, int *rank,  
     585NXstatus NXXgetinfo (NXhandle fid, int *rank,  
    586586                                   int dimension[], int *iType){ 
    587587  pXMLNexus xmlHandle = NULL; 
     
    672672} 
    673673/*----------------------------------------------------------------------*/ 
    674 NXstatus CALLING_STYLE NXXputslab (NXhandle fid, void *data,  
     674NXstatus NXXputslab (NXhandle fid, void *data,  
    675675                                   int iStart[], int iSize[]){ 
    676676   
     
    736736} 
    737737/*----------------------------------------------------------------------*/ 
    738 NXstatus CALLING_STYLE NXXgetslab (NXhandle fid, void *data,  
     738NXstatus NXXgetslab (NXhandle fid, void *data,  
    739739                                   int iStart[], int iSize[]){ 
    740740  pXMLNexus xmlHandle = NULL; 
     
    773773} 
    774774/*----------------------------------------------------------------------*/ 
    775 static NXstatus CALLING_STYLE NXXsetnumberformat(NXhandle fid, 
     775static NXstatus NXXsetnumberformat(NXhandle fid, 
    776776                                                 int type, char *format){ 
    777777  pXMLNexus xmlHandle = NULL; 
     
    874874} 
    875875/*---------------------------------------------------------------------*/ 
    876 NXstatus CALLING_STYLE NXXputattr (NXhandle fid, CONSTCHAR *name, void *data,  
     876NXstatus NXXputattr (NXhandle fid, CONSTCHAR *name, void *data,  
    877877                                   int datalen, int iType){ 
    878878  pXMLNexus xmlHandle = NULL; 
     
    910910} 
    911911/*--------------------------------------------------------------------------*/ 
    912 NXstatus CALLING_STYLE NXXgetattr (NXhandle fid, char *name,  
     912NXstatus NXXgetattr (NXhandle fid, char *name,  
    913913                                   void *data, int* datalen, int* iType){ 
    914914  pXMLNexus xmlHandle = NULL; 
     
    10071007} 
    10081008/*====================== search functions =================================*/ 
    1009 NXstatus CALLING_STYLE NXXgetnextentry (NXhandle fid,NXname name,  
     1009NXstatus NXXgetnextentry (NXhandle fid,NXname name,  
    10101010                                        NXname nxclass, int *datatype){ 
    10111011  pXMLNexus xmlHandle = NULL; 
     
    10851085} 
    10861086/*----------------------------------------------------------------------*/ 
    1087 NX_EXTERNAL  NXstatus CALLING_STYLE NXXinitgroupdir(NXhandle fid){ 
     1087extern  NXstatus NXXinitgroupdir(NXhandle fid){ 
    10881088  pXMLNexus xmlHandle = NULL; 
    10891089  int stackPtr; 
     
    11021102} 
    11031103/*-------------------------------------------------------------------------*/ 
    1104 NXstatus CALLING_STYLE NXXgetnextattr (NXhandle fid, NXname pName, 
     1104NXstatus NXXgetnextattr (NXhandle fid, NXname pName, 
    11051105                                          int *iLength, int *iType){ 
    11061106  pXMLNexus xmlHandle = NULL; 
     
    11581158} 
    11591159/*-------------------------------------------------------------------------*/ 
    1160 NX_EXTERNAL  NXstatus CALLING_STYLE NXXinitattrdir(NXhandle fid){ 
     1160extern  NXstatus NXXinitattrdir(NXhandle fid){ 
    11611161  pXMLNexus xmlHandle = NULL; 
    11621162  int stackPtr; 
     
    11811181} 
    11821182/*-------------------------------------------------------------------------*/ 
    1183 NXstatus CALLING_STYLE NXXgetgroupinfo (NXhandle fid, int *iN,  
     1183NXstatus NXXgetgroupinfo (NXhandle fid, int *iN,  
    11841184                                        NXname pName, NXname pClass){ 
    11851185  pXMLNexus xmlHandle = NULL; 
     
    12141214} 
    12151215/*----------------------------------------------------------------------*/ 
    1216 NXstatus CALLING_STYLE NXXgetattrinfo (NXhandle fid, int *iN){ 
     1216NXstatus NXXgetattrinfo (NXhandle fid, int *iN){ 
    12171217  pXMLNexus xmlHandle = NULL; 
    12181218  mxml_node_t *current = NULL; 
     
    13291329} 
    13301330/*--------------------------------------------------------------------*/ 
    1331 NXstatus CALLING_STYLE NXXgetdataID (NXhandle fid, NXlink* sRes){ 
     1331NXstatus NXXgetdataID (NXhandle fid, NXlink* sRes){ 
    13321332  pXMLNexus xmlHandle = NULL; 
    13331333  mxml_node_t *current = NULL; 
     
    13521352} 
    13531353/*--------------------------------------------------------------------*/ 
    1354 NXstatus CALLING_STYLE NXXgetgroupID (NXhandle fid, NXlink* sRes){ 
     1354NXstatus NXXgetgroupID (NXhandle fid, NXlink* sRes){ 
    13551355  pXMLNexus xmlHandle = NULL; 
    13561356  mxml_node_t *current = NULL; 
     
    13801380} 
    13811381/*-----------------------------------------------------------------------*/ 
    1382 NXstatus CALLING_STYLE NXXmakelink (NXhandle fid, NXlink* sLink){ 
     1382NXstatus NXXmakelink (NXhandle fid, NXlink* sLink){ 
    13831383  pXMLNexus xmlHandle = NULL; 
    13841384  mxml_node_t *current = NULL, *linkNode = NULL; 
     
    14061406} 
    14071407/*----------------------------------------------------------------------*/ 
    1408 NXstatus CALLING_STYLE NXXsameID (NXhandle fileid, NXlink* pFirstID,  
     1408NXstatus NXXsameID (NXhandle fileid, NXlink* pFirstID,  
    14091409                                  NXlink* pSecondID){ 
    14101410  if(strcmp(pFirstID->targetPath,pSecondID->targetPath) == 0) { 
Note: See TracChangeset for help on using the changeset viewer.