]> git.sur5r.net Git - cc65/blobdiff - src/cc65/anonname.c
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / src / cc65 / anonname.c
index 499532f932025e6ad98f596ab28800a816aaef41..2c33b3f17c84d74668fbebdeb3936ddf0c76931d 100644 (file)
@@ -1,15 +1,15 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                               anonname.c                                 */
+/*                                anonname.c                                 */
 /*                                                                           */
-/*               Create names for anonymous variables/types                 */
+/*                Create names for anonymous variables/types                 */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2000      Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2000-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 #include <stdio.h>
 #include <string.h>
 
+/* common */
+#include "xsprintf.h"
+
 /* cc65 */
 #include "anonname.h"
+#include "ident.h"
 
 
 
 /*****************************************************************************/
-/*                                  Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
@@ -52,7 +56,7 @@ static const char AnonTag[] = "$anon";
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
@@ -63,7 +67,7 @@ char* AnonName (char* Buf, const char* Spec)
  */
 {
     static unsigned ACount = 0;
-    sprintf (Buf, "%s-%s-%04X", AnonTag, Spec, ++ACount);
+    xsprintf (Buf, IDENTSIZE, "%s-%s-%04X", AnonTag, Spec, ++ACount);
     return Buf;
 }