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
b0386daa
Unverified
Commit
b0386daa
authored
5 years ago
by
Rafi Kamal
Committed by
GitHub
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove add_proto_enumdesc and get_proto_enumdesc (#6931)
parent
391440e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
24 deletions
+0
-24
def.c
php/ext/google/protobuf/def.c
+0
-1
protobuf.c
php/ext/google/protobuf/protobuf.c
+0
-21
protobuf.h
php/ext/google/protobuf/protobuf.h
+0
-2
No files found.
php/ext/google/protobuf/def.c
View file @
b0386daa
...
...
@@ -965,7 +965,6 @@ void register_class(void *desc, bool is_enum TSRMLS_DC) {
if
(
is_enum
)
{
EnumDescriptorInternal
*
enumdesc
=
desc
;
add_ce_enumdesc
(
ret
,
desc
);
add_proto_enumdesc
(
fullname
,
desc
);
enumdesc
->
klass
=
ret
;
}
else
{
DescriptorInternal
*
msgdesc
=
desc
;
...
...
This diff is collapsed.
Click to expand it.
php/ext/google/protobuf/protobuf.c
View file @
b0386daa
...
...
@@ -52,7 +52,6 @@ static upb_inttable ce_to_enumdesc_map_persistent;
// Global map from message/enum's proto fully-qualified name to corresponding
// wrapper Descriptor/EnumDescriptor instances.
static
upb_strtable
proto_to_desc_map_persistent
;
static
upb_strtable
proto_to_enumdesc_map_persistent
;
static
upb_strtable
class_to_desc_map_persistent
;
upb_strtable
reserved_names
;
...
...
@@ -215,24 +214,6 @@ DescriptorInternal* get_proto_desc(const char* proto) {
}
}
void
add_proto_enumdesc
(
const
char
*
proto
,
EnumDescriptorInternal
*
desc
)
{
upb_strtable_insert2
(
&
proto_to_enumdesc_map_persistent
,
proto
,
strlen
(
proto
),
upb_value_ptr
(
desc
));
}
EnumDescriptorInternal
*
get_proto_enumdesc
(
const
char
*
proto
)
{
upb_value
v
;
#ifndef NDEBUG
v
.
ctype
=
UPB_CTYPE_PTR
;
#endif
if
(
!
upb_strtable_lookupptr
(
&
proto_to_enumdesc_map_persistent
,
proto
,
strlen
(
proto
),
&
v
))
{
return
NULL
;
}
else
{
return
upb_value_getptr
(
v
);
}
}
void
add_class_desc
(
const
char
*
klass
,
DescriptorInternal
*
desc
)
{
upb_strtable_insert
(
&
class_to_desc_map_persistent
,
klass
,
upb_value_ptr
(
desc
));
...
...
@@ -378,7 +359,6 @@ static initialize_persistent_descriptor_pool(TSRMLS_D) {
upb_inttable_init
(
&
ce_to_desc_map_persistent
,
UPB_CTYPE_PTR
);
upb_inttable_init
(
&
ce_to_enumdesc_map_persistent
,
UPB_CTYPE_PTR
);
upb_strtable_init
(
&
proto_to_desc_map_persistent
,
UPB_CTYPE_PTR
);
upb_strtable_init
(
&
proto_to_enumdesc_map_persistent
,
UPB_CTYPE_PTR
);
upb_strtable_init
(
&
class_to_desc_map_persistent
,
UPB_CTYPE_PTR
);
internal_descriptor_pool_impl_init
(
&
generated_pool_impl
TSRMLS_CC
);
...
...
@@ -459,7 +439,6 @@ static cleanup_persistent_descriptor_pool(TSRMLS_D) {
upb_inttable_uninit
(
&
ce_to_desc_map_persistent
);
upb_inttable_uninit
(
&
ce_to_enumdesc_map_persistent
);
upb_strtable_uninit
(
&
proto_to_desc_map_persistent
);
upb_strtable_uninit
(
&
proto_to_enumdesc_map_persistent
);
upb_strtable_uninit
(
&
class_to_desc_map_persistent
);
}
...
...
This diff is collapsed.
Click to expand it.
php/ext/google/protobuf/protobuf.h
View file @
b0386daa
...
...
@@ -777,8 +777,6 @@ EnumDescriptorInternal* get_ce_enumdesc(const zend_class_entry* ce);
// wrapper Descriptor/EnumDescriptor instances.
void
add_proto_desc
(
const
char
*
proto
,
DescriptorInternal
*
desc
);
DescriptorInternal
*
get_proto_desc
(
const
char
*
proto
);
void
add_proto_enumdesc
(
const
char
*
proto
,
EnumDescriptorInternal
*
desc
);
EnumDescriptorInternal
*
get_proto_enumdesc
(
const
char
*
proto
);
void
add_class_desc
(
const
char
*
klass
,
DescriptorInternal
*
desc
);
DescriptorInternal
*
get_class_desc
(
const
char
*
klass
);
void
add_class_enumdesc
(
const
char
*
klass
,
EnumDescriptorInternal
*
desc
);
...
...
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