You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by jo...@apache.org on 2022/02/10 03:20:17 UTC

[incubator-age] branch master updated: Bugfix - Remove INLINE from function delcaration

This is an automated email from the ASF dual-hosted git repository.

joshinnis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-age.git


The following commit(s) were added to refs/heads/master by this push:
     new 0406d61  Bugfix - Remove INLINE from function delcaration
0406d61 is described below

commit 0406d615375469872962f243028b2580b630b001
Author: Josh Innis <Jo...@gmail.com>
AuthorDate: Wed Feb 9 19:04:24 2022 -0800

    Bugfix - Remove INLINE from function delcaration
---
 src/backend/utils/adt/age_global_graph.c | 20 ++++++++++----------
 src/backend/utils/adt/age_graphid_ds.c   | 10 +++++-----
 src/include/utils/age_global_graph.h     | 20 ++++++++++----------
 src/include/utils/age_graphid_ds.h       | 10 +++++-----
 4 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/src/backend/utils/adt/age_global_graph.c b/src/backend/utils/adt/age_global_graph.c
index 1d68811..18797ed 100644
--- a/src/backend/utils/adt/age_global_graph.c
+++ b/src/backend/utils/adt/age_global_graph.c
@@ -769,54 +769,54 @@ GRAPH_global_context *find_GRAPH_global_context(Oid graph_oid)
 }
 
 /* graph vertices accessor */
-inline ListGraphId *get_graph_vertices(GRAPH_global_context *ggctx)
+ListGraphId *get_graph_vertices(GRAPH_global_context *ggctx)
 {
     return ggctx->vertices;
 }
 
 /* vertex_entry accessor functions */
-inline graphid get_vertex_entry_id(vertex_entry *ve)
+graphid get_vertex_entry_id(vertex_entry *ve)
 {
     return ve->vertex_id;
 }
 
-inline ListGraphId *get_vertex_entry_edges(vertex_entry *ve)
+ListGraphId *get_vertex_entry_edges(vertex_entry *ve)
 {
     return ve->edges;
 }
 
-inline Oid get_vertex_entry_label_table_oid(vertex_entry *ve)
+Oid get_vertex_entry_label_table_oid(vertex_entry *ve)
 {
     return ve->vertex_label_table_oid;
 }
 
-inline Datum get_vertex_entry_properties(vertex_entry *ve)
+Datum get_vertex_entry_properties(vertex_entry *ve)
 {
     return ve->vertex_properties;
 }
 
 /* edge_entry accessor functions */
-inline graphid get_edge_entry_id(edge_entry *ee)
+graphid get_edge_entry_id(edge_entry *ee)
 {
     return ee->edge_id;
 }
 
-inline Oid get_edge_entry_label_table_oid(edge_entry *ee)
+Oid get_edge_entry_label_table_oid(edge_entry *ee)
 {
     return ee->edge_label_table_oid;
 }
 
-inline Datum get_edge_entry_properties(edge_entry *ee)
+Datum get_edge_entry_properties(edge_entry *ee)
 {
     return ee->edge_properties;
 }
 
-inline graphid get_edge_entry_start_vertex_id(edge_entry *ee)
+graphid get_edge_entry_start_vertex_id(edge_entry *ee)
 {
     return ee->start_vertex_id;
 }
 
-inline graphid get_edge_entry_end_vertex_id(edge_entry *ee)
+graphid get_edge_entry_end_vertex_id(edge_entry *ee)
 {
     return ee->end_vertex_id;
 }
diff --git a/src/backend/utils/adt/age_graphid_ds.c b/src/backend/utils/adt/age_graphid_ds.c
index d5c46c5..5cdcda3 100644
--- a/src/backend/utils/adt/age_graphid_ds.c
+++ b/src/backend/utils/adt/age_graphid_ds.c
@@ -46,31 +46,31 @@ typedef struct ListGraphId
 
 /* definitions */
 /* return the next GraphIdNode */
-inline GraphIdNode *next_GraphIdNode(GraphIdNode *node)
+GraphIdNode *next_GraphIdNode(GraphIdNode *node)
 {
     return node->next;
 }
 
 /* return the graphid */
-inline graphid get_graphid(GraphIdNode *node)
+graphid get_graphid(GraphIdNode *node)
 {
     return node->id;
 }
 
 /* get the size of the passed stack */
-inline int64 get_stack_size(ListGraphId *stack)
+int64 get_stack_size(ListGraphId *stack)
 {
     return stack->size;
 }
 
 /* return a reference to the head entry in the stack */
