mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-08 22:03:10 +03:00
move ARRAY_SIZE() definition to utils.h
This commit is contained in:
1 parent
30a53f823a
commit
f64f68871e
2 files changed
+5
-2
No files matched your search
@@ -20,10 +20,9 @@
|
||||
#include <stdint.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "utils.h"
|
||||
#include "iso7816_fidi.h"
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
|
||||
/* Table 7 of ISO 7816-3:2006 */
|
||||
static const uint16_t fi_table[] = {
|
||||
372, 372, 558, 744, 1116, 1488, 1860, 0,
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
|
||||
Reference in new issue
Block a user