Import of the watch repository from Pebble

This commit is contained in:
Matthieu Jeanson
2025-01-27 11:38:16 -08:00
committed by Katharine Berry
commit 3b92768480
10334 changed files with 2564465 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# Test comment inclusion from .proto to .pb.h
Import("env")
env.NanopbProto("comments")
env.Object("comments.pb.c")
env.Match(['comments.pb.h', 'comments.expected'])
+10
View File
@@ -0,0 +1,10 @@
Enum1Comment
LeadingEnumComment
ENUMVAL2.*TrailingEnumComment
Message1Comment
member2.*TrailingMemberComment
m2member1.*m2comment1
m2member50.*m2comment50
m2member4.*m2comment4
m2oneof10.*m2oneof10_comment
m2oneof5.*m2oneof5_comment
+29
View File
@@ -0,0 +1,29 @@
syntax = "proto2";
// Message1Comment
message Message1
{
// LeadingMemberComment
required int32 member1 = 1;
required int32 member2 = 2; // TrailingMemberComment
}
// Enum1Comment
enum Enum1
{
// LeadingEnumComment
ENUMVAL1 = 1;
ENUMVAL2 = 2; // TrailingEnumComment
}
message Message2
{
required string m2member1 = 1; // m2comment1
required string m2member50 = 50; // m2comment50
required string m2member4 = 4; // m2comment4
oneof m2oneof {
int32 m2oneof10 = 10; // m2oneof10_comment
int32 m2oneof5 = 5; // m2oneof5_comment
}
}