Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Added partial support for generating sketch prototypes #84

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

MrPointer
Copy link
Member

The support is partial due to the fact that complete prototype generation just can't be achieved with CMake - Further discussion can be found at the comments of #32.
Currently, this work redesigns how sketches are converted, but also adds basic prototype generation - Somewhat dumb, as it sometimes generates prototypes even when a matching declaration exists.

As described in #32, this whole conversion process should be done outside the framework, thus it should be developed as an external tool in a better-suited environment, such as Python.

This is part of the sketch conversion process.
This is because the function returns the path to the header file and not just whether is exists or not.
This change also caused separation of the function into a dedicated file
It detects which prototypes need to be generated, based on the def-dec matching ability previously added
Added utility function to escape semicolons in a string and vice-versa
Fixed bug in `list_max_index` utility function
It now fully supports both platform header & prototypes insertion
Fixed small function argument-stripping bug
Uncommented examples other than 'sketch'
@MrPointer MrPointer force-pushed the feature/sketch-func-prototypes branch from 83255b2 to 6e060ab Compare April 27, 2019 13:21
jeandet and others added 3 commits June 17, 2019 21:24
On Linux CMake might find avr-gcc first inside ccache folder which leads to wrong ar/ranlib detection.
On Fedora 30 at least, it leads to link errors because it uses avr-ar/ranlib instead of avr-gcc-ar/ranlib.

Signed-off-by: Alexis Jeandet <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants