Repository navigation
Commit bf9ba63
committed
Fix #2798, reduce complexity of ES functions
Splits the startup script handling and control request handling into
their own separate .c files. This reduces the size of cfe_es_apps.c
considerably, making it more manageable.
The three cited routines CFE_ES_ProcessControlRequest,
CFE_ES_CleanupApps, CFE_ES_StartApplications are split into multiple
smaller functions. The cyclic complexity now ranks at 2, 5, and 7,
respectively. The highest complexity helper function is 13, with most
under 10.1 parent 3b0a90d commit bf9ba63
24 files changed
Lines changed: 1410 additions & 895 deletions
File tree
- cmake/target/inc
- modules
- config/fsw/src
- es
- fsw/src
- ut-coverage
- evs/fsw/src
- fs/fsw/src
- msg/fsw/src
- resourceid/fsw/src
- sbr/fsw/src
- sb/fsw/src
- ta/fsw/src
- tbl/fsw/src
- time/fsw/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments