/*****************************************************************/
/**                                                             **/
/**             (C) Copyright 1992 the Regents of the           **/
/**        University of California.  All Rights Reserved.      **/
/**                                                             **/
/**        This work was produced under the sponsorship of      **/
/**         the U.S. Department of Energy.  The Government      **/
/**                retains certain rights therein.              **/
/**                                                             **/
/**                         Written by                          **/
/**         Distributed Programming Environments Project        **/
/**           Computer Software and Networking Division,        **/
/**                   Livermore Computer Center,                **/
/**            Lawrence Livermore National Laboratory           **/
/**                                                             **/
/*****************************************************************/

static char sccs_id_message_verify[] = "@(#)message_verify.c	1.8 10/20/92 06:11:34 LLNL ";

/*
	Embedded Language for Remote Operations Services
	ELROS

	AUTHOR:		James A. Guse
			Network Systems Division

	DATE WRITTEN:	7/17/90


PURPOSE:
	This program links to the error message data structure and checks
	it for proper ordering.  It fails if there is a problem.

IN:

OUT:
	Announces if the verification fails

	
MODIFICATION HISTORY:


*/


#include <elros/exceptions.h>

main()
{
   int i;

   for (i=0;i<__RO_MESSAGES_COUNT-1;i++)
   {
      if (__RO_Messages[i].code >= __RO_Messages[i+1].code)
         printf("Verification of messages at #%d failed!\n",i),exit(1);
   }
   printf("%d error messages verified\n",__RO_MESSAGES_COUNT);
   return(0);
}

