| 40 | } |
| 41 | |
| 42 | static int encode_data_gcr(uint8_t gcr) |
| 43 | { |
| 44 | switch (gcr) |
| 45 | { |
| 46 | #define GCR_ENTRY(gcr, data) \ |
| 47 | case data: \ |
| 48 | return gcr; |
| 49 | #include "data_gcr.h" |
| 50 | #undef GCR_ENTRY |
| 51 | } |
| 52 | return -1; |
| 53 | } |
| 54 | |
| 55 | /* This is extremely inspired by the MESS implementation, written by Nathan |
| 56 | * Woods and R. Belmont: |