The R Project SVN R

Rev

Rev 58359 | Rev 65106 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 58359 Rev 62537
Line 82... Line 82...
82
      if (tre_macros[i].c == *regex)
82
      if (tre_macros[i].c == *regex)
83
	{
83
	{
84
	  unsigned int j;
84
	  unsigned int j;
85
	  DPRINT(("Expanding macro '%c' => '%s'\n",
85
	  DPRINT(("Expanding macro '%c' => '%s'\n",
86
		  tre_macros[i].c, tre_macros[i].expansion));
86
		  tre_macros[i].c, tre_macros[i].expansion));
87
	  for (j = 0; tre_macros[i].expansion[j] && j < buf_len; j++)
87
	  for (j = 0; tre_macros[i].expansion[j] && j < buf_len - 1; j++)
88
	    buf[j] = tre_macros[i].expansion[j];
88
	    buf[j] = tre_macros[i].expansion[j];
89
	  buf[j] = 0;
89
	  buf[j] = 0;
90
	  break;
90
	  break;
91
	}
91
	}
92
    }
92
    }