Changeset 2753
- Timestamp:
 - Jan 23, 2015, 10:46:30 PM (11 years ago)
 - Location:
 - trunk/src/kmk
 - Files:
 - 
      
- 3 edited
 
- 
          
  commands.c (modified) (1 diff)
 - 
          
  commands.h (modified) (1 diff)
 - 
          
  remake.c (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/kmk/commands.c
r2664 r2753 633 633 634 634 635 #ifdef KMK 636 /* This is for saving memory in func_commands. */ 637 void 638 free_chopped_commands (struct commands *cmds) 639 { 640 if (cmds && cmds->command_lines != 0) 641 { 642 unsigned idx = cmds->ncommand_lines; 643 while (idx-- > 0) 644 free (cmds->command_lines[idx]); 645 free (cmds->command_lines); 646 free (cmds->lines_flags); 647 cmds->command_lines = NULL; 648 cmds->lines_flags = NULL; 649 } 650 } 651 652 653 #endif /* CONFIG_WITH_COMMANDS_FUNC */ 635 654 /* Execute the commands to remake FILE. If they are currently executing, 636 655 return or have already finished executing, just return. Otherwise,  - 
      
trunk/src/kmk/commands.h
r2594 r2753 57 57 void delete_child_targets (struct child *child); 58 58 void chop_commands (struct commands *cmds); 59 #ifdef KMK 60 void free_chopped_commands (struct commands *cmd); 61 #endif 59 62 #if defined(CONFIG_WITH_COMMANDS_FUNC) || defined (CONFIG_WITH_DOT_MUST_MAKE) 60 63 void set_file_variables (struct file *file, int called_early);  - 
      
trunk/src/kmk/remake.c
r2743 r2753 1329 1329 file->update_status = 0; 1330 1330 #endif 1331 1332 #ifdef KMK 1333 /* We're done with this command, so free the memory held by the chopped 1334 command lines. Saves heap for the compilers & linkers. */ 1335 if (file->cmds && file->cmds->command_lines) 1336 free_chopped_commands (file->cmds); 1337 #endif 1331 1338 } 1332 1339  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  