Skip to content

Commit

Permalink
Clean up and comment the use of local for static.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Oct 26, 2016
1 parent ce12c5c commit bedea24
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions adler32.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

#include "zutil.h"

#define local static

local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2));

#define BASE 65521U /* largest prime smaller than 65536 */
Expand Down
2 changes: 0 additions & 2 deletions crc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@

#include "zutil.h" /* for STDC and FAR definitions */

#define local static

/* Definitions for doing the crc four data bytes at a time. */
#if !defined(NOBYFOUR) && defined(Z_U4)
# define BYFOUR
Expand Down
4 changes: 3 additions & 1 deletion gzguts.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
#ifndef local
# define local static
#endif
/* compile with -Dlocal if your debugger can't find static symbols */
/* since "static" is used to mean two completely different things in C, we
define "local" for the non-static meaning of "static", for readability
(compile with -Dlocal if your debugger can't find static symbols) */

/* gz* functions always use library allocation functions */
#ifndef STDC
Expand Down
4 changes: 3 additions & 1 deletion zutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
#ifndef local
# define local static
#endif
/* compile with -Dlocal if your debugger can't find static symbols */
/* since "static" is used to mean two completely different things in C, we
define "local" for the non-static meaning of "static", for readability
(compile with -Dlocal if your debugger can't find static symbols) */

typedef unsigned char uch;
typedef uch FAR uchf;
Expand Down

0 comments on commit bedea24

Please sign in to comment.