From 8bedf9c97e9e6fd6f0f2ef4c98b289e3c0850649 Mon Sep 17 00:00:00 2001 From: Esteban Zimanyi Date: Fri, 5 Jul 2024 23:34:20 +0200 Subject: [PATCH] Distinguish global variables and constants --- mobilitydb/src/general/meos_catalog.c | 10 +++++----- mobilitydb/src/general/temporal_analyze.c | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mobilitydb/src/general/meos_catalog.c b/mobilitydb/src/general/meos_catalog.c index eacafb39a..140c07b39 100644 --- a/mobilitydb/src/general/meos_catalog.c +++ b/mobilitydb/src/general/meos_catalog.c @@ -29,8 +29,8 @@ /** * @file - * @brief Create a cache of PostgreSQL type and operator Oids in global arrays - * to avoid (slow) lookups + * @brief Create a cache of PostgreSQL type and operator Oids in global + * variable arrays to avoid (slow) lookups * * The arrays are initialized when the extension is loaded. * @@ -121,7 +121,7 @@ static bool _TYPEOID_CACHE_READY = false; static bool _OPEROID_CACHE_READY = false; /** - * @brief Global array that keeps the type Oids used in MobilityDB + * @brief Global variable array that keeps the type Oids used in MobilityDB */ static Oid _TYPE_OID[NO_MEOS_TYPES]; @@ -131,8 +131,8 @@ static Oid _TYPE_OID[NO_MEOS_TYPES]; struct opertable_hash *_OID_OPER = NULL; /** - * @brief Global 3-dimensional array that keeps the operator Oids used in - * MobilityDB + * @brief Global variable 3-dimensional array that keeps the operator Oids used + * in MobilityDB * * The first dimension corresponds to the operator class (e.g., <=), the second * and third dimensions correspond, respectively, to the left and right diff --git a/mobilitydb/src/general/temporal_analyze.c b/mobilitydb/src/general/temporal_analyze.c index 99f77c45a..0e4a2c529 100644 --- a/mobilitydb/src/general/temporal_analyze.c +++ b/mobilitydb/src/general/temporal_analyze.c @@ -90,6 +90,7 @@ #define TEMPORAL_WIDTH_THRESHOLD 4096 // Should it be 0x10000 i.e. 64K as before ? /* + * Global variable for extra data for the compute_stats function. * While statistic functions are running, we keep a pointer to the extra data * here for use by assorted subroutines. The functions doesn't currently need * to be re-entrant, so avoiding this is not worth the extra notational cruft