9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 1995 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 /*
27 * Included files
28 */
29 #include <mk/defs.h>
30 #include <mksh/misc.h> /* getmem() */
31
32 /*
33 * This file deals with "Dependency Variables".
34 * The "-V var" command line option is used to indicate
35 * that var is a dependency variable. Used in conjunction with
36 * the -P option the user is asking if the named variables affect
37 * the dependencies of the given target.
38 */
39
40 struct _Depvar {
41 Name name; /* Name of variable */
42 struct _Depvar *next; /* Linked list */
43 Boolean cmdline; /* Macro defined on the cmdline? */
44 };
45
46 typedef struct _Depvar *Depvar;
47
48 static Depvar depvar_list;
81 Depvar dv;
82
83 for (dv = depvar_list; dv != NULL; dv = dv->next) {
84 if (name == dv->name) {
85 variant_deps = true;
86 break;
87 }
88 }
89 }
90
91
92 /*
93 * Print the results. If any of the Dependency Variables
94 * affected the dependencies then the dependencies potentially
95 * differ because of these variables.
96 */
97 void
98 depvar_print_results(void)
99 {
100 if (variant_deps) {
101 printf(catgets(catd, 1, 234, "differ\n"));
102 } else {
103 printf(catgets(catd, 1, 235, "same\n"));
104 }
105 }
106
|
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 1995 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 /*
27 * Included files
28 */
29 #include <libintl.h>
30
31 #include <mk/defs.h>
32 #include <mksh/misc.h> /* getmem() */
33
34 /*
35 * This file deals with "Dependency Variables".
36 * The "-V var" command line option is used to indicate
37 * that var is a dependency variable. Used in conjunction with
38 * the -P option the user is asking if the named variables affect
39 * the dependencies of the given target.
40 */
41
42 struct _Depvar {
43 Name name; /* Name of variable */
44 struct _Depvar *next; /* Linked list */
45 Boolean cmdline; /* Macro defined on the cmdline? */
46 };
47
48 typedef struct _Depvar *Depvar;
49
50 static Depvar depvar_list;
83 Depvar dv;
84
85 for (dv = depvar_list; dv != NULL; dv = dv->next) {
86 if (name == dv->name) {
87 variant_deps = true;
88 break;
89 }
90 }
91 }
92
93
94 /*
95 * Print the results. If any of the Dependency Variables
96 * affected the dependencies then the dependencies potentially
97 * differ because of these variables.
98 */
99 void
100 depvar_print_results(void)
101 {
102 if (variant_deps) {
103 printf(gettext("differ\n"));
104 } else {
105 printf(gettext("same\n"));
106 }
107 }
108
|