Git Product home page Git Product logo

cstructsyncer's Introduction

CStructSyncer

This is a compilation of programs that can pad and sort C structs. They can also generate docs that can then be sync'd with their associated structs

input

  • A C structure typedef template. It is recompiled in a sense, and filled with the necessary pads so that it is functional.
  • A document can also be generated and syncronized and merged with structs.

Settings

  • POINTER_SIZE in StructPadder.py may need to be modified as it is system dependent. It defaults to 32-bit
  • int_types_long in StructPadder.py indicates whether unsigned/signed ints are displayed like uint32_t, or u32.
  • known_types is a dictionary in StructPadder.py that specifies the sizes for all known types, including primitives and custom types.

StructPadder Module

This essentially takes in incomplete structs, and makes them functional for use. If they are functional, they remain functional but may be prettied up anyway!

  • Input: A C Struct. It can but does not have to be padded or sorted.
  • Output: A padded and sorted C Struct.

StructDocGenerator Module

Because the generation and syncing of structs is automated, this documentation format is for in-depth docs of each member of the struct. It can generate structures from documents, documents from structures, and it can merge structures into the document.

  • I/O: Can generate docs from a struct and vice versa.

cstructsyncer's People

Contributors

lanhikari22 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.