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
5a3405c5
Commit
5a3405c5
authored
Feb 06, 2017
by
Paul Yang
Committed by
GitHub
Feb 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update upb for php. (#2662)
parent
bd29f868
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
+3
-3
def.c
php/ext/google/protobuf/def.c
+2
-2
encode_decode.c
php/ext/google/protobuf/encode_decode.c
+1
-1
upb.c
php/ext/google/protobuf/upb.c
+0
-0
upb.h
php/ext/google/protobuf/upb.h
+0
-0
No files found.
php/ext/google/protobuf/def.c
View file @
5a3405c5
...
...
@@ -209,14 +209,14 @@ static void init_generated_pool_once(TSRMLS_D) {
static
void
descriptor_pool_init_c_instance
(
DescriptorPool
*
pool
TSRMLS_DC
)
{
zend_object_std_init
(
&
pool
->
std
,
descriptor_pool_type
TSRMLS_CC
);
pool
->
symtab
=
upb_symtab_new
(
&
pool
->
symtab
);
pool
->
symtab
=
upb_symtab_new
();
ALLOC_HASHTABLE
(
pool
->
pending_list
);
zend_hash_init
(
pool
->
pending_list
,
1
,
NULL
,
ZVAL_PTR_DTOR
,
0
);
}
static
void
descriptor_pool_free_c
(
DescriptorPool
*
pool
TSRMLS_DC
)
{
upb_symtab_
unref
(
pool
->
symtab
,
&
pool
->
symtab
);
upb_symtab_
free
(
pool
->
symtab
);
zend_hash_destroy
(
pool
->
pending_list
);
FREE_HASHTABLE
(
pool
->
pending_list
);
...
...
php/ext/google/protobuf/encode_decode.c
View file @
5a3405c5
...
...
@@ -675,7 +675,7 @@ static void add_handlers_for_singular_field(upb_handlers *h,
case
UPB_TYPE_INT64
:
case
UPB_TYPE_UINT64
:
case
UPB_TYPE_DOUBLE
:
upb_
shim_set
(
h
,
f
,
offset
,
-
1
);
upb_
msg_setscalarhandler
(
h
,
f
,
offset
,
-
1
);
break
;
case
UPB_TYPE_STRING
:
case
UPB_TYPE_BYTES
:
{
...
...
php/ext/google/protobuf/upb.c
View file @
5a3405c5
This diff is collapsed.
Click to expand it.
php/ext/google/protobuf/upb.h
View file @
5a3405c5
This diff is collapsed.
Click to expand it.
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