VirtualBox

source: kBuild/trunk/src/kmk/commands.h@ 3387

Last change on this file since 3387 was 3140, checked in by bird, 6 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1/* Definition of data structures describing shell commands for GNU Make.
2Copyright (C) 1988-2016 Free Software Foundation, Inc.
3This file is part of GNU Make.
4
5GNU Make is free software; you can redistribute it and/or modify it under the
6terms of the GNU General Public License as published by the Free Software
7Foundation; either version 3 of the License, or (at your option) any later
8version.
9
10GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
11WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License along with
15this program. If not, see <http://www.gnu.org/licenses/>. */
16
17/* Structure that gives the commands to make a file
18 and information about where these commands came from. */
19
20struct commands
21 {
22 floc fileinfo; /* Where commands were defined. */
23 char *commands; /* Commands text. */
24 char **command_lines; /* Commands chopped up into lines. */
25#ifdef CONFIG_WITH_COMMANDS_FUNC
26 unsigned short *lines_flags;/* One set of flag bits for each line. */
27#else
28 unsigned char *lines_flags; /* One set of flag bits for each line. */
29#endif
30 unsigned short ncommand_lines;/* Number of command lines. */
31 char recipe_prefix; /* Recipe prefix for this command set. */
32 unsigned int any_recurse:1; /* Nonzero if any 'lines_flags' elt has */
33 /* the COMMANDS_RECURSE bit set. */
34#ifdef CONFIG_WITH_MEMORY_OPTIMIZATIONS
35 int refs; /* References. */
36#endif
37 };
38
39/* Bits in 'lines_flags'. */
40#define COMMANDS_RECURSE 1 /* Recurses: + or $(MAKE). */
41#define COMMANDS_SILENT 2 /* Silent: @. */
42#define COMMANDS_NOERROR 4 /* No errors: -. */
43#ifdef CONFIG_WITH_EXTENDED_NOTPARALLEL
44# define COMMANDS_NOTPARALLEL 32 /* kmk: The commands must be executed alone. */
45# define COMMANDS_NO_COMMANDS 64 /* kmk: No commands. */
46#endif
47#ifdef CONFIG_WITH_KMK_BUILTIN
48# define COMMANDS_KMK_BUILTIN 128 /* kmk: kmk builtin command. */
49#endif
50#ifdef CONFIG_WITH_COMMANDS_FUNC
51# define COMMAND_GETTER_SKIP_IT 256 /* $(commands target) skips this: % */
52#endif
53
54RETSIGTYPE fatal_error_signal (int sig);
55void execute_file_commands (struct file *file);
56void print_commands (const struct commands *cmds);
57void delete_child_targets (struct child *child);
58void chop_commands (struct commands *cmds);
59#ifdef CONFIG_WITH_MEMORY_OPTIMIZATIONS
60void free_chopped_commands (struct commands *cmd);
61#endif
62#if defined(CONFIG_WITH_COMMANDS_FUNC) || defined (CONFIG_WITH_DOT_MUST_MAKE)
63void set_file_variables (struct file *file, int called_early);
64#else
65void set_file_variables (struct file *file);
66#endif
67#ifdef CONFIG_WITH_LAZY_DEPS_VARS
68struct dep *create_uniqute_deps_chain (struct dep *deps);
69#endif
70
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use