remake  4.3+dbg-1.5
Data Structures | Macros | Functions
commands.h File Reference
#include "makeint.h"
#include "filedef.h"
#include "trace.h"

Go to the source code of this file.

Data Structures

struct  commands
 

Macros

#define COMMANDS_RECURSE   1 /* Recurses: + or $(MAKE). */
 
#define COMMANDS_SILENT   2 /* Silent: @. */
 
#define COMMANDS_NOERROR   4 /* No errors: -. */
 

Functions

RETSIGTYPE fatal_error_signal (int sig)
 
void execute_file_commands (file_t *p_file, target_stack_node_t *p_call_stack)
 
void print_commands (file_t *p_target, commands_t *p_cmds, bool b_expand)
 
void delete_child_targets (struct child *child)
 
void chop_commands (struct commands *cmds)
 
void set_file_variables (struct file *file)
 

Macro Definition Documentation

◆ COMMANDS_NOERROR

#define COMMANDS_NOERROR   4 /* No errors: -. */

◆ COMMANDS_RECURSE

#define COMMANDS_RECURSE   1 /* Recurses: + or $(MAKE). */

◆ COMMANDS_SILENT

#define COMMANDS_SILENT   2 /* Silent: @. */

Function Documentation

◆ chop_commands()

void chop_commands ( struct commands cmds)

◆ delete_child_targets()

void delete_child_targets ( struct child child)

◆ execute_file_commands()

void execute_file_commands ( file_t p_file,
target_stack_node_t p_call_stack 
)

Execute the commands to remake P_FILE. If they are currently executing, return or have already finished executing, just return. Otherwise, fork off a child process to run the first command line in the sequence.

Parameters
p_filepointer to file to remake.
p_call_stackpointer to current target call stack. This is passed down for information reporting.

◆ fatal_error_signal()

RETSIGTYPE fatal_error_signal ( int  sig)

◆ print_commands()

void print_commands ( file_t p_target,
commands_t p_cmds,
bool  b_expand 
)
  • Print out the commands.
  • Parameters
    p_cmdslocation of commands to print out.
  • Parameters
    p_targetused to set automatic variables if it is non-null.
  • Parameters
    b_expandif true, expand the commands to remove MAKE variables.

◆ set_file_variables()

void set_file_variables ( struct file file)

Referenced by dbg_cmd_info(), and dbg_cmd_target().