8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

Refactor public include files (#205)

Refactor include files.
This commit is contained in:
Adriano dos Santos Fernandes 2019-06-03 11:45:00 -03:00 committed by GitHub
parent c209b910e9
commit 45d5e3aa7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
178 changed files with 1579 additions and 2066 deletions

View File

@ -425,39 +425,6 @@ if %MSVC_VERSION% EQU 15 (
@goto :EOF
:IBASE_H
:: Concatenate header files into ibase.h
::======================================
:: o This section of code takes several header files, strips license
:: boiler plates and comments and inserts them into ibase.h for
:: distribution. The only drawback is that it strips all the comments.
:: o No error checking is done.
:: o Take note that different versions of sed use different
:: string delimiters. The firebird_tools version uses double quotes - ".
:: The cygwin one probably uses single quotes.
:: o The script 'strip_comments.sed' is taken from
:: http://sed.sourceforge.net/grabbag/scripts/testo.htm
setlocal
set OUTPATH=%FB_OUTPUT_DIR%\include
copy %FB_ROOT_PATH%\src\jrd\ibase.h %OUTPATH%\ibase.h > nul
for %%v in ( %FB_ROOT_PATH%\src\include\types_pub.h %FB_ROOT_PATH%\src\include\consts_pub.h %FB_ROOT_PATH%\src\dsql\sqlda_pub.h %FB_ROOT_PATH%\src\common\dsc_pub.h %FB_ROOT_PATH%\src\jrd\inf_pub.h %FB_ROOT_PATH%\src\jrd\blr.h ) do (
del %OUTPATH%\%%~nxv 2> nul
copy %%v %OUTPATH%\%%~nxv > nul
sed -n -f strip_comments.sed %OUTPATH%\%%~nxv > %OUTPATH%\%%~nv.more || call :ERROR Stripping comments from %%v failed.
more /s %OUTPATH%\%%~nv.more > %OUTPATH%\%%~nv.sed
)
move /y %OUTPATH%\ibase.h %OUTPATH%\ibase.sed
sed -e "/#include \"types_pub\.h\"/r %OUTPATH%\types_pub.sed" -e "/#include \"types_pub\.h\"/d" -e "/#include \"consts_pub\.h\"/r %OUTPATH%\consts_pub.sed" -e "/#include \"consts_pub\.h\"/d" -e "/#include \"..\/common\/dsc_pub\.h\"/r %OUTPATH%\dsc_pub.sed" -e "/#include \"..\/common\/dsc_pub\.h\"/d" -e "/#include \"..\/dsql\/sqlda_pub\.h\"/r %OUTPATH%\sqlda_pub.sed" -e "/#include \"..\/dsql\/sqlda_pub\.h\"/d" -e "/#include \"blr\.h\"/r %OUTPATH%\blr.sed" -e "/#include \"blr\.h\"/d" -e "/#include \"..\/jrd\/inf_pub\.h\"/r %OUTPATH%\inf_pub.sed" -e "/#include \"..\/jrd\/inf_pub\.h\"/d" %OUTPATH%\ibase.sed > %OUTPATH%\ibase.h
del %OUTPATH%\ibase.sed %OUTPATH%\types_pub.* %OUTPATH%\consts_pub.* %OUTPATH%\sqlda_pub.* %OUTPATH%\dsc_pub.* %OUTPATH%\inf_pub.* %OUTPATH%\blr.*
endlocal
::End of IBASE_H
::--------------
@goto :EOF
:INCLUDE_DIR
:: Prepare other files needed for deployment to /include dir
setlocal
@ -791,10 +758,6 @@ if defined WIX (
@echo.
)
@echo Concatenating header files for ibase.h
@(@call :IBASE_H ) || (@echo Error calling IBASE_H && @goto :END)
@echo.
@echo Prepare include directory
@(@call :INCLUDE_DIR ) || (@echo Error calling INCLUDE_DIR && @goto :END)
@echo.

View File

@ -1,82 +0,0 @@
: loop
/^\/\// s,.*,,
/^$/{
x
p
n
b loop
}
/^"/{
: double
/^$/{
x
p
n
/^"/b break
b double
}
H
x
s,\n\(.[^\"]*\).*,\1,
x
s,.[^\"]*,,
/^"/b break
/^\\/{
H
x
s,\n\(.\).*,\1,
x
s/.//
}
b double
}
/^'/{
: single
/^$/{
x
p
n
/^'/b break
b single
}
H
x
s,\n\(.[^\']*\).*,\1,
x
s,.[^\']*,,
/^'/b break
/^\\/{
H
x
s,\n\(.\).*,\1,
x
s/.//
}
b single
}
/^\/\*/{
s/.//
: ccom
s,^.[^*]*,,
/^$/ n
/^\*\//{
s/..//
b loop
}
b ccom
}
: break
H
x
s,\n\(.[^"'/]*\).*,\1,
x
s/.[^"'/]*//
b loop

View File

@ -102,7 +102,7 @@ API_PAS_FILE=$(SRC_ROOT)/include/gen/Firebird.pas
PAS_ROOT=$(SRC_ROOT)/misc/pascal
PASCAL_SOURCES=$(wildcard $(PAS_ROOT)/*)
TMP_FUNCS=$(TMP_ROOT)/func.pas
XPB_CONSTS=$(SRC_ROOT)/include/consts_pub.h
XPB_CONSTS=$(SRC_ROOT)/include/firebird/impl/consts_pub.h
ERR_CONSTS=$(ROOT)/lang_helpers/gds_codes.pas
updateCloopInterfaces : $(API_H_FILE) $(API_PAS_FILE)
@ -646,31 +646,17 @@ NEW_INCLUDES_SRC = $(shell find $(SRC_ROOT)/include/firebird -type f)
NEW_INCLUDES_DEST = $(patsubst $(SRC_ROOT)/include/firebird/%, $(INCLUDE_DEST)/firebird/%, $(NEW_INCLUDES_SRC))
include_generic: $(INCLUDE_DEST)/ib_util.h \
$(INCLUDE_DEST)/ibase.h \
$(NEW_INCLUDES_DEST)
# ib_util.h actually is a marker for a number of headers
# All these files are #included in ibase.h. Here we cat them all together
# and remove the embedded #includes to make it simpler for external usage.
IBASE_ExtraFiles = include/types_pub.h include/consts_pub.h dsql/sqlda_pub.h common/dsc_pub.h jrd/ibase.h jrd/inf_pub.h jrd/blr.h include/gen/iberror.h
SRC_IBASE_ExtraFiles = $(addprefix $(SRC_ROOT)/, $(IBASE_ExtraFiles))
MAKE_HEADER_Src = $(addprefix $(SRC_ROOT)/, misc/makeHeader.cpp)
MAKE_HEADER_Bin = ./makeHeader
$(INCLUDE_DEST)/ibase.h: $(SRC_IBASE_ExtraFiles)
$(STATICEXE_LINK) -o $(MAKE_HEADER_Bin) $(MAKE_HEADER_Src)
$(CP) $^ .
$(MAKE_HEADER_Bin) <ibase.h >$@
$(RM) -f ibase.h
# Copy all the other headers to the distribution directory. We use
# ib_util.h as the marker for all the files.
OtherDistribHeaders = extlib/ib_util.h \
yvalve/perf.h \
include/gen/iberror.h
include/gen/iberror.h \
include/ibase.h
SRC_OtherDistribHeaders = $(addprefix $(SRC_ROOT)/, $(OtherDistribHeaders))
@ -719,7 +705,7 @@ clean_vers:
$(RM) *.vers
clean_misc:
$(RM) makeHeader ods.txt odstest* security.tmp test.header.txt
$(RM) ods.txt odstest* security.tmp test.header.txt
ifeq ($(EDITLINE_FLG),Y)
ifeq ($(STD_EDITLINE),false)

View File

@ -84,26 +84,7 @@ findstr /V "@UDF_COMMENT@" %FB_ROOT_PATH%\builds\install\misc\firebird.conf.in >
@copy %FB_ROOT_PATH%\doc\README.* %FB_OUTPUT_DIR%\doc >nul
@copy %FB_ROOT_PATH%\doc\sql.extensions\README.* %FB_OUTPUT_DIR%\doc\sql.extensions >nul
:: HEADERS
:: Don't use this ibase.h unless you have to - we build it better in BuildExecutableInstall.bat
:: This variation doesn't clean up the license templates, and processes the component files in
:: a different order to that used in the production version. However, this version doesn't
:: have a dependancy upon sed while the production one does.
echo #pragma message("Non-production version of ibase.h.") > %FB_OUTPUT_DIR%\include\ibase.tmp
echo #pragma message("Using raw, unprocessed concatenation of header files.") >> %FB_OUTPUT_DIR%\include\ibase.tmp
type %FB_ROOT_PATH%\src\misc\ibase_header.txt >> %FB_OUTPUT_DIR%\include\ibase.tmp
type %FB_ROOT_PATH%\src\include\types_pub.h >> %FB_OUTPUT_DIR%\include\ibase.tmp
type %FB_ROOT_PATH%\src\common\dsc_pub.h >> %FB_OUTPUT_DIR%\include\ibase.tmp
type %FB_ROOT_PATH%\src\dsql\sqlda_pub.h >> %FB_OUTPUT_DIR%\include\ibase.tmp
type %FB_ROOT_PATH%\src\jrd\ibase.h >> %FB_OUTPUT_DIR%\include\ibase.tmp
type %FB_ROOT_PATH%\src\jrd\inf_pub.h >> %FB_OUTPUT_DIR%\include\ibase.tmp
type %FB_ROOT_PATH%\src\include\consts_pub.h >> %FB_OUTPUT_DIR%\include\ibase.tmp
type %FB_ROOT_PATH%\src\jrd\blr.h >> %FB_OUTPUT_DIR%\include\ibase.tmp
type %FB_ROOT_PATH%\src\include\gen\iberror.h >> %FB_OUTPUT_DIR%\include\ibase.tmp
sed -f %FB_ROOT_PATH%\src\misc\headers.sed < %FB_OUTPUT_DIR%\include\ibase.tmp > %FB_OUTPUT_DIR%\include\ibase.h
del %FB_OUTPUT_DIR%\include\ibase.tmp > nul
:: Additional headers
:: Headers
copy %FB_ROOT_PATH%\src\extlib\ib_util.h %FB_OUTPUT_DIR%\include > nul
copy %FB_ROOT_PATH%\src\jrd\perf.h %FB_OUTPUT_DIR%\include >nul
copy %FB_ROOT_PATH%\src\include\gen\iberror.h %FB_OUTPUT_DIR%\include > nul

View File

@ -40,7 +40,7 @@
#include <stdarg.h>
#include <stdio.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/license.h"
#include "../alice/alice.h"
#include "../alice/exe_proto.h"

View File

@ -26,7 +26,7 @@
#include <stdio.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../common/ThreadData.h"
#include "../include/fb_blk.h"
#include "../common/classes/alloc.h"

View File

@ -29,7 +29,7 @@
#include "firebird.h"
#include <stdio.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../alice/alice.h"
#include "../alice/alice_meta.h"
#include "../yvalve/gds_proto.h"

View File

@ -22,7 +22,7 @@
#ifndef ALICE_ALICESWI_H
#define ALICE_ALICESWI_H
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/constants.h"
// switch definitions

View File

@ -36,7 +36,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../alice/alice.h"
#include "../alice/alice_proto.h"
#include "../common/classes/Switches.h"

View File

@ -35,7 +35,7 @@
#include <stdio.h>
#include <string.h>
#include "memory_routines.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../alice/alice.h"
#include "../common/classes/Switches.h"
#include "../alice/aliceswi.h"

View File

@ -27,7 +27,7 @@
#include "firebird.h"
#include "../auth/AuthDbg.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../common/StatusHolder.h"
#ifdef AUTH_DEBUG

View File

@ -9,7 +9,7 @@
#include "../common/classes/alloc.h"
#include "../common/StatusHolder.h"
#include "../common/classes/ImplementHelper.h"
#include "../dsql/sqlda_pub.h"
#include "firebird/impl/sqlda_pub.h"
#else // INTERNAL_FIREBIRD

View File

@ -32,7 +32,7 @@
#include "firebird/Interface.h"
#include "../auth/SecureRemotePassword/srp.h"
#include "../jrd/constants.h"
#include "../jrd/inf_pub.h"
#include "firebird/impl/inf_pub.h"
#include "../utilities/gsec/gsec.h"
#include "../auth/SecureRemotePassword/Message.h"
#include "../common/classes/auto.h"

View File

@ -26,7 +26,7 @@
*
*/
#include "firebird.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../auth/SecurityDatabase/LegacyClient.h"
#include "../auth/SecurityDatabase/LegacyHash.h"
#include "../common/enc_proto.h"

View File

@ -27,7 +27,7 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../auth/SecurityDatabase/LegacyHash.h"
#include "../common/enc_proto.h"
#include "../yvalve/gds_proto.h"

View File

@ -27,7 +27,7 @@
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../auth/SecurityDatabase/LegacyServer.h"
#include "../auth/SecurityDatabase/LegacyHash.h"
#include "../common/enc_proto.h"

View File

@ -27,7 +27,7 @@
#ifndef AUTH_LEGACY_SERVER_H
#define AUTH_LEGACY_SERVER_H
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../common/utils_proto.h"
#include "../common/sha.h"
#include "gen/iberror.h"

View File

@ -39,7 +39,7 @@
#include <../common/classes/fb_string.h>
#include <../common/classes/array.h>
#include "../common/classes/ImplementHelper.h"
#include <../jrd/ibase.h>
#include <ibase.h>
#include "firebird/Interface.h"
#include "../common/classes/objects_array.h"

View File

@ -36,7 +36,7 @@
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include <stdarg.h>
#include "../jrd/ibsetjmp.h"
#include "../common/msg_encode.h"

View File

@ -30,7 +30,7 @@
#define BURP_BURP_H
#include <stdio.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "firebird/Interface.h"
#include "firebird/Message.h"
#include "../common/dsc.h"

View File

@ -28,7 +28,7 @@
#define BURP_BURPSWI_H
#include "../jrd/constants.h"
#include "../jrd/ibase.h"
#include "ibase.h"
/* Local copies of global variables. They will be copied into
a data structure. */

View File

@ -27,7 +27,7 @@
#include "firebird.h"
#include "../common/Auth.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../common/classes/ImplementHelper.h"
#include "../common/utils_proto.h"
#include "../common/db_alias.h"

View File

@ -29,7 +29,7 @@
#include "firebird.h"
#include "../common/IntlParametersBlock.h"
#include "consts_pub.h"
#include "firebird/impl/consts_pub.h"
#include "../common/isc_f_proto.h"
#include "../common/classes/ClumpletWriter.h"
#include "../common/UtilSvc.h"

View File

@ -26,10 +26,10 @@
#include "../common/StatementMetadata.h"
#include "memory_routines.h"
#include "../common/StatusHolder.h"
#include "../jrd/inf_pub.h"
#include "firebird/impl/inf_pub.h"
#include "../yvalve/gds_proto.h"
#include "../common/utils_proto.h"
#include "../dsql/sqlda_pub.h"
#include "firebird/impl/sqlda_pub.h"
namespace Firebird {

View File

@ -24,7 +24,7 @@
#ifndef UTILITIES_GSEC_CALL_SERVICE_H
#define UTILITIES_GSEC_CALL_SERVICE_H
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../utilities/gsec/gsec.h"
#include "../common/security.h"

View File

@ -24,7 +24,7 @@
#include "firebird.h"
#include "BlobWrapper.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "firebird/Interface.h"
static const USHORT SEGMENT_LIMIT = 65535;

View File

@ -19,11 +19,11 @@
*/
#include "firebird.h"
#include "consts_pub.h"
#include "firebird/impl/consts_pub.h"
#include "dyn_consts.h"
#include "gen/iberror.h"
#include "../common/classes/BlrWriter.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
namespace Firebird {

View File

@ -32,7 +32,7 @@
#include "../common/classes/MetaName.h"
#include "fb_exception.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "firebird/Interface.h"
#ifdef DEBUG_CLUMPLETS

View File

@ -32,8 +32,7 @@
#include "../common/classes/ClumpletWriter.h"
#include "../common/classes/MetaName.h"
#include "fb_exception.h"
#include "../jrd/ibase.h"
#include "ibase.h"
namespace Firebird {

View File

@ -37,7 +37,7 @@
#include "../common/classes/auto.h"
#include "../common/classes/RefCounted.h"
#include "../common/StatusArg.h"
#include "consts_pub.h"
#include "firebird/impl/consts_pub.h"
#ifdef DEV_BUILD
#include <stdio.h>
#endif

View File

@ -32,8 +32,8 @@
#include "../common/classes/BlrReader.h"
#include "../common/gdsassert.h"
#include "../common/MsgMetadata.h"
#include "../dsql/sqlda_pub.h"
#include "../jrd/blr.h"
#include "firebird/impl/sqlda_pub.h"
#include "firebird/impl/blr.h"
namespace Firebird
{

View File

@ -27,7 +27,7 @@
#ifndef CLASSES_NOTHROW_TIMESTAMP_H
#define CLASSES_NOTHROW_TIMESTAMP_H
#include "../common/dsc_pub.h"
#include "firebird/impl/dsc_pub.h"
// struct tm declaration
#if defined(TIME_WITH_SYS_TIME)

View File

@ -22,7 +22,7 @@
*/
#include "UserBlob.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../yvalve/gds_proto.h"
static const USHORT SEGMENT_LIMIT = 65535;

View File

@ -28,7 +28,7 @@
#include <stdlib.h>
#include "../common/dsc.h"
#include "../common/TimeZoneUtil.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/intl.h"
#include "../yvalve/gds_proto.h"
#include "../common/gdsassert.h"

View File

@ -27,8 +27,8 @@
#ifndef JRD_DSC_H
#define JRD_DSC_H
#include "../common/dsc_pub.h"
#include "consts_pub.h"
#include "firebird/impl/dsc_pub.h"
#include "firebird/impl/consts_pub.h"
#include "../jrd/ods.h"
#include "../intl/charsets.h"
#include "../common/DecFloat.h"

View File

@ -41,7 +41,7 @@
#include <errno.h>
#include "gen/iberror.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/scl.h"
#include "../yvalve/gds_proto.h"
#include "../common/isc_proto.h"

View File

@ -31,7 +31,7 @@
#include "dyn_consts.h"
#include <stdio.h>
#include <stdarg.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/constants.h"
#include "../common/prett_proto.h"
#include "../yvalve/gds_proto.h"

View File

@ -23,7 +23,7 @@
#include "firebird.h"
#include <string.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/val.h"
#include "../common/sdl.h"
#include "../jrd/intl.h"

View File

@ -45,13 +45,13 @@
#include "../common/classes/locks.h"
#include "../common/classes/init.h"
#include "../jrd/constants.h"
#include "../jrd/inf_pub.h"
#include "firebird/impl/inf_pub.h"
#include "../jrd/align.h"
#include "../common/os/path_utils.h"
#include "../common/os/fbsyslog.h"
#include "../common/StatusArg.h"
#include "../common/os/os_utils.h"
#include "../dsql/sqlda_pub.h"
#include "firebird/impl/sqlda_pub.h"
#include "../common/classes/ClumpletReader.h"
#include "../common/StatusArg.h"

View File

@ -22,7 +22,7 @@
#include "../dsql/AggNodes.h"
#include "../dsql/ExprNodes.h"
#include "../jrd/jrd.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/btr.h"
#include "../jrd/exe.h"
#include "../jrd/tra.h"

View File

@ -23,7 +23,7 @@
#ifndef DSQL_AGG_NODES_H
#define DSQL_AGG_NODES_H
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../dsql/Nodes.h"
#include "../dsql/NodePrinter.h"

View File

@ -20,7 +20,7 @@
*/
#include "firebird.h"
#include "consts_pub.h"
#include "firebird/impl/consts_pub.h"
#include "dyn_consts.h"
#include "gen/iberror.h"
#include "../jrd/jrd.h"
@ -28,7 +28,7 @@
#include "../dsql/BlrDebugWriter.h"
#include "../dsql/StmtNodes.h"
#include "../dsql/dsql.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/DebugInterface.h"
#include "../dsql/errd_proto.h"

View File

@ -24,7 +24,7 @@
#include "../dsql/ExprNodes.h"
#include "../dsql/StmtNodes.h"
#include "../jrd/align.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/tra.h"
#include "../jrd/recsrc/RecordSource.h"
#include "../jrd/recsrc/Cursor.h"

View File

@ -23,7 +23,7 @@
#ifndef DSQL_BOOL_NODES_H
#define DSQL_BOOL_NODES_H
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../dsql/Nodes.h"
namespace Jrd {

View File

@ -24,7 +24,7 @@
#include "../dsql/BoolNodes.h"
#include "../dsql/ExprNodes.h"
#include "../dsql/StmtNodes.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/btr.h"
#include "../jrd/dyn.h"
#include "../jrd/flags.h"

View File

@ -23,7 +23,7 @@
#ifndef DSQL_DDL_NODES_H
#define DSQL_DDL_NODES_H
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/dyn.h"
#include "../common/msg_encode.h"
#include "../dsql/make_proto.h"

View File

@ -24,7 +24,7 @@
#include "../dsql/ExprNodes.h"
#include "../dsql/StmtNodes.h"
#include "../jrd/jrd.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/RecordSourceNodes.h"
#include "../dsql/ddl_proto.h"
#include "../dsql/errd_proto.h"

View File

@ -28,7 +28,7 @@
#include "../dsql/BoolNodes.h"
#include "../dsql/StmtNodes.h"
#include "../jrd/align.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/tra.h"
#include "../jrd/Function.h"
#include "../jrd/SysFunction.h"

View File

@ -23,7 +23,7 @@
#ifndef DSQL_EXPR_NODES_H
#define DSQL_EXPR_NODES_H
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../dsql/Nodes.h"
#include "../dsql/NodePrinter.h"
#include "../dsql/pass1_proto.h"

View File

@ -27,7 +27,7 @@
#include "../dsql/ExprNodes.h"
#include "../dsql/StmtNodes.h"
#include "../jrd/align.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/tra.h"
#include "../jrd/Function.h"
#include "../jrd/Optimizer.h"

View File

@ -24,7 +24,7 @@
#define DSQL_STMT_NODES_H
#include "../common/classes/MetaName.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/Function.h"
#include "../jrd/extds/ExtDS.h"
#include "../dsql/Nodes.h"

View File

@ -23,7 +23,7 @@
#ifndef DSQL_WIN_NODES_H
#define DSQL_WIN_NODES_H
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../dsql/Nodes.h"
#include "../dsql/NodePrinter.h"

View File

@ -76,7 +76,7 @@
#include "../common/classes/MetaName.h"
#include "../dsql/dsql.h"
#include "../dsql/ExprNodes.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/Attachment.h"
#include "../jrd/RecordSourceNodes.h"
#include "../jrd/intl.h"

View File

@ -37,7 +37,7 @@
#include <stdlib.h>
#include <string.h>
#include "../dsql/dsql.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/align.h"
#include "../jrd/intl.h"
#include "../common/intlobj_new.h"

View File

@ -42,7 +42,7 @@
#include "../dsql/StmtNodes.h"
#include "../dsql/DSqlDataTypeUtil.h"
#include "../jrd/RecordSourceNodes.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/align.h"
#include "../jrd/constants.h"
#include "../jrd/intl.h"

View File

@ -39,7 +39,7 @@
#include "../dsql/dsql.h"
#include "../dsql/Nodes.h"
#include "../dsql/ExprNodes.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/intl.h"
#include "../jrd/constants.h"
#include "../jrd/align.h"

View File

@ -35,7 +35,7 @@
#include "firebird.h"
#include <string.h>
#include "../dsql/dsql.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/align.h"
#include "../jrd/intl.h"
#include "../jrd/irq.h"

View File

@ -83,7 +83,7 @@
#include "gen/iberror.h"
#include "../dsql/dsql.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/flags.h"
#include "../jrd/jrd.h"
#include "../jrd/DataTypeUtil.h"

View File

@ -141,13 +141,13 @@
#include "firebird.h"
#include <string.h>
#include <stdio.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../dsql/dsql.h"
#include "../dsql/Nodes.h"
#include "../dsql/BoolNodes.h"
#include "../dsql/ExprNodes.h"
#include "../jrd/intl.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/jrd.h"
#include "../jrd/constants.h"
#include "../jrd/intl_classes.h"

View File

@ -52,6 +52,6 @@ struct SQLDA
#define SQLDA_LENGTH(n) (sizeof (SQLDA) + (n - 1) * sizeof (SQLVAR))
#include "../dsql/sqlda_pub.h"
#include "firebird/impl/sqlda_pub.h"
#endif // DSQL_SQLDA_H

View File

@ -35,7 +35,7 @@
#include <string.h>
#include "../dsql/dsql.h"
#include "../dsql/sqlda.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/align.h"
#include "../jrd/constants.h"
#include "../dsql/utld_proto.h"

View File

@ -30,7 +30,7 @@
#include "firebird.h"
#include <string.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../jrd/intl.h"
#include "../gpre/gpre_proto.h"

View File

@ -33,7 +33,7 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../gpre/pat.h"
#include "../gpre/msc_proto.h"

View File

@ -30,7 +30,7 @@
#include "firebird.h"
#include <string.h>
#include "../gpre/gpre.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/flags.h"
#include "../gpre/cmd_proto.h"
#include "../gpre/cme_proto.h"

View File

@ -29,7 +29,7 @@
#include "firebird.h"
#include <stdlib.h>
#include <string.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../jrd/intl.h"
#include "../intl/charsets.h"

View File

@ -30,7 +30,7 @@
#include "firebird.h"
#include <stdlib.h>
#include <string.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../jrd/align.h"
#include "../gpre/cmd_proto.h"

View File

@ -30,7 +30,7 @@
#include "firebird.h"
#include <stdlib.h>
#include <string.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../jrd/intl.h"
#include "../gpre/cmp_proto.h"

View File

@ -64,7 +64,7 @@
#include <stdio.h>
#include "dyn_consts.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/constants.h"
#include "../common/utils_proto.h"
@ -87,7 +87,7 @@ const int MAX_DATABASES = 32;
const int MAX_EVENT_SIZE = 16; // event names use 15 chars from old docs.
// Values for SQL dialects.
#include "../dsql/sqlda_pub.h"
#include "firebird/impl/sqlda_pub.h"
// Language options

View File

@ -30,7 +30,7 @@
#include "firebird.h"
#include <stdio.h>
#include <stdarg.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../gpre/gpre_proto.h"
#include "../gpre/lang_proto.h"

View File

@ -27,7 +27,7 @@
//
#include "firebird.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/constants.h"
#include "../jrd/ods.h"

View File

@ -30,7 +30,7 @@
#include <stdio.h>
#include <stdarg.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../gpre/pat.h"
#include "../gpre/cmp_proto.h"

View File

@ -42,7 +42,7 @@
#include "firebird.h"
#include <stdio.h>
#include <stdarg.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../yvalve/gds_proto.h"
#include "../gpre/gpre.h"
#include "../gpre/pat.h"

View File

@ -46,7 +46,7 @@
#include "autoconfig.h"
#endif
#include "fb_types.h"
#include "../jrd/ibase.h"
#include "ibase.h"
// Firebird transaction existence block (as defined in why.cpp)
@ -939,12 +939,12 @@ EXPORT RM_ENTRY(rmc_get_slice)
(isc_db_handle *)arg_vector[1].a_address,
(isc_tr_handle *)arg_vector[2].a_address,
(ISC_QUAD *)arg_vector[3].a_address,
(short)*CobolToShort(&arg_vector[4]),
(char *)CobolToString(&arg_vector[5]),
(short)*CobolToShort(&arg_vector[6]),
*CobolToShort(&arg_vector[4]),
(ISC_UCHAR *)CobolToString(&arg_vector[5]),
*CobolToShort(&arg_vector[6]),
(ISC_LONG *)CobolToInt(&arg_vector[7]),
*CobolToInt(&arg_vector[8]),
(void *)arg_vector[9].a_address,
(ISC_LONG *)arg_vector[9].a_address,
p1);
IntToCobol(&arg_vector[11], (ISC_UINT64)p1);
StatusToCobol(&arg_vector[0], stat);

View File

@ -33,7 +33,7 @@
#include "firebird.h"
#include <stdio.h>
#include <stdarg.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../yvalve/gds_proto.h"
#include "../gpre/gpre.h"
#include "../gpre/pat.h"

View File

@ -30,7 +30,7 @@
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../gpre/pat.h"
#include "../gpre/cmp_proto.h"

View File

@ -28,7 +28,7 @@
#include "firebird.h"
#include <stdio.h>
#include <stdarg.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../yvalve/gds_proto.h"
#include "../gpre/gpre.h"
#include "../gpre/pat.h"

View File

@ -33,7 +33,7 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../gpre/pat.h"
#include "../gpre/msc_proto.h"

View File

@ -45,7 +45,7 @@
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../gpre/cmp_proto.h"
#include "../gpre/exp_proto.h"

View File

@ -31,7 +31,7 @@
#include <stdlib.h>
#include <string.h>
#include "../gpre/gpre.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/intl.h"
#include "../jrd/constants.h"
#include "../gpre/cme_proto.h"

View File

@ -30,7 +30,7 @@
#include "firebird.h"
#include <string.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../gpre/gpre.h"
#include "../jrd/intl.h"
#include "../gpre/gpre_proto.h"

View File

@ -76,7 +76,7 @@ typedef ULONG ISC_ULONG;
typedef SINT64 ISC_INT64;
typedef FB_UINT64 ISC_UINT64;
#include "types_pub.h"
#include "firebird/impl/types_pub.h"
typedef ISC_QUAD SQUAD;

View File

@ -30,8 +30,8 @@
* Adriano dos Santos Fernandes
*/
#ifndef JRD_BLR_H
#define JRD_BLR_H
#ifndef FIREBIRD_IMPL_BLR_H
#define FIREBIRD_IMPL_BLR_H
#define BLR_WORD(x) UCHAR(x), UCHAR((x) >> 8)
@ -441,4 +441,4 @@
#define blr_at_local (unsigned char) 0
#define blr_at_zone (unsigned char) 1
#endif // JRD_BLR_H
#endif // FIREBIRD_IMPL_BLR_H

View File

@ -23,8 +23,8 @@
*
*/
#ifndef INCLUDE_CONSTS_PUB_H
#define INCLUDE_CONSTS_PUB_H
#ifndef FIREBIRD_IMPL_CONSTS_PUB_H
#define FIREBIRD_IMPL_CONSTS_PUB_H
/**********************************/
/* Database parameter block stuff */
@ -737,4 +737,4 @@
#define fb_dbg_arg_input 0
#define fb_dbg_arg_output 1
#endif // ifndef INCLUDE_CONSTS_PUB_H
#endif // ifndef FIREBIRD_IMPL_CONSTS_PUB_H

View File

@ -23,8 +23,8 @@
* compatible with the HP Compiler
*/
#ifndef JRD_DSC_PUB_H
#define JRD_DSC_PUB_H
#ifndef FIREBIRD_IMPL_DSC_PUB_H
#define FIREBIRD_IMPL_DSC_PUB_H
/*
@ -71,4 +71,4 @@
#define ISC_TIME_SECONDS_PRECISION 10000
#define ISC_TIME_SECONDS_PRECISION_SCALE (-4)
#endif /* JRD_DSC_PUB_H */
#endif /* FIREBIRD_IMPL_DSC_PUB_H */

View File

@ -23,8 +23,8 @@
* 2001.07.28: John Bellardo: Added isc_info_rsb_skip to support LIMIT.
*/
#ifndef JRD_INF_PUB_H
#define JRD_INF_PUB_H
#ifndef FIREBIRD_IMPL_INF_PUB_H
#define FIREBIRD_IMPL_INF_PUB_H
/* Common, structural codes */
/****************************/
@ -462,5 +462,4 @@ enum info_db_provider
#define isc_info_sql_stmt_set_generator 13
#define isc_info_sql_stmt_savepoint 14
#endif /* JRD_INF_PUB_H */
#endif /* FIREBIRD_IMPL_INF_PUB_H */

View File

@ -21,8 +21,8 @@
* Contributor(s): ______________________________________.
*/
#ifndef DSQL_SQLDA_PUB_H
#define DSQL_SQLDA_PUB_H
#ifndef FIREBIRD_IMPL_SQLDA_PUB_H
#define FIREBIRD_IMPL_SQLDA_PUB_H
/* Definitions for DSQL free_statement routine */
@ -104,5 +104,4 @@ typedef struct
numeric type */
#define SQL_DIALECT_CURRENT SQL_DIALECT_V6 /* latest IB DIALECT */
#endif /* DSQL_SQLDA_PUB_H */
#endif /* FIREBIRD_IMPL_SQLDA_PUB_H */

View File

@ -24,8 +24,8 @@
* Contributor(s): ______________________________________.
*/
#ifndef INCLUDE_TYPES_PUB_H
#define INCLUDE_TYPES_PUB_H
#ifndef FIREBIRD_IMPL_TYPES_PUB_H
#define FIREBIRD_IMPL_TYPES_PUB_H
#include <stddef.h>
@ -200,4 +200,4 @@ struct FB_DEC34_t {
typedef struct FB_DEC16_t FB_DEC16;
typedef struct FB_DEC34_t FB_DEC34;
#endif /* INCLUDE_TYPES_PUB_H */
#endif /* FIREBIRD_IMPL_TYPES_PUB_H */

File diff suppressed because it is too large Load Diff

View File

@ -46,7 +46,7 @@
#include <math.h>
#include <ctype.h> // isdigit
#include "../jrd/constants.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../yvalve/gds_proto.h"
#include "../common/intlobj_new.h"
#include "../isql/isql.h"

View File

@ -100,7 +100,7 @@ enum literal_string_type
#if defined(WIN_NT)
#include <windows.h>
#endif
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../isql/isql.h"
#include "../yvalve/perf.h"
#include "../jrd/license.h"

View File

@ -25,7 +25,7 @@
#ifndef ISQL_ISQLSWI_H
#define ISQL_ISQLSWI_H
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../jrd/constants.h"
enum isql_switches

View File

@ -31,7 +31,7 @@
//#include <windows.h>
//#endif
#include <ctype.h>
#include "../jrd/ibase.h"
#include "ibase.h"
#include "isql.h"
#include "../common/classes/MsgPrint.h"
#include <stdarg.h>

View File

@ -41,7 +41,7 @@
#include <string.h>
#include "../yvalve/gds_proto.h"
#include "../jrd/ibase.h"
#include "ibase.h"
#include "../isql/isql.h"
#include "../jrd/intl.h"
#include "../common/intlobj_new.h"

View File

@ -43,7 +43,7 @@
#include "../jrd/cch_proto.h"
#include "../jrd/lck_proto.h"
#include "../jrd/pag_proto.h"
#include "../jrd/inf_pub.h"
#include "firebird/impl/inf_pub.h"
#include "../jrd/Monitoring.h"
#include "../jrd/os/pio_proto.h"
#include "../common/isc_proto.h"

View File

@ -21,11 +21,11 @@
*/
#include "firebird.h"
#include "consts_pub.h"
#include "firebird/impl/consts_pub.h"
#include "iberror.h"
#include "inf_pub.h"
#include "firebird/impl/inf_pub.h"
#include "../jrd/ExtEngineManager.h"
#include "../dsql/sqlda_pub.h"
#include "firebird/impl/sqlda_pub.h"
#include "../common/dsc.h"
#include "../jrd/align.h"
#include "../jrd/jrd.h"

View File

@ -27,7 +27,7 @@
#include "../jrd/req.h"
#include "../dsql/dsql.h"
#include "../common/classes/auto.h"
#include "../dsql/sqlda_pub.h"
#include "firebird/impl/sqlda_pub.h"
#include "../dsql/dsql_proto.h"
#include "../jrd/mov_proto.h"
#include "../jrd/Attachment.h"

View File

@ -26,7 +26,7 @@
#include "../jrd/jrd.h"
#include "../jrd/req.h"
#include "../dsql/dsql.h"
#include "../dsql/sqlda_pub.h"
#include "firebird/impl/sqlda_pub.h"
#include "../dsql/dsql_proto.h"
#include "../jrd/mov_proto.h"

View File

@ -33,7 +33,7 @@ Maximum alignments for corresponding data types are defined in dsc.h
*/
#include "../common/DecFloat.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
/* The following macro must be defined as the highest-numericly-valued
* blr which describes a datatype: arrays are sized based on this value.

View File

@ -80,7 +80,7 @@
#include "../jrd/intl_classes.h"
#include "../jrd/rse.h"
#include "../jrd/sort.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../jrd/tra.h"
#include "../common/gdsassert.h"
#include "../common/classes/auto.h"

View File

@ -72,7 +72,7 @@
#include "../jrd/intl.h"
#include "../jrd/sbm.h"
#include "../jrd/blb.h"
#include "../jrd/blr.h"
#include "firebird/impl/blr.h"
#include "../dsql/ExprNodes.h"
#include "../dsql/StmtNodes.h"
#include "../jrd/blb_proto.h"

Some files were not shown because too many files have changed in this diff Show More