Skip to content

Commit

Permalink
mv __arraycount() define to file.h
Browse files Browse the repository at this point in the history
  • Loading branch information
zoulasc committed Sep 16, 2011
1 parent 0d853ac commit a1b0f6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/cdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "file.h"

#ifndef lint
FILE_RCSID("@(#)$File: cdf.c,v 1.44 2011/08/26 13:38:28 christos Exp $")
FILE_RCSID("@(#)$File: cdf.c,v 1.45 2011/08/28 08:38:48 christos Exp $")
#endif

#include <assert.h>
Expand All @@ -57,10 +57,6 @@ FILE_RCSID("@(#)$File: cdf.c,v 1.44 2011/08/26 13:38:28 christos Exp $")

#include "cdf.h"

#ifndef __arraycount
#define __arraycount(a) (sizeof(a) / sizeof(a[0]))
#endif

#ifdef CDF_DEBUG
#define DPRINTF(a) printf a, fflush(stdout)
#else
Expand Down
6 changes: 5 additions & 1 deletion src/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
/*
* file.h - definitions for file(1) program
* @(#)$File: file.h,v 1.132 2011/03/20 20:36:52 christos Exp $
* @(#)$File: file.h,v 1.133 2011/05/13 22:15:40 christos Exp $
*/

#ifndef __file_h__
Expand Down Expand Up @@ -86,6 +86,10 @@
#endif
#define public

#ifndef __arraycount
#define __arraycount(a) (sizeof(a) / sizeof(a[0]))
#endif

#ifndef __GNUC_PREREQ__
#ifdef __GNUC__
#define __GNUC_PREREQ__(x, y) \
Expand Down

0 comments on commit a1b0f6a

Please sign in to comment.