Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RAD_Const_Warn.c
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Sacado Package
4 //
5 // Copyright 2006 NTESS and the Sacado contributors.
6 // SPDX-License-Identifier: LGPL-2.1-or-later
7 // *****************************************************************************
8 // @HEADER
9 
10 #include <stdio.h>
11 
13 
14  typedef struct
16  void *var; /* address of the offending variable */
17  struct ADvari_head *next;
18  int gcgen;
19  int opno;
20  /* Double Val; */
21  /* mutable Double aval; */
22  } ADvari_head;
23 
24  int
26 {
27  ADvari_head *V = (ADvari_head*)v;
28 
30  fprintf(stderr, "RAD_Const_Warn var #%lx had gcgen = %d, opno = %d\n",
31  (unsigned long)V->var, V->gcgen, -1 - V->opno);
32  return 1;
33  }
struct ADvari_head ADvari_head
int RAD_Const_Warn_warnlim
int RAD_Const_Warn(void *v)
struct ADvari_head * next
int RAD_Const_Warn_warned