[BACK]Return to cond.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/cond.c between version 1.29 and 1.30

version 1.29, 2003/06/03 02:56:11 version 1.30, 2004/04/07 13:11:35
Line 163 
Line 163 
                                          * lines */                                           * lines */
   
 static const char *  static const char *
 find_cond(p)  find_cond(const char *p)
     const char *p;  
 {  {
     for (;;p++) {      for (;;p++) {
         if (strchr(" \t)&|$", *p) != NULL)          if (strchr(" \t)&|$", *p) != NULL)
Line 187 
Line 186 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static bool  static bool
 CondGetArg(linePtr, arg, func, parens)  CondGetArg(const char **linePtr, struct Name *arg, const char *func,
     const char          **linePtr;      bool parens) /* true if arg should be bounded by parens */
     struct Name         *arg;  
     const char          *func;  
     bool                parens; /* true if arg should be bounded by parens */  
 {  {
     const char          *cp;      const char          *cp;
   
Line 244 
Line 240 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static bool  static bool
 CondDoDefined(arg)  CondDoDefined(struct Name *arg)
     struct Name *arg;  
 {  {
     if (Var_Valuei(arg->s, arg->e) != NULL)      if (Var_Valuei(arg->s, arg->e) != NULL)
         return true;          return true;
Line 263 
Line 258 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static bool  static bool
 CondDoMake(arg)  CondDoMake(struct Name *arg)
     struct Name *arg;  
 {  {
     LstNode ln;      LstNode ln;
   
Line 287 
Line 281 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static bool  static bool
 CondDoExists(arg)  CondDoExists(struct Name *arg)
     struct Name *arg;  
 {  {
     bool result;      bool result;
     char    *path;      char    *path;
Line 313 
Line 306 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static bool  static bool
 CondDoTarget(arg)  CondDoTarget(struct Name *arg)
     struct Name *arg;  
 {  {
     GNode   *gn;      GNode   *gn;
   
Line 343 
Line 335 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static bool  static bool
 CondCvtArg(str, value)  CondCvtArg(const char *str, double *value)
     const char          *str;  
     double              *value;  
 {  {
     if (*str == '0' && str[1] == 'x') {      if (*str == '0' && str[1] == 'x') {
         long i;          long i;
Line 372 
Line 362 
   
   
 static Token  static Token
 CondHandleVarSpec(doEval)  CondHandleVarSpec(bool doEval)
     bool doEval;  
 {  {
     Token       t;      Token       t;
     char        *lhs;      char        *lhs;
Line 591 
Line 580 
     {NULL, 0, NULL}      {NULL, 0, NULL}
 };  };
 static Token  static Token
 CondHandleDefault(doEval)  CondHandleDefault(bool doEval)
     bool        doEval;  
 {  {
     bool        t;      bool        t;
     bool        (*evalProc)(struct Name *);      bool        (*evalProc)(struct Name *);
Line 682 
Line 670 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static Token  static Token
 CondToken(doEval)  CondToken(bool doEval)
     bool doEval;  
 {  {
   
     if (condPushBack != None) {      if (condPushBack != None) {
Line 743 
Line 730 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static Token  static Token
 CondT(doEval)  CondT(bool doEval)
     bool doEval;  
 {  {
     Token   t;      Token   t;
   
Line 784 
Line 770 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static Token  static Token
 CondF(doEval)  CondF(bool doEval)
     bool doEval;  
 {  {
     Token   l, o;      Token   l, o;
   
Line 824 
Line 809 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static Token  static Token
 CondE(doEval)  CondE(bool doEval)
     bool doEval;  
 {  {
     Token   l, o;      Token   l, o;
   
Line 1099 
Line 1083 
 }  }
   
 void  void
 Cond_End()  Cond_End(void)
 {  {
     int i;      int i;
   

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30