Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xcap-capability-linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xcap
xcap-capability-linux
Commits
f0511184
Commit
f0511184
authored
Nov 10, 2014
by
Sarah Spall
Committed by
Vikram Narayanan
Oct 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issues matching spaces
parent
196c1151
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
tools/lcd/idl/parser/lcd_idl.peg
tools/lcd/idl/parser/lcd_idl.peg
+13
-13
tools/lcd/idl/test/rpc_test.idl
tools/lcd/idl/test/rpc_test.idl
+1
-1
No files found.
tools/lcd/idl/parser/lcd_idl.peg
View file @
f0511184
...
...
@@ -69,7 +69,7 @@ File = Spacing v:Verbatim? t:Things* <eof> {{
}
value = new File((char*) v.getValue(), current_file_scope(), rpcs); }}
Typedef = "typedef" Spacing "<" Spacing rt:RealType Spacing "," Spacing mt:Type_form
Spacing
">" Spacing id:Identifier Spacing {{
Typedef = "typedef" Spacing "<" Spacing rt:RealType Spacing "," Spacing mt:Type_form ">" Spacing id:Identifier Spacing {{
Typedef * val = new Typedef((char*) rt.getValue(), (Type*) mt.getValue());
insertType((char*)id.getValue(),val);
}}
...
...
@@ -264,18 +264,18 @@ Line_comment = Line_comm_start Line_comm_rest
Line_comm_end = "\n"
signed_type = "int" {{ value = getType("int");}}
| "char" {{ value = getType("char"); }}
| "capability" {{ value = getType("capability"); }}
| "short" {{ value = getType("short");}}
| "long" Space+ "long" {{ value = getType("long long");}}
| "long" {{ value = getType("long"); }}
unsigned_type = "unsigned" Space+ "int" {{ value = getType("unsigned int"); }}
| "unsigned" Space+ "char" {{ value = getType("unsigned char"); }}
| "unsigned" Space+ "short" {{ value = getType("unsigned long"); }}
| "unsigned" Space+ "long" Space+ "long" {{ value = getType("unsigned long long"); }}
| "unsigned" Space+ "long" {{ value = getType("unsigned long"); }}
signed_type = "int"
Space+
{{ value = getType("int");}}
| "char"
Space+
{{ value = getType("char"); }}
| "capability"
Space+
{{ value = getType("capability"); }}
| "short"
Space+
{{ value = getType("short");}}
| "long" Space+ "long"
Space+
{{ value = getType("long long");}}
| "long"
Space+
{{ value = getType("long"); }}
unsigned_type = "unsigned" Space+ "int"
Space+
{{ value = getType("unsigned int"); }}
| "unsigned" Space+ "char"
Space+
{{ value = getType("unsigned char"); }}
| "unsigned" Space+ "short"
Space+
{{ value = getType("unsigned long"); }}
| "unsigned" Space+ "long" Space+ "long"
Space+
{{ value = getType("unsigned long long"); }}
| "unsigned" Space+ "long"
Space+
{{ value = getType("unsigned long"); }}
type = unsigned_type
| signed_type
...
...
tools/lcd/idl/test/rpc_test.idl
View file @
f0511184
rpc
int
foo
(
capability
cpa
,
char
v1
,
int
v2
)
;
rpc
int
bar
(
projection
super_block
*
rp
)
;
\ No newline at end of file
rpc
int
bar
(
projection
super_block
*
rp
)
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment