-
- Downloads
ada: Reuse and simplify counting the length of various lists
Use utility routines to compute number of elements in lists of nodes and chains of formal parameters. Code cleanup; semantics is unaffected. gcc/ada/ChangeLog: * exp_aggr.adb (Others_Check): Reuse List_Length; tune whitespace. * exp_ch3.adb (Constrain_Array): Remove counting of constraints. * exp_disp.adb (Make_DT): Use Elist utility routines; tune whitespace. * sem_ch12.adb (Formal_Dimensions): Reuse List_Length. (Valid_Default_Attribute): Reuse Number_Formals. * sem_prag.adb (Process_Convention): Likewise. * sem_util.adb (Normalize_Actuals): Likewise. (Check_Function_Writable_Actuals): Reuse List_Length.
Showing
- gcc/ada/exp_aggr.adb 3 additions, 15 deletionsgcc/ada/exp_aggr.adb
- gcc/ada/exp_ch3.adb 4 additions, 11 deletionsgcc/ada/exp_ch3.adb
- gcc/ada/exp_disp.adb 6 additions, 12 deletionsgcc/ada/exp_disp.adb
- gcc/ada/sem_ch12.adb 5 additions, 17 deletionsgcc/ada/sem_ch12.adb
- gcc/ada/sem_prag.adb 1 addition, 12 deletionsgcc/ada/sem_prag.adb
- gcc/ada/sem_util.adb 7 additions, 17 deletionsgcc/ada/sem_util.adb
Loading
Please register or sign in to comment