Skip to content

Commit

Permalink
move ARRAY_LEN into recur-common.h
Browse files Browse the repository at this point in the history
gstrnnca can share it.
  • Loading branch information
douglasbagnall committed Aug 8, 2015
1 parent 312370e commit 1f297e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gstrnnca.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ G_BEGIN_DECLS

#define RNNCA_DEFAULT_PATTERN "Y00120111C0111"

#define ARRAY_LEN(x) sizeof(x) / sizeof((x)[0])

static const int RNNCA_POSITIONAL_LEN = 2;

typedef struct _RnncaFrame {
Expand Down
2 changes: 2 additions & 0 deletions recur-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

#define VERBOSE_DEBUG 0

#define ARRAY_LEN(x) sizeof(x) / sizeof((x)[0])

#define ROTATE(x, k) (((x) << (k)) | ((x) >> (sizeof(x) * 8 - (k))))

#define streq(a,b) (strcmp((a),(b)) == 0)
Expand Down

0 comments on commit 1f297e5

Please sign in to comment.