mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04:00
Add BIND 8 style GENERATE $$ => $.
This commit is contained in:
parent
4d833ef73b
commit
4ab40dad77
1 changed files with 8 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: master.c,v 1.76 2000/10/31 03:21:55 marka Exp $ */
|
||||
/* $Id: master.c,v 1.77 2000/11/02 05:18:33 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -459,6 +459,13 @@ genname(char *name, int it, char *buffer, size_t length) {
|
|||
while (*name != '\0') {
|
||||
if (*name == '$') {
|
||||
name++;
|
||||
if (*name == '$') {
|
||||
if (r.length == 0)
|
||||
return (ISC_R_NOSPACE);
|
||||
r.base[0] = *name++;
|
||||
isc_textregion_consume(&r, 1);
|
||||
continue;
|
||||
}
|
||||
strcpy(fmt, "%d");
|
||||
/* Get format specifier. */
|
||||
if (*name == '{' ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue