00001 #include <string.h>
00002 #include <stdio.h>
00003 #include "stack-c.h"
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 static void not __PARAMS((int * iv1,int *iv2,int size));
00017
00018 int intex3c(char *fname)
00019 {
00020 static int l1,m1, n1,l2;
00021 static int minlhs=1, minrhs=1, maxlhs=1, maxrhs=1;
00022
00023 CheckRhs(minrhs,maxrhs) ;
00024 CheckLhs(minlhs,maxlhs) ;
00025
00026
00027
00028 GetRhsVar(1, "b", &m1, &n1, &l1);
00029
00030
00031
00032
00033
00034
00035
00036 CreateVar(2, "b",&m1,&n1,&l2);
00037
00038
00039
00040 not(istk(l2),istk(l1),m1*n1);
00041
00042 LhsVar(1) = 2;
00043 return 0;
00044 }
00045
00046
00047 static void not( iv1,iv2, size)
00048 int *iv1,*iv2;
00049 int size;
00050 {
00051 int i;
00052 for ( i=0 ; i < size ; i++) iv1[i] = ! iv2[i];
00053 }