Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
326d8658
Commit
326d8658
authored
Jun 19, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change form() to varargform() to prevent portability problems.
parent
e7865086
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
49 deletions
+49
-49
src/backend/access/index/istrat.c
src/backend/access/index/istrat.c
+8
-8
src/backend/catalog/index.c
src/backend/catalog/index.c
+5
-5
src/backend/commands/command.c
src/backend/commands/command.c
+7
-7
src/backend/libpq/portalbuf.c
src/backend/libpq/portalbuf.c
+9
-9
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/path/indxpath.c
+9
-9
src/backend/utils/error/format.c
src/backend/utils/error/format.c
+3
-3
src/backend/utils/mmgr/portalmem.c
src/backend/utils/mmgr/portalmem.c
+3
-3
src/include/c.h
src/include/c.h
+5
-5
No files found.
src/backend/access/index/istrat.c
View file @
326d8658
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.3
2 1999/05/25 16:07:15
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.3
3 1999/06/19 04:54:10
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -612,7 +612,7 @@ IndexSupportInitialize(IndexStrategy indexStrategy,
...
@@ -612,7 +612,7 @@ IndexSupportInitialize(IndexStrategy indexStrategy,
attributeNumber
++
)
attributeNumber
++
)
{
{
int16
support
;
int16
support
;
Form_pg_amproc
form
;
Form_pg_amproc
a
form
;
RegProcedure
*
loc
;
RegProcedure
*
loc
;
loc
=
&
indexSupport
[((
attributeNumber
-
1
)
*
maxSupportNumber
)];
loc
=
&
indexSupport
[((
attributeNumber
-
1
)
*
maxSupportNumber
)];
...
@@ -627,8 +627,8 @@ IndexSupportInitialize(IndexStrategy indexStrategy,
...
@@ -627,8 +627,8 @@ IndexSupportInitialize(IndexStrategy indexStrategy,
while
(
HeapTupleIsValid
(
tuple
=
heap_getnext
(
scan
,
0
)))
while
(
HeapTupleIsValid
(
tuple
=
heap_getnext
(
scan
,
0
)))
{
{
form
=
(
Form_pg_amproc
)
GETSTRUCT
(
tuple
);
a
form
=
(
Form_pg_amproc
)
GETSTRUCT
(
tuple
);
loc
[(
form
->
amprocnum
-
1
)]
=
form
->
amproc
;
loc
[(
aform
->
amprocnum
-
1
)]
=
a
form
->
amproc
;
}
}
heap_endscan
(
scan
);
heap_endscan
(
scan
);
...
@@ -667,12 +667,12 @@ IndexSupportInitialize(IndexStrategy indexStrategy,
...
@@ -667,12 +667,12 @@ IndexSupportInitialize(IndexStrategy indexStrategy,
while
(
HeapTupleIsValid
(
tuple
=
heap_getnext
(
scan
,
0
)))
while
(
HeapTupleIsValid
(
tuple
=
heap_getnext
(
scan
,
0
)))
{
{
Form_pg_amop
form
;
Form_pg_amop
a
form
;
form
=
(
Form_pg_amop
)
GETSTRUCT
(
tuple
);
a
form
=
(
Form_pg_amop
)
GETSTRUCT
(
tuple
);
OperatorRelationFillScanKeyEntry
(
operatorRelation
,
OperatorRelationFillScanKeyEntry
(
operatorRelation
,
form
->
amopopr
,
a
form
->
amopopr
,
StrategyMapGetScanKeyEntry
(
map
,
form
->
amopstrategy
));
StrategyMapGetScanKeyEntry
(
map
,
a
form
->
amopstrategy
));
}
}
heap_endscan
(
scan
);
heap_endscan
(
scan
);
...
...
src/backend/catalog/index.c
View file @
326d8658
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.7
8 1999/06/16 11:01:17
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.7
9 1999/06/19 04:54:11
momjian Exp $
*
*
*
*
* INTERFACE ROUTINES
* INTERFACE ROUTINES
...
@@ -372,7 +372,7 @@ AccessMethodObjectIdGetForm(Oid accessMethodObjectId)
...
@@ -372,7 +372,7 @@ AccessMethodObjectIdGetForm(Oid accessMethodObjectId)
HeapScanDesc
pg_am_scan
;
HeapScanDesc
pg_am_scan
;
HeapTuple
pg_am_tuple
;
HeapTuple
pg_am_tuple
;
ScanKeyData
key
;
ScanKeyData
key
;
Form_pg_am
form
;
Form_pg_am
a
form
;
/* ----------------
/* ----------------
* form a scan key for the pg_am relation
* form a scan key for the pg_am relation
...
@@ -406,13 +406,13 @@ AccessMethodObjectIdGetForm(Oid accessMethodObjectId)
...
@@ -406,13 +406,13 @@ AccessMethodObjectIdGetForm(Oid accessMethodObjectId)
* if found am tuple, then copy the form and return the copy
* if found am tuple, then copy the form and return the copy
* ----------------
* ----------------
*/
*/
form
=
(
Form_pg_am
)
palloc
(
sizeof
*
form
);
aform
=
(
Form_pg_am
)
palloc
(
sizeof
*
a
form
);
memcpy
(
form
,
GETSTRUCT
(
pg_am_tuple
),
sizeof
*
form
);
memcpy
(
aform
,
GETSTRUCT
(
pg_am_tuple
),
sizeof
*
a
form
);
heap_endscan
(
pg_am_scan
);
heap_endscan
(
pg_am_scan
);
heap_close
(
pg_am_desc
);
heap_close
(
pg_am_desc
);
return
form
;
return
a
form
;
}
}
/* ----------------------------------------------------------------
/* ----------------------------------------------------------------
...
...
src/backend/commands/command.c
View file @
326d8658
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.4
6 1999/05/25 22:40:54
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.4
7 1999/06/19 04:54:12
momjian Exp $
*
*
* NOTES
* NOTES
* The PortalExecutorHeapMemory crap needs to be eliminated
* The PortalExecutorHeapMemory crap needs to be eliminated
...
@@ -435,7 +435,7 @@ PerformAddAttribute(char *relationName,
...
@@ -435,7 +435,7 @@ PerformAddAttribute(char *relationName,
{
{
HeapTuple
typeTuple
;
HeapTuple
typeTuple
;
Form_pg_type
form
;
Form_pg_type
t
form
;
char
*
typename
;
char
*
typename
;
int
attnelems
;
int
attnelems
;
...
@@ -469,21 +469,21 @@ PerformAddAttribute(char *relationName,
...
@@ -469,21 +469,21 @@ PerformAddAttribute(char *relationName,
typeTuple
=
SearchSysCacheTuple
(
TYPNAME
,
typeTuple
=
SearchSysCacheTuple
(
TYPNAME
,
PointerGetDatum
(
typename
),
PointerGetDatum
(
typename
),
0
,
0
,
0
);
0
,
0
,
0
);
form
=
(
Form_pg_type
)
GETSTRUCT
(
typeTuple
);
t
form
=
(
Form_pg_type
)
GETSTRUCT
(
typeTuple
);
if
(
!
HeapTupleIsValid
(
typeTuple
))
if
(
!
HeapTupleIsValid
(
typeTuple
))
elog
(
ERROR
,
"Add: type
\"
%s
\"
nonexistent"
,
typename
);
elog
(
ERROR
,
"Add: type
\"
%s
\"
nonexistent"
,
typename
);
namestrcpy
(
&
(
attribute
->
attname
),
colDef
->
colname
);
namestrcpy
(
&
(
attribute
->
attname
),
colDef
->
colname
);
attribute
->
atttypid
=
typeTuple
->
t_data
->
t_oid
;
attribute
->
atttypid
=
typeTuple
->
t_data
->
t_oid
;
attribute
->
attlen
=
form
->
typlen
;
attribute
->
attlen
=
t
form
->
typlen
;
attribute
->
attdisbursion
=
0
;
attribute
->
attdisbursion
=
0
;
attribute
->
attcacheoff
=
-
1
;
attribute
->
attcacheoff
=
-
1
;
attribute
->
atttypmod
=
colDef
->
typename
->
typmod
;
attribute
->
atttypmod
=
colDef
->
typename
->
typmod
;
attribute
->
attnum
=
i
;
attribute
->
attnum
=
i
;
attribute
->
attbyval
=
form
->
typbyval
;
attribute
->
attbyval
=
t
form
->
typbyval
;
attribute
->
attnelems
=
attnelems
;
attribute
->
attnelems
=
attnelems
;
attribute
->
attisset
=
(
bool
)
(
form
->
typtype
==
'c'
);
attribute
->
attisset
=
(
bool
)
(
t
form
->
typtype
==
'c'
);
attribute
->
attalign
=
form
->
typalign
;
attribute
->
attalign
=
t
form
->
typalign
;
attribute
->
attnotnull
=
false
;
attribute
->
attnotnull
=
false
;
attribute
->
atthasdef
=
(
colDef
->
defval
!=
NULL
);
attribute
->
atthasdef
=
(
colDef
->
defval
!=
NULL
);
...
...
src/backend/libpq/portalbuf.c
View file @
326d8658
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.1
4 1999/05/25 16:09:02
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.1
5 1999/06/19 04:54:13
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -89,7 +89,7 @@ portals_realloc(size_t size)
...
@@ -89,7 +89,7 @@ portals_realloc(size_t size)
portals
=
newp
;
portals
=
newp
;
else
else
libpq_raise
(
&
PortalError
,
libpq_raise
(
&
PortalError
,
form
(
"Cannot alloc more memory in portals_realloc"
));
vararg
form
(
"Cannot alloc more memory in portals_realloc"
));
for
(
i
=
oldsize
;
i
<
portals_array_size
;
i
++
)
for
(
i
=
oldsize
;
i
<
portals_array_size
;
i
++
)
portals
[
i
]
=
(
PortalEntry
*
)
NULL
;
portals
[
i
]
=
(
PortalEntry
*
)
NULL
;
...
@@ -109,11 +109,11 @@ pbuf_alloc(size_t size)
...
@@ -109,11 +109,11 @@ pbuf_alloc(size_t size)
caddr_t
addr
;
caddr_t
addr
;
if
(
size
<=
0
)
if
(
size
<=
0
)
libpq_raise
(
&
MemoryError
,
form
(
"Invalid argument to pbuf_alloc()."
));
libpq_raise
(
&
MemoryError
,
vararg
form
(
"Invalid argument to pbuf_alloc()."
));
addr
=
(
caddr_t
)
palloc
(
size
);
addr
=
(
caddr_t
)
palloc
(
size
);
if
(
addr
==
(
caddr_t
)
NULL
)
if
(
addr
==
(
caddr_t
)
NULL
)
libpq_raise
(
&
MemoryError
,
form
(
"Cannot Allocate space."
));
libpq_raise
(
&
MemoryError
,
vararg
form
(
"Cannot Allocate space."
));
return
addr
;
return
addr
;
}
}
...
@@ -131,7 +131,7 @@ pbuf_free(caddr_t pointer)
...
@@ -131,7 +131,7 @@ pbuf_free(caddr_t pointer)
if
(
pointer
)
if
(
pointer
)
pfree
(
pointer
);
pfree
(
pointer
);
else
else
libpq_raise
(
&
MemoryError
,
form
(
"Tried to free NULL memory pointer"
));
libpq_raise
(
&
MemoryError
,
vararg
form
(
"Tried to free NULL memory pointer"
));
}
}
...
@@ -437,7 +437,7 @@ pbuf_close(char *pname)
...
@@ -437,7 +437,7 @@ pbuf_close(char *pname)
int
i
;
int
i
;
if
((
i
=
pbuf_getIndex
(
pname
))
==
-
1
)
if
((
i
=
pbuf_getIndex
(
pname
))
==
-
1
)
libpq_raise
(
&
PortalError
,
form
(
"Portal %s does not exist."
,
pname
));
libpq_raise
(
&
PortalError
,
vararg
form
(
"Portal %s does not exist."
,
pname
));
pbuf_freePortal
(
portals
[
i
]
->
portal
);
pbuf_freePortal
(
portals
[
i
]
->
portal
);
pbuf_freeEntry
(
i
);
pbuf_freeEntry
(
i
);
...
@@ -462,7 +462,7 @@ pbuf_findGroup(PortalBuffer *portal,
...
@@ -462,7 +462,7 @@ pbuf_findGroup(PortalBuffer *portal,
if
(
group
==
NULL
)
if
(
group
==
NULL
)
libpq_raise
(
&
PortalError
,
libpq_raise
(
&
PortalError
,
form
(
"Group index %d out of bound."
,
group_index
));
vararg
form
(
"Group index %d out of bound."
,
group_index
));
return
group
;
return
group
;
}
}
...
@@ -485,7 +485,7 @@ pbuf_findFnumber(GroupBuffer *group,
...
@@ -485,7 +485,7 @@ pbuf_findFnumber(GroupBuffer *group,
return
i
;
return
i
;
libpq_raise
(
&
PortalError
,
libpq_raise
(
&
PortalError
,
form
(
"Field-name %s does not exist."
,
field_name
));
vararg
form
(
"Field-name %s does not exist."
,
field_name
));
/* not reached, here to make compiler happy */
/* not reached, here to make compiler happy */
return
0
;
return
0
;
...
@@ -502,7 +502,7 @@ pbuf_checkFnumber(GroupBuffer *group,
...
@@ -502,7 +502,7 @@ pbuf_checkFnumber(GroupBuffer *group,
{
{
if
(
field_number
<
0
||
field_number
>=
group
->
no_fields
)
if
(
field_number
<
0
||
field_number
>=
group
->
no_fields
)
libpq_raise
(
&
PortalError
,
libpq_raise
(
&
PortalError
,
form
(
"Field number %d out of bound."
,
field_number
));
vararg
form
(
"Field number %d out of bound."
,
field_number
));
}
}
/* --------------------------------
/* --------------------------------
...
...
src/backend/optimizer/path/indxpath.c
View file @
326d8658
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.5
6 1999/05/25 22:41:28
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.5
7 1999/06/19 04:54:14
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1008,7 +1008,7 @@ clause_pred_clause_test(Expr *predicate, Node *clause)
...
@@ -1008,7 +1008,7 @@ clause_pred_clause_test(Expr *predicate, Node *clause)
HeapScanDesc
scan
;
HeapScanDesc
scan
;
HeapTuple
tuple
;
HeapTuple
tuple
;
ScanKeyData
entry
[
3
];
ScanKeyData
entry
[
3
];
Form_pg_amop
form
;
Form_pg_amop
a
form
;
pred_var
=
(
Var
*
)
get_leftop
(
predicate
);
pred_var
=
(
Var
*
)
get_leftop
(
predicate
);
pred_const
=
(
Const
*
)
get_rightop
(
predicate
);
pred_const
=
(
Const
*
)
get_rightop
(
predicate
);
...
@@ -1067,13 +1067,13 @@ clause_pred_clause_test(Expr *predicate, Node *clause)
...
@@ -1067,13 +1067,13 @@ clause_pred_clause_test(Expr *predicate, Node *clause)
elog
(
DEBUG
,
"clause_pred_clause_test: unknown pred_op"
);
elog
(
DEBUG
,
"clause_pred_clause_test: unknown pred_op"
);
return
false
;
return
false
;
}
}
form
=
(
Form_pg_amop
)
GETSTRUCT
(
tuple
);
a
form
=
(
Form_pg_amop
)
GETSTRUCT
(
tuple
);
/* Get the predicate operator's strategy number (1 to 5) */
/* Get the predicate operator's strategy number (1 to 5) */
pred_strategy
=
(
StrategyNumber
)
form
->
amopstrategy
;
pred_strategy
=
(
StrategyNumber
)
a
form
->
amopstrategy
;
/* Remember which operator class this strategy number came from */
/* Remember which operator class this strategy number came from */
opclass_id
=
form
->
amopclaid
;
opclass_id
=
a
form
->
amopclaid
;
heap_endscan
(
scan
);
heap_endscan
(
scan
);
...
@@ -1098,10 +1098,10 @@ clause_pred_clause_test(Expr *predicate, Node *clause)
...
@@ -1098,10 +1098,10 @@ clause_pred_clause_test(Expr *predicate, Node *clause)
elog
(
DEBUG
,
"clause_pred_clause_test: unknown clause_op"
);
elog
(
DEBUG
,
"clause_pred_clause_test: unknown clause_op"
);
return
false
;
return
false
;
}
}
form
=
(
Form_pg_amop
)
GETSTRUCT
(
tuple
);
a
form
=
(
Form_pg_amop
)
GETSTRUCT
(
tuple
);
/* Get the restriction clause operator's strategy number (1 to 5) */
/* Get the restriction clause operator's strategy number (1 to 5) */
clause_strategy
=
(
StrategyNumber
)
form
->
amopstrategy
;
clause_strategy
=
(
StrategyNumber
)
a
form
->
amopstrategy
;
heap_endscan
(
scan
);
heap_endscan
(
scan
);
...
@@ -1130,10 +1130,10 @@ clause_pred_clause_test(Expr *predicate, Node *clause)
...
@@ -1130,10 +1130,10 @@ clause_pred_clause_test(Expr *predicate, Node *clause)
elog
(
DEBUG
,
"clause_pred_clause_test: unknown test_op"
);
elog
(
DEBUG
,
"clause_pred_clause_test: unknown test_op"
);
return
false
;
return
false
;
}
}
form
=
(
Form_pg_amop
)
GETSTRUCT
(
tuple
);
a
form
=
(
Form_pg_amop
)
GETSTRUCT
(
tuple
);
/* Get the test operator */
/* Get the test operator */
test_op
=
form
->
amopopr
;
test_op
=
a
form
->
amopopr
;
heap_endscan
(
scan
);
heap_endscan
(
scan
);
...
...
src/backend/utils/error/format.c
View file @
326d8658
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/format.c,v 1.1
1 1999/05/25 16:12:26
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/format.c,v 1.1
2 1999/06/19 04:54:19
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -22,11 +22,11 @@ static char FormBuf[FormMaxSize];
...
@@ -22,11 +22,11 @@ static char FormBuf[FormMaxSize];
/* ----------------
/* ----------------
* form
*
vararg
form
* ----------------
* ----------------
*/
*/
char
*
char
*
form
(
const
char
*
fmt
,...)
vararg
form
(
const
char
*
fmt
,...)
{
{
va_list
args
;
va_list
args
;
...
...
src/backend/utils/mmgr/portalmem.c
View file @
326d8658
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.2
1 1999/06/12 14:07:26
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.2
2 1999/06/19 04:54:19
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -234,7 +234,7 @@ PortalVariableMemoryRealloc(PortalVariableMemory this,
...
@@ -234,7 +234,7 @@ PortalVariableMemoryRealloc(PortalVariableMemory this,
static
char
*
static
char
*
PortalVariableMemoryGetName
(
PortalVariableMemory
this
)
PortalVariableMemoryGetName
(
PortalVariableMemory
this
)
{
{
return
form
(
"%s-var"
,
PortalVariableMemoryGetPortal
(
this
)
->
name
);
return
vararg
form
(
"%s-var"
,
PortalVariableMemoryGetPortal
(
this
)
->
name
);
}
}
/* ----------------
/* ----------------
...
@@ -312,7 +312,7 @@ PortalHeapMemoryRealloc(PortalHeapMemory this,
...
@@ -312,7 +312,7 @@ PortalHeapMemoryRealloc(PortalHeapMemory this,
static
char
*
static
char
*
PortalHeapMemoryGetName
(
PortalHeapMemory
this
)
PortalHeapMemoryGetName
(
PortalHeapMemory
this
)
{
{
return
form
(
"%s-heap"
,
PortalHeapMemoryGetPortal
(
this
)
->
name
);
return
vararg
form
(
"%s-heap"
,
PortalHeapMemoryGetPortal
(
this
)
->
name
);
}
}
/* ----------------
/* ----------------
...
...
src/include/c.h
View file @
326d8658
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: c.h,v 1.5
5 1999/05/25 16:13:22
momjian Exp $
* $Id: c.h,v 1.5
6 1999/06/19 04:54:23
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -591,7 +591,7 @@ extern int assert_enabled;
...
@@ -591,7 +591,7 @@ extern int assert_enabled;
#define LogTrap(condition, exception, printArgs) \
#define LogTrap(condition, exception, printArgs) \
{ if ((assert_enabled) && (condition)) \
{ if ((assert_enabled) && (condition)) \
ExceptionalCondition(CppAsString(condition), &(exception), \
ExceptionalCondition(CppAsString(condition), &(exception), \
form printArgs, __FILE__, __LINE__); }
vararg
form printArgs, __FILE__, __LINE__); }
/*
/*
* LogTrapMacro is the same as LogTrap but it's intended for use in macros:
* LogTrapMacro is the same as LogTrap but it's intended for use in macros:
...
@@ -602,7 +602,7 @@ extern int assert_enabled;
...
@@ -602,7 +602,7 @@ extern int assert_enabled;
((bool) ((! assert_enabled) || (! condition) || \
((bool) ((! assert_enabled) || (! condition) || \
(ExceptionalCondition(CppAsString(condition), \
(ExceptionalCondition(CppAsString(condition), \
&(exception), \
&(exception), \
form printArgs, __FILE__, __LINE__))))
vararg
form printArgs, __FILE__, __LINE__))))
#ifndef USE_ASSERT_CHECKING
#ifndef USE_ASSERT_CHECKING
#define LogAssert(condition, printArgs)
#define LogAssert(condition, printArgs)
...
@@ -711,10 +711,10 @@ extern int ExceptionalCondition(char *conditionName,
...
@@ -711,10 +711,10 @@ extern int ExceptionalCondition(char *conditionName,
/* ----------------
/* ----------------
* form is used by assert and the exception handling stuff
*
vararg
form is used by assert and the exception handling stuff
* ----------------
* ----------------
*/
*/
extern
char
*
form
(
const
char
*
fmt
,...);
extern
char
*
vararg
form
(
const
char
*
fmt
,...);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment