Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
97b663a8
Commit
97b663a8
authored
Jan 10, 2015
by
Chris Fallin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update upb amalgamation.
parent
4c922897
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
upb.c
ruby/ext/google/protobuf_c/upb.c
+0
-0
upb.h
ruby/ext/google/protobuf_c/upb.h
+18
-7
No files found.
ruby/ext/google/protobuf_c/upb.c
View file @
97b663a8
This diff is collapsed.
Click to expand it.
ruby/ext/google/protobuf_c/upb.h
View file @
97b663a8
...
...
@@ -6662,7 +6662,9 @@ typedef enum {
// | unused (24) | opc |
// | upb_inttable* (32 or 64) |
OP_HALT
=
36
,
// No arg.
OP_DISPATCH
=
36
,
// No arg.
OP_HALT
=
37
,
// No arg.
}
opcode
;
#define OP_MAX OP_HALT
...
...
@@ -7339,15 +7341,24 @@ UPB_DEFINE_STRUCT0(upb_json_parser,
int
parser_stack
[
UPB_JSON_MAX_DEPTH
];
int
parser_top
;
//
A pointer to the beginning of whatever text we are currently parsing
.
const
char
*
text_begin
;
//
The handle for the current buffer
.
const
upb_bufhandle
*
handle
;
// We have to accumulate text for member names, integers, unicode escapes, and
// base64 partial results.
// Accumulate buffer. See details in parser.rl.
const
char
*
accumulated
;
size_t
accumulated_len
;
// TODO: add members and code for allocating a buffer when necessary (when the
// member spans input buffers or contains escapes).
char
*
accumulate_buf
;
size_t
accumulate_buf_size
;
// Multi-part text data. See details in parser.rl.
int
multipart_state
;
upb_selector_t
string_selector
;
// Input capture. See details in parser.rl.
const
char
*
capture
;
// Intermediate result of parsing a unicode escape sequence.
uint32_t
digit
;
));
UPB_BEGIN_EXTERN_C
...
...
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