Subversion Repositories planix.SVN

Rev

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

Rev 109 Rev 113
Line 460... Line 460...
460
			break;
460
			break;
461
#endif
461
#endif
462
		}
462
		}
463
		if (cp + strlen(dp = vpastwh(linebuf)) >= &genbuf[LBSIZE - 2])
463
		if (cp + strlen(dp = vpastwh(linebuf)) >= &genbuf[LBSIZE - 2])
464
			error("Line too long|Result line after shift would be too long");
464
			error("Line too long|Result line after shift would be too long");
465
		CP(cp, dp);
465
		strcpy(cp, dp);
466
		strcLIN(genbuf);
466
		strcLIN(genbuf);
467
		putmark(addr);
467
		putmark(addr);
468
	}
468
	}
469
	killed();
469
	killed();
470
}
470
}
Line 516... Line 516...
516
	clrstats();
516
	clrstats();
517
 
517
 
518
	/*
518
	/*
519
	 * Loop once for each file in tags "path".
519
	 * Loop once for each file in tags "path".
520
	 */
520
	 */
521
	CP(tagfbuf, svalue(TAGS));
521
	strcpy(tagfbuf, svalue(TAGS));
522
	fne = tagfbuf - 1;
522
	fne = tagfbuf - 1;
523
	while (fne) {
523
	while (fne) {
524
		fn = ++fne;
524
		fn = ++fne;
525
		while (*fne && *fne != ' ')
525
		while (*fne && *fne != ' ')
526
			fne++;
526
			fne++;
Line 1254... Line 1254...
1254
	if (msnext == 0)	/* first time */
1254
	if (msnext == 0)	/* first time */
1255
		msnext = mapspace;
1255
		msnext = mapspace;
1256
	/* Check is a bit conservative, we charge for dname even if reusing src */
1256
	/* Check is a bit conservative, we charge for dname even if reusing src */
1257
	if (msnext - mapspace + strlen(dest) + strlen(src) + strlen(dname) + 3 > MAXCHARMACS)
1257
	if (msnext - mapspace + strlen(dest) + strlen(src) + strlen(dname) + 3 > MAXCHARMACS)
1258
		error("Too much macro text");
1258
		error("Too much macro text");
1259
	CP(msnext, src);
1259
	strcpy(msnext, src);
1260
	mp[slot].cap = msnext;
1260
	mp[slot].cap = msnext;
1261
	msnext += strlen(src) + 1;	/* plus 1 for null on the end */
1261
	msnext += strlen(src) + 1;	/* plus 1 for null on the end */
1262
	CP(msnext, dest);
1262
	strcpy(msnext, dest);
1263
	mp[slot].mapto = msnext;
1263
	mp[slot].mapto = msnext;
1264
	msnext += strlen(dest) + 1;
1264
	msnext += strlen(dest) + 1;
1265
	if (dname) {
1265
	if (dname) {
1266
		CP(msnext, dname);
1266
		strcpy(msnext, dname);
1267
		mp[slot].descr = msnext;
1267
		mp[slot].descr = msnext;
1268
		msnext += strlen(dname) + 1;
1268
		msnext += strlen(dname) + 1;
1269
	} else {
1269
	} else {
1270
		/* default descr to string user enters */
1270
		/* default descr to string user enters */
1271
		mp[slot].descr = src;
1271
		mp[slot].descr = src;