FreeCalypso > hg > gsm-codec-lib
comparison libgsmefr/enc_create.c @ 541:23656d874524
libgsmefr: add const words with struct sizes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 28 Sep 2024 06:00:34 +0000 |
parents | 722959d9410f |
children |
comparison
equal
deleted
inserted
replaced
540:5595293e4f29 | 541:23656d874524 |
---|---|
7 #include "gsm_efr.h" | 7 #include "gsm_efr.h" |
8 #include "typedef.h" | 8 #include "typedef.h" |
9 #include "cnst.h" | 9 #include "cnst.h" |
10 #include "enc_state.h" | 10 #include "enc_state.h" |
11 | 11 |
12 const unsigned EFR_encoder_state_size = sizeof(struct EFR_encoder_state); | |
13 | |
12 struct EFR_encoder_state *EFR_encoder_create(int dtx) | 14 struct EFR_encoder_state *EFR_encoder_create(int dtx) |
13 { | 15 { |
14 struct EFR_encoder_state *st; | 16 struct EFR_encoder_state *st; |
15 | 17 |
16 st = malloc(sizeof(struct EFR_encoder_state)); | 18 st = malloc(sizeof(struct EFR_encoder_state)); |