projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce8b1dd
)
Make comments "deactivate" %define
author
marc
<devnull@localhost>
Tue, 1 Jul 1997 16:29:30 +0000
(16:29 +0000)
committer
marc
<devnull@localhost>
Tue, 1 Jul 1997 16:29:30 +0000
(16:29 +0000)
CVS patchset: 1725
CVS date: 1997/07/01 16:29:30
build/macro.c
patch
|
blob
|
history
diff --git
a/build/macro.c
b/build/macro.c
index
cca721b
..
19a4fd8
100644
(file)
--- a/
build/macro.c
+++ b/
build/macro.c
@@
-44,12
+44,21
@@
int expandMacros(char *buf)
{
char bufA[1024];
char *copyTo, *copyFrom;
- char *name, *rest;
+ char *name, *rest
, *first
;
struct macroEntry *p;
if (! buf) {
return 0;
}
+
+ /* Check if commented out */
+ first = buf;
+ while (*first && isspace(*first)) {
+ first++;
+ }
+ if (*first == '#') {
+ return 0;
+ }
copyFrom = buf;
copyTo = bufA;