mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Add some const decorations to prototypes
Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>
This commit is contained in:
@@ -165,7 +165,7 @@ addWrd(DictThesaurus *d, char *b, char *e, uint32 idsubst, uint16 nwrd, uint16 p
|
||||
#define TR_INSUBS 4
|
||||
|
||||
static void
|
||||
thesaurusRead(char *filename, DictThesaurus *d)
|
||||
thesaurusRead(const char *filename, DictThesaurus *d)
|
||||
{
|
||||
tsearch_readline_state trst;
|
||||
uint32 idsubst = 0;
|
||||
|
@@ -450,7 +450,7 @@ getNextFlagFromString(IspellDict *Conf, char **sflagset, char *sflag)
|
||||
* otherwise returns false.
|
||||
*/
|
||||
static bool
|
||||
IsAffixFlagInUse(IspellDict *Conf, int affix, char *affixflag)
|
||||
IsAffixFlagInUse(IspellDict *Conf, int affix, const char *affixflag)
|
||||
{
|
||||
char *flagcur;
|
||||
char flag[BUFSIZ];
|
||||
@@ -596,7 +596,7 @@ NIImportDictionary(IspellDict *Conf, const char *filename)
|
||||
* Returns 1 if the word was found in the prefix tree, else returns 0.
|
||||
*/
|
||||
static int
|
||||
FindWord(IspellDict *Conf, const char *word, char *affixflag, int flag)
|
||||
FindWord(IspellDict *Conf, const char *word, const char *affixflag, int flag)
|
||||
{
|
||||
SPNode *node = Conf->Dictionary;
|
||||
SPNodeData *StopLow,
|
||||
|
Reference in New Issue
Block a user