]> git.sur5r.net Git - glabels/blobdiff - glabels2/src/bc-iec16022.c
2009-09-17 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / src / bc-iec16022.c
index 8fb87fc4a987c4fce14adafaa3648b86f11b3516..3ccdc04351c45edd11c672ebcc9e6ea9565eee19 100644 (file)
@@ -1,45 +1,42 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
 /*
- *  (GLABELS) Label and Business Card Creation program for GNOME
- *
- *  bc-iec16022.c:  front-end to iec16022-library module
+ *  bc-iec16022.c
+ *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
  *
- *  Copyright (C) 2001-2006  Jim Evins <evins@snaught.com>.
+ *  This file is part of gLabels.
  *
- *  This program is free software; you can redistribute it and/or modify
+ *  gLabels is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
- *  This program is distributed in the hope that it will be useful,
+ *  gLabels is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <config.h>
 
 #include "bc-iec16022.h"
 
+#include <glib.h>
 #include <ctype.h>
 #include <string.h>
 #include <stdlib.h>
-#include <glib/gmessages.h>
-
-#include "iec16022ecc200.h"
+#include <iec16022ecc200.h>
 
 #include "debug.h"
 
+
 /*========================================================*/
 /* Private macros and constants.                          */
 /*========================================================*/
 #define MIN_PIXEL_SIZE 1.0
 
+
 /*===========================================*/
 /* Local function prototypes                 */
 /*===========================================*/
@@ -49,6 +46,7 @@ static glBarcode *render_iec16022 (const gchar *grid,
                                    gdouble      w,
                                    gdouble      h);
 
+
 /*****************************************************************************/
 /* Generate intermediate representation of barcode.                          */
 /*****************************************************************************/
@@ -84,6 +82,7 @@ gl_barcode_iec16022_new (const gchar    *id,
         return gbc;
 }
 
+
 /*--------------------------------------------------------------------------
  * PRIVATE.  Render to glBarcode intermediate representation of barcode.
  *--------------------------------------------------------------------------*/
@@ -142,10 +141,16 @@ render_iec16022 (const gchar *grid,
         gbc->height = i_height * pixel_size;
         gbc->width  = i_width  * pixel_size;
 
-#if 0
-        g_print ("w=%f, h=%f\n", gbc->width, gbc->height);
-#endif
-
         return gbc;
 }
 
+
+
+/*
+ * Local Variables:       -- emacs
+ * mode: C                -- emacs
+ * c-basic-offset: 8      -- emacs
+ * tab-width: 8           -- emacs
+ * indent-tabs-mode: nil  -- emacs
+ * End:                   -- emacs
+ */