/*  @(#) $Header: /usr/local/scalawags_cvs/Scalawags/Frc2006/template/template.c,v 1.3 2006/02/20 18:41:35 abrown Exp $
 * Description: 
 *	explain
 * Limitations:
 *
 * Author:
 *	"fullname" <bozo@foo>
 */

#include "template.h"
 
// ----------------------------------------------------------------
int template(int value1, int value2)
{
#define MAXVALUE 127

  if( value1>MAXVALUE || value2>MAXVALUE )
  {
    reportstart(__FILE__,__LINE__,ERROR,"");
    if( value1>MAXVALUE )
    {
      reporttext("value1=");
      reportint(value1);
      reporttext(". setting to maxvalue of ");
      reportint(MAXVALUE);
      reporttext(".  ");
      value1=MAXVALUE;
    }
    if( value2>MAXVALUE )
    {
      reporttext("value2=");
      reportint(value2);
      reporttext(". setting to maxvalue of ");
      reportint(MAXVALUE);
      reporttext(".");
      value2=MAXVALUE;
    }
    reportend("");
  }
  return( value1+value2 );
} // template()

/* ----------------------------------------------------------------
 * $Log: template.c,v $
 * Revision 1.3  2006/02/20 18:41:35  abrown
 * Change comments to // style.
 *
 * Revision 1.2  2005/01/30 02:55:12  abrown
 * Fix startfunction/template to do the filtering right, include files
 * in the right directory and things like that.
 *
 * Revision 1.1  2005/01/30 00:24:59  abrown
 * Auto generation from the templates.
 *
 * Revision 1.2  2004/11/07 23:35:54  abrown
 * Fixed the headers.
 */


syntax highlighted by Code2HTML, v. 0.9.1