renamings

This commit is contained in:
Michael Sippel 2025-01-29 00:06:39 +01:00
parent d0230cd3c4
commit 7eace1d85c
Signed by: senvas
GPG key ID: F96CF119C34B64A6
8 changed files with 14 additions and 14 deletions

View file

@ -1,13 +1,13 @@
LIB_DIR=$(shell pwd)/lib
TARGETS=lib/libmorph_length_prefix.so lib/libmorph_posint.so test
TARGETS=lib/libmorph_length-prefix.so lib/libmorph_posint.so test
all: $(TARGETS)
lib/libmorph_%.so: src/%.c
$(CC) -O3 -shared -o $@ -fPIC -Iinclude $<
test: test.c lib/libmorph_length_prefix.so lib/libmorph_posint.so
$(CC) -O3 -L$(LIB_DIR) -o $@ -Iinclude $< -llength_prefix -lposint
test: test.c lib/libmorph_length-prefix.so lib/libmorph_posint.so
$(CC) -O3 -L$(LIB_DIR) -o $@ -Iinclude $< -lmorph_length-prefix -lmorph_posint
clean:
rm $(TARGETS)

View file

@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <morphisms/length_prefix.h>
#include <morphisms/length-prefix.h>
int morph_digit_as_char_to_uint8(
char const * restrict src,

View file

@ -1,9 +1,9 @@
morph_string_as_nullterm_to_length_prefix ()
[~<ValueDelim '\0'> Char ~ Ascii]
--> [~<LengthPrefix x86.UInt64> Char ~ Ascii]
@lib/array.so:src/array.c
@lib/libmorph_length-prefix.so:src/length_prefix.c
morph_string_as_length_prefix_to_nullterm ()
[~<LengthPrefix x86.UInt64> Char ~ Ascii]
--> [~<ValueDelim '\0'> Char ~ Ascii]
@lib/array.so:src/array.c
@lib/libmorph_length-prefix.so:src/length_prefix.c

View file

@ -1,12 +1,12 @@
morph_digit_as_char_to_uint8 (Radix:_16)
<Digit Radix> ~ Char ~ Ascii ~ Byte
--> <Digit Radix> ~ x86.UInt8 ~ Byte
@lib/posint.so:src/posint.c
@lib/libmorph-posint.so:src/posint.c
morph_digit_as_uint8_to_char (Radix:_16)
<Digit Radix> ~ x86.UInt8 ~ Byte
--> <Digit Radix> ~ Char ~ Ascii ~ Byte
@lib/posint.so:src/posint.c
@lib/libmorph-posint.so:src/posint.c
morph_posint_radix (SrcRadix:, DstRadix:)
@ -15,7 +15,7 @@ morph_posint_radix (SrcRadix:, DstRadix:)
-->
~ <PosInt DstRadix LittleEndian>
~ [~<LengthPrefix x86.UInt64> <Digit DstRadix>~x86.UInt64]
@lib/posint.so:src/posint.c
@lib/libmorph-posint.so:src/posint.c
morph_posint_endianness (Radix:)
@ -24,7 +24,7 @@ morph_posint_endianness (Radix:)
-->
~ <PosInt Radix BigEndian>
~ [~<LengthPrefix x86.UInt64> <Digit Radix> ~ x86.UInt64]
@lib/posint.so:src/posint.c
@lib/libmorph-posint.so:src/posint.c
morph_posint_endianness (Radix:)
@ -33,4 +33,4 @@ morph_posint_endianness (Radix:)
-->
~ <PosInt Radix LittleEndian>
~ [~<LengthPrefix x86.UInt64> <Digit Radix> ~ x86.UInt64]
@lib/posint.so:src/posint.c
@lib/libmorph-posint.so:src/posint.c

View file

@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdint.h>
#include <morphisms/length_prefix.h>
#include <morphisms/length-prefix.h>
void length_prefix_uint64_array_clear(
struct LengthPrefixUInt64Array * data

View file

@ -1,5 +1,5 @@
#include <stdint.h>
#include <morphisms/length_prefix.h>
#include <morphisms/length-prefix.h>
int morph_digit_as_char_to_uint8(
char const * restrict src,

View file

@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <morphisms/length_prefix.h>
#include <morphisms/length-prefix.h>
#include <morphisms/posint.h>
int main( int argc, char * argv[] ) {