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,37 **** /* * 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> --- 26,35 ----
*** 946,956 **** item = item1; enditem = item; } POSTING * ! boolfile(INVCONTROL *invcntl, long *num, int bool) { ENTRY *entryptr; FILE *file; char *ptr; unsigned long *ptr2; --- 944,954 ---- item = item1; enditem = item; } POSTING * ! boolfile(INVCONTROL *invcntl, long *num, int op) { ENTRY *entryptr; FILE *file; char *ptr; unsigned long *ptr2;
*** 963,983 **** 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) { case OR: case NOT: if (*num == 0) { *num = numitems; return (item); } } /* make room for the new set */ u = 0; ! switch (bool) { case AND: case NOT: newsetp = set1p = item; break; --- 961,981 ---- 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 (op) { case OR: case NOT: if (*num == 0) { *num = numitems; return (item); } } /* make room for the new set */ u = 0; ! switch (op) { case AND: case NOT: newsetp = set1p = item; break;
*** 1016,1026 **** } file = invcntl->postfile; (void) fseek(file, (long)*ptr2, SEEK_SET); read_next_posting(invcntl, &posting); newsetc = 0; ! switch (bool) { case OR: /* while something in both sets */ set1p = item; newsetp = newitem; for (set1c = 0, set2c = 0; --- 1014,1024 ---- } file = invcntl->postfile; (void) fseek(file, (long)*ptr2, SEEK_SET); read_next_posting(invcntl, &posting); newsetc = 0; ! switch (op) { case OR: /* while something in both sets */ set1p = item; newsetp = newitem; for (set1c = 0, set2c = 0;