@@ -49,8 +49,8 @@ static void create_check_constraint(gpre_req*, const act*, cnstrt*);
49
49
static void create_constraint (gpre_req*, const act*, cnstrt*);
50
50
static void create_database (gpre_req*, const act*);
51
51
static void create_database_modify_dyn (gpre_req*, act*);
52
- static void create_default_blr (gpre_req*, const TEXT*, const USHORT);
53
- static void create_del_cascade_trg (gpre_req*, const act*, cnstrt*);
52
+ static void create_default_blr (gpre_req*, const TEXT*, const USHORT) noexcept ;
53
+ static void create_del_cascade_trg (gpre_req*, const act*, const cnstrt*);
54
54
static void create_domain (gpre_req*, const act*);
55
55
static void create_domain_constraint (gpre_req*, const cnstrt*);
56
56
static void create_generator (gpre_req*, const act*);
@@ -69,15 +69,15 @@ static void declare_filter(gpre_req*, const act*);
69
69
static void declare_udf (gpre_req*, const act*);
70
70
static void get_referred_fields (const act*, cnstrt*);
71
71
static void grant_revoke_privileges (gpre_req*, const act*);
72
- static void init_field_struct (gpre_fld*);
73
- static void put_array_info (gpre_req*, const gpre_fld*);
74
- static void put_blr (gpre_req*, USHORT, gpre_nod*, pfn_local_trigger_cb);
72
+ static void init_field_struct (gpre_fld*) noexcept ;
73
+ static void put_array_info (gpre_req*, const gpre_fld*) noexcept ;
74
+ static void put_blr (gpre_req*, USHORT, gpre_nod*, pfn_local_trigger_cb) noexcept ;
75
75
static void put_computed_blr (gpre_req*, const gpre_fld*);
76
76
static void put_computed_source (gpre_req*, const gpre_fld*);
77
77
static void put_cstring (gpre_req*, USHORT, const TEXT*);
78
78
static void put_dtype (gpre_req*, const gpre_fld*);
79
79
static void put_field_attributes (gpre_req*, const gpre_fld*);
80
- static void put_numeric (gpre_req*, USHORT, SSHORT);
80
+ static void put_numeric (gpre_req*, USHORT, SSHORT) noexcept ;
81
81
static void put_short_cstring (gpre_req*, USHORT, const TEXT*);
82
82
static void put_string (gpre_req*, USHORT, const TEXT*, USHORT);
83
83
static void put_symbol (gpre_req*, int , const gpre_sym*);
@@ -95,7 +95,7 @@ static inline void STUFF_CHECK(gpre_req* request, int n)
95
95
}
96
96
97
97
98
- const int BLOB_BUFFER_SIZE = 4096 ; // to read in blr blob for default values
98
+ constexpr int BLOB_BUFFER_SIZE = 4096 ; // to read in blr blob for default values
99
99
100
100
101
101
// ____________________________________________________________
@@ -584,7 +584,7 @@ static void create_matching_blr(gpre_req* request, const cnstrt* constraint)
584
584
//
585
585
586
586
static void create_default_blr (gpre_req* request,
587
- const TEXT* default_buff, const USHORT buff_size)
587
+ const TEXT* default_buff, const USHORT buff_size) noexcept
588
588
{
589
589
int i;
590
590
@@ -604,12 +604,12 @@ static void create_default_blr(gpre_req* request,
604
604
// integrity) along with the trigger blr.
605
605
//
606
606
607
- static void create_upd_cascade_trg ( gpre_req* request, const act* action,
607
+ static void create_upd_cascade_trg (gpre_req* request, const act* action,
608
608
cnstrt* constraint)
609
609
{
610
610
gpre_lls* for_key_fld = constraint->cnstrt_fields ;
611
611
gpre_lls* prim_key_fld = constraint->cnstrt_referred_fields ;
612
- gpre_rel* relation = (gpre_rel*) action->act_object ;
612
+ const gpre_rel* relation = (gpre_rel*) action->act_object ;
613
613
614
614
// no trigger name is generated here. Let the engine make one up
615
615
put_string (request, isc_dyn_def_trigger, " " , (USHORT) 0 );
@@ -693,8 +693,8 @@ static void create_upd_cascade_trg( gpre_req* request, const act* action,
693
693
// integrity) along with the trigger blr.
694
694
//
695
695
696
- static void create_del_cascade_trg ( gpre_req* request, const act* action,
697
- cnstrt* constraint)
696
+ static void create_del_cascade_trg (gpre_req* request, const act* action,
697
+ const cnstrt* constraint)
698
698
{
699
699
const gpre_rel* relation = (gpre_rel*) action->act_object ;
700
700
@@ -2219,7 +2219,7 @@ static void grant_revoke_privileges( gpre_req* request, const act* action)
2219
2219
//
2220
2220
//
2221
2221
2222
- static void init_field_struct ( gpre_fld* field)
2222
+ static void init_field_struct (gpre_fld* field) noexcept
2223
2223
{
2224
2224
field->fld_dtype = 0 ;
2225
2225
field->fld_length = 0 ;
@@ -2254,7 +2254,7 @@ static void init_field_struct( gpre_fld* field)
2254
2254
// Put dimensions for the array field.
2255
2255
//
2256
2256
2257
- static void put_array_info ( gpre_req* request, const gpre_fld* field)
2257
+ static void put_array_info (gpre_req* request, const gpre_fld* field) noexcept
2258
2258
{
2259
2259
const ary* array_info = field->fld_array_info ;
2260
2260
const SSHORT dims = (SSHORT) array_info->ary_dimension_count ;
@@ -2281,7 +2281,7 @@ static void put_array_info( gpre_req* request, const gpre_fld* field)
2281
2281
//
2282
2282
2283
2283
static void put_blr (gpre_req* request,
2284
- USHORT blr_operator, gpre_nod* node, pfn_local_trigger_cb routine)
2284
+ USHORT blr_operator, gpre_nod* node, pfn_local_trigger_cb routine) noexcept
2285
2285
{
2286
2286
request->add_byte (blr_operator);
2287
2287
const USHORT offset = request->req_blr - request->req_base ;
@@ -2378,8 +2378,6 @@ static void put_dtype( gpre_req* request, const gpre_fld* field)
2378
2378
USHORT dtype = 0 ;
2379
2379
2380
2380
USHORT length = field->fld_length ;
2381
- // const USHORT precision = field->fld_precision;
2382
- // const USHORT sub_type = field->fld_sub_type;
2383
2381
switch (field->fld_dtype )
2384
2382
{
2385
2383
case dtype_cstring:
@@ -2398,11 +2396,12 @@ static void put_dtype( gpre_req* request, const gpre_fld* field)
2398
2396
length--;
2399
2397
dtype = blr_text;
2400
2398
}
2399
+ [[fallthrough]];
2401
2400
2402
2401
case dtype_text:
2403
2402
if (field->fld_dtype == dtype_text)
2404
2403
dtype = blr_text;
2405
- // Fall into
2404
+ [[fallthrough]];
2406
2405
2407
2406
case dtype_varying:
2408
2407
fb_assert (length);
@@ -2561,9 +2560,8 @@ static void put_field_attributes( gpre_req* request, const gpre_fld* field)
2561
2560
// Put a numeric valued attributed to the output string.
2562
2561
//
2563
2562
2564
- static void put_numeric ( gpre_req* request, USHORT blr_operator, SSHORT number)
2563
+ static void put_numeric (gpre_req* request, USHORT blr_operator, SSHORT number) noexcept
2565
2564
{
2566
-
2567
2565
request->add_byte (blr_operator);
2568
2566
request->add_word (2 );
2569
2567
request->add_word (number);
@@ -2780,7 +2778,7 @@ static void replace_field_names(gpre_nod* const input,
2780
2778
if ((*ptr)->nod_type == nod_field)
2781
2779
{
2782
2780
ref* reference = (ref*) (*ptr)->nod_arg [0 ];
2783
- gpre_fld* rse_field = reference->ref_field ;
2781
+ const gpre_fld* rse_field = reference->ref_field ;
2784
2782
if (null_them)
2785
2783
{
2786
2784
if (reference->ref_context == contexts[2 ]) {
0 commit comments