~ubuntu-branches/ubuntu/vivid/gcl/vivid

« back to all changes in this revision

Viewing changes to misc/check_obj.c

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2002-03-04 14:29:59 UTC
  • Revision ID: james.westby@ubuntu.com-20020304142959-dey14w08kr7lldu3
Tags: upstream-2.5.0.cvs20020219
ImportĀ upstreamĀ versionĀ 2.5.0.cvs20020219

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include "include.h"
 
3
#define CHECK(a,b) \
 
4
do{ i++; if ((void *) a != (void *) b) printf("differed %d\n",i);}while(0)
 
5
 
 
6
main()
 
7
{object x;
 
8
 int i=0;
 
9
CHECK(&x->s.s_self,&x->ust.ust_self);
 
10
CHECK(&x->s.s_fillp,&x->ust.ust_fillp);
 
11
CHECK(&x->v.v_fillp,&x->ust.ust_fillp);
 
12
CHECK(&x->v.v_dim,&x->ust.ust_dim);
 
13
CHECK(&x->cfn.,&x->ust.ust_dim); 
 
14
}