Changeset 2754 in kBuild for trunk/src/kmk/commands.c
- Timestamp:
- Jan 23, 2015 11:00:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/commands.c
r2753 r2754 633 633 634 634 635 #ifdef KMK635 #ifdef CONFIG_WITH_MEMORY_OPTIMIZATIONS 636 636 /* This is for saving memory in func_commands. */ 637 637 void 638 638 free_chopped_commands (struct commands *cmds) 639 639 { 640 if (cmds && cmds->command_lines != 0) 640 if ( cmds 641 && cmds->command_lines != 0 642 && cmds->refs == 0) 641 643 { 642 644 unsigned idx = cmds->ncommand_lines; … … 645 647 free (cmds->command_lines); 646 648 free (cmds->lines_flags); 647 cmds->command_lines = NULL; 648 cmds->lines_flags = NULL; 649 } 650 } 651 652 653 #endif /* CONFIG_WITH_COMMANDS_FUNC */ 649 cmds->command_lines = 0; 650 cmds->lines_flags = 0; 651 cmds->ncommand_lines = 0; 652 } 653 } 654 655 656 #endif /* CONFIG_WITH_MEMORY_OPTIMIZATIONS */ 654 657 /* Execute the commands to remake FILE. If they are currently executing, 655 658 return or have already finished executing, just return. Otherwise,
Note:
See TracChangeset
for help on using the changeset viewer.