Print this page
2944 cscope-fast/invlib.[ch] use reserved word as identifier
Reviewed by: Albert Lee <trisk@nexenta.com>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Joerg Schilling <Joerg.Schilling@fokus.fraunhofer.de>

@@ -26,12 +26,10 @@
 /*
  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <ctype.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/sysmacros.h>
 #include <sys/byteorder.h>

@@ -946,11 +944,11 @@
         item = item1;
         enditem = item;
 }
 
 POSTING *
-boolfile(INVCONTROL *invcntl, long *num, int bool)
+boolfile(INVCONTROL *invcntl, long *num, int op)
 {
         ENTRY   *entryptr;
         FILE    *file;
         char    *ptr;
         unsigned long   *ptr2;

@@ -963,21 +961,21 @@
         entryptr = (ENTRY *) (invcntl->logblk + 12) + invcntl->keypnt;
         ptr = invcntl->logblk + entryptr->offset;
         ptr2 = ((unsigned long *)ptr) +
             (entryptr->size + (sizeof (long) - 1)) / sizeof (long);
         *num = entryptr->post;
-        switch (bool) {
+        switch (op) {
         case OR:
         case NOT:
                 if (*num == 0) {
                         *num = numitems;
                         return (item);
                 }
         }
         /* make room for the new set */
         u = 0;
-        switch (bool) {
+        switch (op) {
         case AND:
         case NOT:
                 newsetp = set1p = item;
                 break;
 

@@ -1016,11 +1014,11 @@
         }
         file = invcntl->postfile;
         (void) fseek(file, (long)*ptr2, SEEK_SET);
         read_next_posting(invcntl, &posting);
         newsetc = 0;
-        switch (bool) {
+        switch (op) {
         case OR:
                 /* while something in both sets */
                 set1p = item;
                 newsetp = newitem;
                 for (set1c = 0, set2c = 0;