From 5f0b4945f1292d527c544d5268262663076c8af3 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 13 Apr 2022 12:13:42 +0200 Subject: [PATCH] Rename library to protogen --- README.md | 10 ++++++++-- typegen.lua => protogen.lua | 8 ++++---- 2 files changed, 12 insertions(+), 6 deletions(-) rename typegen.lua => protogen.lua (99%) diff --git a/README.md b/README.md index fe56719..1c99dd5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ -# dragontype -Dynamic type generator for dragonblocks alpha +# protogen +![protogen](https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/e3d0b655-d164-42f3-9254-51afe51b8850/de2erqu-19c5a186-0554-437b-a5be-47ee3cf842b0.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiJcL2ZcL2UzZDBiNjU1LWQxNjQtNDJmMy05MjU0LTUxYWZlNTFiODg1MFwvZGUyZXJxdS0xOWM1YTE4Ni0wNTU0LTQzN2ItYTViZS00N2VlM2NmODQyYjAucG5nIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.q5P0pgGtHUgDkPRq9S93nzt3lxh3Fe7JF8Ps3buJKR4) +Protocol generator for dragonnet. + +Generates C code for serialization functions from a types.def definitions file. +Also generates extra utility for scalar and vector types. +Made for use with dragonnet, but can be used without (USE_DRAGONNET macro). +Generates readable code. diff --git a/typegen.lua b/protogen.lua similarity index 99% rename from typegen.lua rename to protogen.lua index 3f58de7..3a503fe 100755 --- a/typegen.lua +++ b/protogen.lua @@ -26,16 +26,16 @@ local local_prefix = "__attribute__((unused)) static inline " local disclaimer = [[ /* - This file was automatically generated by Dragontype. - DO NOT EDIT it manually. Instead, edit types.def and re-run dragontype typegen. + This file was automatically generated by Protogen. + DO NOT EDIT it manually. Instead, edit types.def and re-run protogen. */ ]] emit_h(disclaimer) emit_h([[ -#ifndef _DRAGONTYPE_TYPES_H_ -#define _DRAGONTYPE_TYPES_H_ +#ifndef _PROTOGEN_TYPES_H_ +#define _PROTOGEN_TYPES_H_ #ifdef USE_DRAGONNET #include -- 2.44.0