Ignore:
Timestamp:
Jan 31, 2012 12:13:39 PM (11 years ago)
Author:
srkline
Message:

Changes to the XOP code to upgrade to ToolKit? v6. Changes are the ones outlined in the Appendix A of the TK6 manual. SOme of the XOP support routines and the #pragma for 2-byte structures have changed. Per Howard Rodstein, there is no need to change the c files to cpp. c should work and compile just fine.

These changes work correctly on my mac. Next is to make sure that they work correctly on the two build machines.

Location:
sans/XOP_Dev/SANSAnalysis/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sans/XOP_Dev/SANSAnalysis/lib/libCylinder.c

    r736 r834  
    1212 
    1313Warning: 
    14 The call to WaveData() below returns a pointer to the middle 
     14The call to (float*)WaveData() below returns a pointer to the middle 
    1515of an unlocked Macintosh handle. In the unlikely event that your 
    1616calculations could cause memory to move, you should copy the coefficient 
     
    7070 
    7171Warning: 
    72 The call to WaveData() below returns a pointer to the middle 
     72The call to (float*)WaveData() below returns a pointer to the middle 
    7373of an unlocked Macintosh handle. In the unlikely event that your 
    7474calculations could cause memory to move, you should copy the coefficient 
     
    152152 
    153153Warning: 
    154 The call to WaveData() below returns a pointer to the middle 
     154The call to (float*)WaveData() below returns a pointer to the middle 
    155155of an unlocked Macintosh handle. In the unlikely event that your 
    156156calculations could cause memory to move, you should copy the coefficient 
     
    235235 
    236236Warning: 
    237 The call to WaveData() below returns a pointer to the middle 
     237The call to (float*)WaveData() below returns a pointer to the middle 
    238238of an unlocked Macintosh handle. In the unlikely event that your 
    239239calculations could cause memory to move, you should copy the coefficient 
     
    307307 
    308308Warning: 
    309 The call to WaveData() below returns a pointer to the middle 
     309The call to (float*)WaveData() below returns a pointer to the middle 
    310310of an unlocked Macintosh handle. In the unlikely event that your 
    311311calculations could cause memory to move, you should copy the coefficient 
     
    396396 
    397397Warning: 
    398 The call to WaveData() below returns a pointer to the middle 
     398The call to (float*)WaveData() below returns a pointer to the middle 
    399399of an unlocked Macintosh handle. In the unlikely event that your 
    400400calculations could cause memory to move, you should copy the coefficient 
     
    451451 
    452452Warning: 
    453 The call to WaveData() below returns a pointer to the middle 
     453The call to (float*)WaveData() below returns a pointer to the middle 
    454454of an unlocked Macintosh handle. In the unlikely event that your 
    455455calculations could cause memory to move, you should copy the coefficient 
  • sans/XOP_Dev/SANSAnalysis/lib/libSANSAnalysis.h

    r756 r834  
    157157// rather than leave it to the whim of the compiler 
    158158/* SRK08 
    159 #include "XOPStructureAlignmentTwoByte.h" 
    160  
     159#pragma pack(2) 
     160  
    161161typedef struct { 
    162162    double scale; 
     
    182182} SmearCylinderParameters; 
    183183 
    184 #include "XOPStructureAlignmentReset.h" 
     184#pragma pack() 
    185185 
    186186/// 1D scattering function 
  • sans/XOP_Dev/SANSAnalysis/lib/libSphere.c

    r821 r834  
    10571057  
    10581058        Warning: 
    1059  The call to WaveData() below returns a pointer to the middle 
     1059 The call to (float*)WaveData() below returns a pointer to the middle 
    10601060 of an unlocked Macintosh handle. In the unlikely event that your 
    10611061 calculations could cause memory to move, you should copy the coefficient 
     
    11211121 // 
    11221122        Warning: 
    1123  The call to WaveData() below returns a pointer to the middle 
     1123 The call to (float*)WaveData() below returns a pointer to the middle 
    11241124 of an unlocked Macintosh handle. In the unlikely event that your 
    11251125 calculations could cause memory to move, you should copy the coefficient 
Note: See TracChangeset for help on using the changeset viewer.