Changeset 7504


Ignore:
Timestamp:
06/27/18 19:19:28 (5 months ago)
Author:
baker
Message:

to make sure PRIdPTR gets defined in inttypes.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/data_sources/psnadsend/getconfig.cpp

    r7494 r7504  
    11/* getconfig.cpp */ 
    22 
     3#define __STDC_FORMAT_MACROS            // Define PRIdPTR in inttypes.h 
     4 
    35#include "PsnAdSend.h" 
    46 
    57/* The configuration file parameters */ 
    6 char CommPortHostStr[256];      // Comm port to use or TCP/IP Server 
     8char CommPortHostStr[256];              // Comm port to use or TCP/IP Server 
    79int TcpPort;                            // Port number if TCP/IP Connection 
    810int TcpMode;                            // If 1 CommPortHostStr = TCP/IP Host  
    9 int TotalChans;                 // Number of channels in ChanList (AdcChans + AddChans) 
     11int TotalChans;                         // Number of channels in ChanList (AdcChans + AddChans) 
    1012int AdcChans;                           // Number of real ADC channels from the "Chan" scnl line 
    1113int AddChans;                           // Number of additional or derived channels from the "AddChan" scnl line 
    12 unsigned char ModuleId;         // Module id of this program 
     14unsigned char ModuleId;                 // Module id of this program 
    1315int     ChanRate;                               // Rate in samples per second per channel 
    1416LONG OutKey;                            // Key to ring where traces will live 
     
    1618int HeartbeatInt;                       // Heartbeat interval in seconds 
    1719int UpdateSysClock;                     // Use a good IRIGE time to update the PC clock 
    18 SCNL ChanList[ MAX_CHANNELS]; // Array to fill with SCNL values 
     20SCNL ChanList[ MAX_CHANNELS];           // Array to fill with SCNL values 
    1921int NoDataTimeout;                      // Take action if no data sent for this many seconds 
    2022int TimeRefType;                        // Time reference type. See .d file for types 
     
    3335int ExitOnTimeout;                      // If 1, Exit on data timeout.  
    3436intptr_t Debug;                         // If 1, display/log debug information 
    35 int SystemTimeError;            // Time test between A/D board and System time. 0 = no time test 
     37int SystemTimeError;                    // Time test between A/D board and System time. 0 = no time test 
    3638int PPSTimeError;                       // Report error if 1PPS diff exceeds this amount in milliseconds 
    37 int NoLockTimeError;            // Report error if time reference not locked exceeds this amount in minutes 
    38 int FilterSysTimeDiff;          // if 1 do not log System to A/D board time difference messages 
    39 int FilterGPSMessages;          // if 1 do not log GPSRef messages 
     39int NoLockTimeError;                    // Report error if time reference not locked exceeds this amount in minutes 
     40int FilterSysTimeDiff;                  // if 1 do not log System to A/D board time difference messages 
     41int FilterGPSMessages;                  // if 1 do not log GPSRef messages 
    4042int StartTimeError;                     // Set system time using GPS at startup if error exceeds this amount in seconds 
    4143 
    42 char TimeFileName[ 256 ];       // Root name and where to save the time information 
     44char TimeFileName[ 256 ];               // Root name and where to save the time information 
    4345 
    4446#define NCOMMAND        15              // Number of mandatory commands in the config file 
Note: See TracChangeset for help on using the changeset viewer.