-inline GraphIdNode *peek_stack_head(ListGraphId *stack)
+GraphIdNode *peek_stack_head(ListGraphId *stack)
 {
     return stack->head;
 }
 
 /* return a reference to the tail entry in the stack */
-inline GraphIdNode *peek_stack_tail(ListGraphId *stack)
+GraphIdNode *peek_stack_tail(ListGraphId *stack)
 {
     return stack->tail;
 }
diff --git a/src/include/utils/age_global_graph.h b/src/include/utils/age_global_graph.h
index 891b0eb..ec2cb05 100644
--- a/src/include/utils/age_global_graph.h
+++ b/src/include/utils/age_global_graph.h
@@ -42,19 +42,19 @@ GRAPH_global_context *manage_GRAPH_global_contexts(char *graph_name,
                                                    Oid graph_oid);
 GRAPH_global_context *find_GRAPH_global_context(Oid graph_oid);
 /* GRAPH retrieval functions */
-inline ListGraphId *get_graph_vertices(GRAPH_global_context *ggctx);
+ListGraphId *get_graph_vertices(GRAPH_global_context *ggctx);
 vertex_entry *get_vertex_entry(GRAPH_global_context *ggctx,
                                graphid vertex_id);
 edge_entry *get_edge_entry(GRAPH_global_context *ggctx, graphid edge_id);
 /* vertex entry accessor functions*/
-inline graphid get_vertex_entry_id(vertex_entry *ve);
-inline ListGraphId *get_vertex_entry_edges(vertex_entry *ve);
-inline Oid get_vertex_entry_label_table_oid(vertex_entry *ve);
-inline Datum get_vertex_entry_properties(vertex_entry *ve);
+graphid get_vertex_entry_id(vertex_entry *ve);
+ListGraphId *get_vertex_entry_edges(vertex_entry *ve);
+Oid get_vertex_entry_label_table_oid(vertex_entry *ve);
+Datum get_vertex_entry_properties(vertex_entry *ve);
 /* edge entry accessor functions */
-inline graphid get_edge_entry_id(edge_entry *ee);
-inline Oid get_edge_entry_label_table_oid(edge_entry *ee);
-inline Datum get_edge_entry_properties(edge_entry *ee);
-inline graphid get_edge_entry_start_vertex_id(edge_entry *ee);
-inline graphid get_edge_entry_end_vertex_id(edge_entry *ee);
+graphid get_edge_entry_id(edge_entry *ee);
+Oid get_edge_entry_label_table_oid(edge_entry *ee);
+Datum get_edge_entry_properties(edge_entry *ee);
+graphid get_edge_entry_start_vertex_id(edge_entry *ee);
+graphid get_edge_entry_end_vertex_id(edge_entry *ee);
 #endif
diff --git a/src/include/utils/age_graphid_ds.h b/src/include/utils/age_graphid_ds.h
index 52f12d7..d674e56 100644
--- a/src/include/utils/age_graphid_ds.h
+++ b/src/include/utils/age_graphid_ds.h
@@ -38,8 +38,8 @@ typedef struct GraphIdNode GraphIdNode;
 typedef struct ListGraphId ListGraphId;
 
 /* GraphIdNode access functions */
-inline GraphIdNode *next_GraphIdNode(GraphIdNode *node);
-inline graphid get_graphid(GraphIdNode *node);
+GraphIdNode *next_GraphIdNode(GraphIdNode *node);
+graphid get_graphid(GraphIdNode *node);
 
 /* graphid stack functions */
 /* create a new ListGraphId stack */
@@ -51,11 +51,11 @@ void push_graphid_stack(ListGraphId *stack, graphid id);
 /* pop (remove) a GraphIdNode from the top of the stack */
 graphid pop_graphid_stack(ListGraphId *stack);
 /* peek (doesn't remove) at the head entry of a ListGraphId stack */
-inline GraphIdNode *peek_stack_head(ListGraphId *stack);
+GraphIdNode *peek_stack_head(ListGraphId *stack);
 /* peek (doesn't remove) at the tail entry of a ListGraphId stack */
-inline GraphIdNode *peek_stack_tail(ListGraphId *stack);
+GraphIdNode *peek_stack_tail(ListGraphId *stack);
 /* return the size of a ListGraphId stack */
-inline int64 get_stack_size(ListGraphId *stack);
+int64 get_stack_size(ListGraphId *stack);
 
 /* graphid list functions */
 /*