Skip to content

Commit

Permalink
Distinguish global variables and constants
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanzimanyi committed Jul 5, 2024
1 parent de800e3 commit 8bedf9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mobilitydb/src/general/meos_catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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];

Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions mobilitydb/src/general/temporal_analyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bedf9c

Please sign in to comment.