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>

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/cscope-fast/invlib.h
          +++ new/usr/src/tools/cscope-fast/invlib.h
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21   */
  22   22  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
  27   27   * Copyright 1999, 2003 Sun Microsystems, Inc.  All rights reserved.
  28   28   * Use is subject to license terms.
  29   29   */
  30   30  
  31      -#pragma ident   "%Z%%M% %I%     %E% SMI"
       31 +#ifndef INVLIB_H
       32 +#define INVLIB_H
  32   33  
  33   34  /* inverted index definitions */
  34   35  
  35   36  /* postings temporary file long number coding into characters */
  36   37  #define BASE            95      /* 127 - ' ' */
  37   38  #define PRECISION       5       /* maximum digits after converting a long */
  38   39  
  39   40  /* inverted index access parameters */
  40   41  #define INVAVAIL        0
  41   42  #define INVBUSY         1
↓ open down ↓ 39 lines elided ↑ open up ↑
  81   82          long    lineoffset;     /* source line database offset */
  82   83          long    fcnoffset;      /* function name database offset */
  83   84          long    fileindex : 24; /* source file name index */
  84   85          long    type : 8;       /* reference type (mark character) */
  85   86  } POSTING;
  86   87  
  87   88  extern  long    *srcoffset;     /* source file name database offsets */
  88   89  extern  int     nsrcoffset;     /* number of file name database offsets */
  89   90  
  90   91  extern void     boolclear(void);
  91      -extern POSTING  *boolfile(INVCONTROL *invcntl, long *num, int bool);
       92 +extern POSTING  *boolfile(INVCONTROL *invcntl, long *num, int op);
  92   93  extern void     invclose(INVCONTROL *invcntl);
  93   94  extern long     invfind(INVCONTROL *invcntl, char *searchterm);
  94   95  extern int      invforward(INVCONTROL *invcntl);
  95   96  extern int      invopen(INVCONTROL *invcntl, char *invname, char *invpost,
  96   97                      int stat);
  97   98  extern int      invterm(INVCONTROL *invcntl, char *term);
  98   99  extern long     invmake(char *invname, char *invpost, FILE *infile);
      100 +
      101 +#endif  /* INVLIB_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX