FreeCalypso > hg > gsm-codec-lib
annotate hrutil/Makefile @ 585:3c6bf0d26ee7 default tip
TW-TS-005 reader: fix maximum line length bug
TW-TS-005 section 4.1 states:
The maximum allowed length of each line is 80 characters, not
including the OS-specific newline encoding.
The implementation of this line length limit in the TW-TS-005 hex file
reader function in the present suite was wrong, such that lines of
the full maximum length could not be read. Fix it.
Note that this bug affects comment lines too, not just actual RTP
payloads. Neither Annex A nor Annex B features an RTP payload format
that goes to the maximum of 40 bytes, but if a comment line goes to
the maximum allowed length of 80 characters not including the
terminating newline, the bug will be triggered, necessitating
the present fix.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 25 Feb 2025 07:49:28 +0000 |
parents | fc7a59deb3c3 |
children |
rev | line source |
---|---|
570
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
1 PROGS= gsmhr-cod-craft gsmhr-cod-parse gsmhr-cod2hex gsmhr-dec-craft \ |
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
2 gsmhr-dec-parse gsmhr-dec2hex gsmhr-hex2dec gsmhr-hex2rpf gsmhr-rpf2hex\ |
584
fc7a59deb3c3
hrutil: new program gsmhr-tfo-xfrm
Mychaela Falconia <falcon@freecalypso.org>
parents:
570
diff
changeset
|
3 gsmhr-tfo-xfrm tw5b-dump |
515
bb36ef735f25
hrutil: starting with gsmhr-cod-parse
Mychaela Falconia <falcon@freecalypso.org>
parents:
472
diff
changeset
|
4 LIBHR1= ../libgsmhr1/libgsmhr1.a |
557
129c895a0564
hrutil: new program gsmhr-cod2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
518
diff
changeset
|
5 LIBTEST=../libtest/libtest.a |
562
901753f59f88
gsmhr-cod-parse: read native endian by default
Mychaela Falconia <falcon@freecalypso.org>
parents:
559
diff
changeset
|
6 LIBS= ${LIBHR1} ${LIBTEST} |
453
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
436
diff
changeset
|
7 |
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
436
diff
changeset
|
8 include ../config.defs |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
27
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
10 all: ${PROGS} |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
570
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
12 gsmhr-cod-craft: cod-craft.o ${LIBHR1} |
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
13 ${CC} ${CFLAGS} -o $@ $^ |
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
14 |
562
901753f59f88
gsmhr-cod-parse: read native endian by default
Mychaela Falconia <falcon@freecalypso.org>
parents:
559
diff
changeset
|
15 gsmhr-cod-parse: cod-parse.o print-frame.o read-cod.o ${LIBS} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
16 ${CC} ${CFLAGS} -o $@ $^ |
24
94f18b720f1e
new debug utility gsmfr-preproc
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
17 |
562
901753f59f88
gsmhr-cod-parse: read native endian by default
Mychaela Falconia <falcon@freecalypso.org>
parents:
559
diff
changeset
|
18 gsmhr-cod2hex: cod2hex.o read-cod.o tw5b-out-cod.o ${LIBS} |
557
129c895a0564
hrutil: new program gsmhr-cod2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
518
diff
changeset
|
19 ${CC} ${CFLAGS} -o $@ $^ |
129c895a0564
hrutil: new program gsmhr-cod2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
518
diff
changeset
|
20 |
518
087a88d25ba2
new program gsmhr-dec-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
517
diff
changeset
|
21 gsmhr-dec-craft: dec-craft.o ${LIBHR1} |
087a88d25ba2
new program gsmhr-dec-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
517
diff
changeset
|
22 ${CC} ${CFLAGS} -o $@ $^ |
087a88d25ba2
new program gsmhr-dec-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
517
diff
changeset
|
23 |
564
30c57cf6e87d
gsmhr-dec-parse: read native endian by default
Mychaela Falconia <falcon@freecalypso.org>
parents:
562
diff
changeset
|
24 gsmhr-dec-parse: dec-parse.o print-frame.o read-dec.o ${LIBS} |
517
2d703e1e9107
hrutil: implement gsmhr-dec-parse
Mychaela Falconia <falcon@freecalypso.org>
parents:
515
diff
changeset
|
25 ${CC} ${CFLAGS} -o $@ $^ |
2d703e1e9107
hrutil: implement gsmhr-dec-parse
Mychaela Falconia <falcon@freecalypso.org>
parents:
515
diff
changeset
|
26 |
568
0affb05c2ce2
hrutil: new program gsmhr-dec2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
567
diff
changeset
|
27 gsmhr-dec2hex: dec2hex.o read-dec.o ${LIBS} |
0affb05c2ce2
hrutil: new program gsmhr-dec2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
567
diff
changeset
|
28 ${CC} ${CFLAGS} -o $@ $^ |
0affb05c2ce2
hrutil: new program gsmhr-dec2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
567
diff
changeset
|
29 |
565
ec146b5b9c91
hrutil: new program gsmhr-hex2dec
Mychaela Falconia <falcon@freecalypso.org>
parents:
564
diff
changeset
|
30 gsmhr-hex2dec: hex2dec.o ${LIBS} |
ec146b5b9c91
hrutil: new program gsmhr-hex2dec
Mychaela Falconia <falcon@freecalypso.org>
parents:
564
diff
changeset
|
31 ${CC} ${CFLAGS} -o $@ $^ |
ec146b5b9c91
hrutil: new program gsmhr-hex2dec
Mychaela Falconia <falcon@freecalypso.org>
parents:
564
diff
changeset
|
32 |
566
62fe499ffc15
hrutil: new program gsmhr-hex2rpf
Mychaela Falconia <falcon@freecalypso.org>
parents:
565
diff
changeset
|
33 gsmhr-hex2rpf: hex2rpf.o ${LIBS} |
62fe499ffc15
hrutil: new program gsmhr-hex2rpf
Mychaela Falconia <falcon@freecalypso.org>
parents:
565
diff
changeset
|
34 ${CC} ${CFLAGS} -o $@ $^ |
62fe499ffc15
hrutil: new program gsmhr-hex2rpf
Mychaela Falconia <falcon@freecalypso.org>
parents:
565
diff
changeset
|
35 |
567
2fcb6b27ee9b
hrutil: new program gsmhr-rpf2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
566
diff
changeset
|
36 gsmhr-rpf2hex: rpf2hex.o ${LIBHR1} |
2fcb6b27ee9b
hrutil: new program gsmhr-rpf2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
566
diff
changeset
|
37 ${CC} ${CFLAGS} -o $@ $^ |
2fcb6b27ee9b
hrutil: new program gsmhr-rpf2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
566
diff
changeset
|
38 |
584
fc7a59deb3c3
hrutil: new program gsmhr-tfo-xfrm
Mychaela Falconia <falcon@freecalypso.org>
parents:
570
diff
changeset
|
39 gsmhr-tfo-xfrm: tfo-xfrm.o tw5b-out-cod.o ${LIBS} |
fc7a59deb3c3
hrutil: new program gsmhr-tfo-xfrm
Mychaela Falconia <falcon@freecalypso.org>
parents:
570
diff
changeset
|
40 ${CC} ${CFLAGS} -o $@ $^ |
fc7a59deb3c3
hrutil: new program gsmhr-tfo-xfrm
Mychaela Falconia <falcon@freecalypso.org>
parents:
570
diff
changeset
|
41 |
562
901753f59f88
gsmhr-cod-parse: read native endian by default
Mychaela Falconia <falcon@freecalypso.org>
parents:
559
diff
changeset
|
42 tw5b-dump: print-frame.o tw5b-dump.o ${LIBS} |
559
707d6f7a54dc
hrutil: new program tw5b-dump
Mychaela Falconia <falcon@freecalypso.org>
parents:
557
diff
changeset
|
43 ${CC} ${CFLAGS} -o $@ $^ |
707d6f7a54dc
hrutil: new program tw5b-dump
Mychaela Falconia <falcon@freecalypso.org>
parents:
557
diff
changeset
|
44 |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
45 install: |
460
cb1d1ea7f2c5
new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
46 mkdir -p ${DESTDIR}${bindir} |
cb1d1ea7f2c5
new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
47 install -c ${PROGS} ${DESTDIR}${bindir} |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
48 |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 clean: |
27
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
50 rm -f *.o *.out ${PROGS} |