Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libtock: Rewrite and standardize API #370
libtock: Rewrite and standardize API #370
Changes from all commits
94a9629
847b8f6
53e491a
0835ae0
2bf1cc2
bd913d2
880bee0
6dfe7e7
fddf6f5
d79ec45
2d4284a
dbf2fe6
1b9acee
c89e45f
9953df6
6adab08
8491493
df3d833
73d19f5
c8c93fa
9a4bff8
eb85d15
9b3b9d3
7011299
97bd946
7b8f332
c2889a7
544929a
5142d8b
e9e6e53
112719b
1b7905f
9584f33
2cd787b
39cf028
4fef010
fad2ce6
27bca82
59865f3
9d265aa
b761e8a
7f01bcb
2ee9090
ff18cfb
cd964d4
29faeb2
ecb4b86
a29052e
685e486
c9cc32c
4d84021
ea6620f
1548c85
8b7a254
1a7e46e
04bdead
8e79d41
e2d7376
d595ab0
8ae790a
8a49820
de9dd0e
fab4145
03d8fe6
15e1359
89c2f59
905efee
707032c
d9eafc6
1cd529d
fd93a4e
7563774
5c51db1
aed5716
e83139a
3d19923
b921caa
1ed1291
1b53fef
3b6afc1
dbc307a
da200ea
a382da4
e7ecc92
fc4cea7
9151c1f
36dba45
7e6bd60
86d82f4
8dc8acf
8b54074
4b7d93a
b4dd984
c4cb917
e059615
d8e46c4
c08990a
1a6c8a1
3e5521a
5cb2a6f
721409d
4dbee96
cb8d62e
28096ee
0ade304
3e287c2
44d9962
b6c1bd5
566fe5b
e420a1b
8eae7d2
c4a4b15
0742b5c
cabd53e
f59b57f
025ecd2
db476fa
737f3f5
0d37423
31cba57
576c535
20babd6
d6ce255
d7bbbaf
6d958de
5f9d90a
8b9fb4e
a3f3a74
b061df5
eb1ddb4
4dcbe1e
3fb15fc
2636f48
49c218a
e4a9eee
7fbd748
a37971c
e415ceb
ac3533c
76b079a
29e973f
436df65
9c73003
8748553
62db62a
78812e7
d883da0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you want every function to have
libtock_
prepended? This seems more verbose for no benefit. I understand the purpose of puttingsync
, but notlibtock
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C doesn't really give you a choice since it doesn't have a namespace concept. If your driver is implementing a timer,
libtock_timer
is a unique name buttimer
is not.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are writing a "pure" libtock-c app, where you are only calling libtock functions, I agree the prefix is a bit redundant. But for more complicated apps that use multiple libraries, it becomes very convenient to have namespacing to make the code easier to read.
I think we should get to a place where someone is writing a c app with some other library (e.g. lora or graphics or ML) and then just happens to use libtock, maybe for sensor data.