Print this page
5396 gcc 4.8.2 longjmp errors for cscope-fast

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/cscope-fast/display.c
          +++ new/usr/src/tools/cscope-fast/display.c
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
  27   27   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   28   * Use is subject to license terms.
       29 + * Copyright 2015 Gary Mills
  29   30   */
  30   31  
  31      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  32      -
  33   32  /*
  34   33   *      cscope - interactive C symbol cross-reference
  35   34   *
  36   35   *      display functions
  37   36   */
  38   37  
  39   38  #include "global.h"
  40   39  #include "version.h"    /* FILEVERSION and FIXVERSION */
  41   40  #include <curses.h>     /* COLS and LINES */
  42   41  #include <setjmp.h>     /* jmp_buf */
↓ open down ↓ 337 lines elided ↑ open up ↑
 380  379  jumpback(int sig)
 381  380  {
 382  381          longjmp(env, 1);
 383  382  }
 384  383  
 385  384  BOOL
 386  385  search(void)
 387  386  {
 388  387          char    *egreperror = NULL;     /* egrep error message */
 389  388          FINDINIT rc = NOERROR;          /* findinit return code */
 390      -        SIGTYPE (*savesig)();           /* old value of signal */
      389 +        SIGTYPE (*volatile savesig)() = SIG_DFL; /* old value of signal */
 391  390          FP      f;                      /* searching function */
 392  391          char    *s;
 393  392          int     c;
 394  393  
 395  394          /* note: the pattern may have been a cscope argument */
 396  395          if (caseless == YES) {
 397  396                  for (s = pattern; *s != '\0'; ++s) {
 398  397                          *s = tolower(*s);
 399  398                  }
 400  399          }
↓ open down ↓ 276 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX