-#pragma comment (compiler)
-//#pragma comment (date)
-//#pragma comment (timestamp)
-#pragma pagesize(80)
-
-
#include "Local.h" /* standard header file */
#include "Metar.h" /* standard header file */
void DcdMTRmk( char **, Decoded_METAR * );
-#pragma page(1)
-#pragma subtitle(" ")
-#pragma subtitle("subtitle - Decode METAR report. ")
/********************************************************************/
/* */
/* Title: SaveTokenString */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static char **SaveTokenString ( char *string , char *delimeters )
{
return token;
}
-#pragma page(1)
-#pragma subtitle(" ")
-#pragma subtitle("subtitle - Decode METAR report. ")
/********************************************************************/
/* */
/* Title: freeTokens */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static void freeTokens( char **token )
{
}
return;
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: InitDcdMETAR */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static void InitDcdMETAR( Decoded_METAR *Mptr )
{
return;
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: ResetMETARGroup */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
-static int ResetMETARGroup( int StartGroup,
+/*static int ResetMETARGroup( int StartGroup,
int SaveStartGroup )
{
return (++SaveStartGroup);
}
+*/
-#pragma page(1)
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: CodedHgt2Meters */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static int CodedHgt2Meters( char *token, Decoded_METAR *Mptr )
{
return (hgt*30);
}
-#pragma page(1)
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isPartObscur */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isPartObscur( char **string, Decoded_METAR *Mptr,
int *NDEX )
{
return FALSE;
}
-#pragma page(1)
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isCldLayer */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isCldLayer( char *token )
{
nisdigit((token+3),3)) ? TRUE:FALSE;
}
-#pragma page(1)
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isCAVOK */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isCAVOK( char *token, Decoded_METAR *Mptr, int *NDEX )
{
}
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: parseCldData */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static void parseCldData( char *token, Decoded_METAR *Mptr, int next)
{
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isSkyCond */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isSkyCond( char **skycond, Decoded_METAR *Mptr,
int *NDEX )
{
else
return FALSE;
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: prevailVSBY */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static float prevailVSBY( char *visibility )
{
float Miles_vsby;
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isVisibility */
/* */
/********************************************************************/
-#pragma page(1)
static bool isVisibility( char **visblty, Decoded_METAR *Mptr,
int *NDEX )
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: vrblVsby */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool vrblVsby( char *string1, char *string2,
Decoded_METAR *Mptr, int *NDEX )
{
char buf[ 6 ];
- int numerator,
- denominator;
+ /* int numerator,
+ denominator; */
char *slash,
*V_char,
*temp;
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isMinMaxWinDir */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isMinMaxWinDir( char *string, Decoded_METAR *Mptr,
int *NDEX )
{
return FALSE;
}
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isRVR */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isRVR( char *token, Decoded_METAR *Mptr, int *NDEX,
int ndex )
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isAltimStng */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isAltimStng( char *token, Decoded_METAR *Mptr, int *NDEX )
{
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isTempGroup */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isTempGroup( char *token, Decoded_METAR *Mptr, int *NDEX)
{
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isWxToken */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
-static bool isWxToken( char *token )
+/*static bool isWxToken( char *token )
{
int i;
if( token == NULL )
return FALSE;
- for( i = 0; i < strlen(token); i++ )
+ for( i = 0; i < (int)strlen(token); i++ )
{
if( !(isalpha(*(token+i)) || *(token+i) == '+' ||
*(token+i) == '-' ) )
return FALSE;
}
return TRUE;
-}
+}*/
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isPresentWX */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isPresentWX( char *token, Decoded_METAR *Mptr,
int *NDEX, int *next )
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isStnID */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isStnId( char *stnID, Decoded_METAR *Mptr, int *NDEX)
{
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isCodeName */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isCodeName( char *codename, Decoded_METAR *Mptr, int *NDEX)
{
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isNIL */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isNIL( char *token, Decoded_METAR *Mptr, int *NDEX)
{
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isAUTO */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isAUTO( char *token, Decoded_METAR *Mptr, int *NDEX)
{
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isCOR */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isCOR ( char *token, Decoded_METAR *Mptr, int *NDEX)
{
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isTimeUTC */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isTimeUTC( char *UTC, Decoded_METAR *Mptr, int *NDEX )
{
}
-#pragma subtitle(" ")
-#pragma page(1)
-#pragma subtitle("subtitle - description ")
/********************************************************************/
/* */
/* Title: isWindData */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
static bool isWindData( char *wind, Decoded_METAR *Mptr, int *NDEX )
{
return FALSE;
}
-#pragma page(1)
-#pragma subtitle(" ")
-#pragma subtitle("subtitle - Decode METAR report. ")
/********************************************************************/
/* */
/* Title: DcdMETAR */
/* None. */
/* */
/********************************************************************/
-#pragma page(1)
int DcdMETAR( char *string , Decoded_METAR *Mptr )
CAVOK, visibility,
RVR, presentWX, PartialObscur,
skyCond, tempGroup,
- altimStng, NotIDed = 99} StartGroup,
- SaveStartGroup,
- MetarGroup;
+ altimStng, NotIDed = 99 }
+ StartGroup, SaveStartGroup, MetarGroup;
- WindStruct *WinDataPtr;
+ // WindStruct *WinDataPtr;
- int ndex,
- NDEX,
- i,
- jkj,
- j;
+ int ndex;
+ int NDEX;
+ // int i, jkj, j;
char **token,