Commit cc9be684 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Use constant expression to make factors easier to understand. Constify.

2000-09-27  Morten Welinder  <terra@diku.dk>

	* src/print-info.c: Use constant expression to make factors easier
 	to understand.  Constify.  Have the compiler check UNIT_LAST.
parent c774cbe8
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c: Use constant expression to make factors easier
to understand. Constify. Have the compiler check UNIT_LAST.
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c (load_formats): Fix from Chema. Don't forget
......
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c: Use constant expression to make factors easier
to understand. Constify. Have the compiler check UNIT_LAST.
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c (load_formats): Fix from Chema. Don't forget
......
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c: Use constant expression to make factors easier
to understand. Constify. Have the compiler check UNIT_LAST.
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c (load_formats): Fix from Chema. Don't forget
......
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c: Use constant expression to make factors easier
to understand. Constify. Have the compiler check UNIT_LAST.
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c (load_formats): Fix from Chema. Don't forget
......
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c: Use constant expression to make factors easier
to understand. Constify. Have the compiler check UNIT_LAST.
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c (load_formats): Fix from Chema. Don't forget
......
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c: Use constant expression to make factors easier
to understand. Constify. Have the compiler check UNIT_LAST.
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c (load_formats): Fix from Chema. Don't forget
......
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c: Use constant expression to make factors easier
to understand. Constify. Have the compiler check UNIT_LAST.
2000-09-27 Morten Welinder <terra@diku.dk>
* src/print-info.c (load_formats): Fix from Chema. Don't forget
......
......@@ -428,13 +428,13 @@ print_info_save (PrintInformation *pi)
}
static struct {
char *short_name;
char *full_name;
const char *short_name;
const char *full_name;
double factor;
} units [] = {
} units [UNIT_LAST + 1] = {
{ N_("pts"), N_("points"), 1.0 },
{ N_("mm"), N_("millimeter"), 2.8346457 },
{ N_("cm"), N_("centimeter"), 28.346457 },
{ N_("mm"), N_("millimeter"), 72.0 / 25.4 }, /* 1in = 25.4mm, exact */
{ N_("cm"), N_("centimeter"), 72.0 / 2.54 },
{ N_("In"), N_("inch"), 72.0 },
{ NULL, NULL, 0.0 }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment