mirror of
https://github.com/postgres/postgres.git
synced 2025-11-15 03:41:20 +03:00
Get rid of jsonpath_gram.h and jsonpath_scanner.h
Jsonpath grammar and scanner are both quite small. It doesn't worth complexity to compile them separately. This commit makes grammar and scanner be compiled at once. Therefore, jsonpath_gram.h and jsonpath_gram.h are no longer needed. This commit also does some reorganization of code in jsonpath_gram.y. Discussion: https://postgr.es/m/d47b2023-3ecb-5f04-d253-d557547cf74f%402ndQuadrant.com
This commit is contained in:
@@ -327,24 +327,6 @@ sub GenerateFiles
|
||||
);
|
||||
}
|
||||
|
||||
if (IsNewer(
|
||||
'src/backend/utils/adt/jsonpath_gram.h',
|
||||
'src/backend/utils/adt/jsonpath_gram.y'))
|
||||
{
|
||||
print "Generating jsonpath_gram.h...\n";
|
||||
chdir('src/backend/utils/adt');
|
||||
system('perl ../../../tools/msvc/pgbison.pl jsonpath_gram.y');
|
||||
chdir('../../../..');
|
||||
}
|
||||
|
||||
if (IsNewer(
|
||||
'src/include/utils/jsonpath_gram.h',
|
||||
'src/backend/utils/adt/jsonpath_gram.h'))
|
||||
{
|
||||
copyFile('src/backend/utils/adt/jsonpath_gram.h',
|
||||
'src/include/utils/jsonpath_gram.h');
|
||||
}
|
||||
|
||||
if ($self->{options}->{python}
|
||||
&& IsNewer(
|
||||
'src/pl/plpython/spiexceptions.h',
|
||||
|
||||
Reference in New Issue
Block a user