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

#include <string.h> for strlen.

2001-06-21  Morten Welinder  <terra@diku.dk>

	* src/summary.c: #include <string.h> for strlen.

	* src/search.c (calculate_replacement): Warning killer.

	* src/regression.c: #include <stdlib.h> for abs.

	* src/plugin-loader-module.c: #include <string.h> for strcmp.

	* src/formats.c (cell_format_fraction): Avoid accidental use of
 	trigraph.

	* src/complete.c: #include <stdlib.h> for abort.


2001-06-21  Morten Welinder  <terra@diku.dk>

	* fn-stat.c: #include <string.h> for memset.

	* fn-lookup.c: #include <stdlib.h> for abs.

	* fn-information.c (translate_table): Fix accidental use of
 	trigraph.
	#include <stdlib.h> for abs and <string.h> for strcmp.

	* fn-date.c: #include <string.h> for strcmp and <stdlib.h> for
 	abort.
parent bce5431d
2001-06-21 Morten Welinder <terra@diku.dk>
* src/summary.c: #include <string.h> for strlen.
* src/search.c (calculate_replacement): Warning killer.
* src/regression.c: #include <stdlib.h> for abs.
* src/plugin-loader-module.c: #include <string.h> for strcmp.
* src/formats.c (cell_format_fraction): Avoid accidental use of
trigraph.
* src/complete.c: #include <stdlib.h> for abort.
2001-06-21 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (border_mutate): New, toggles
......
......@@ -33,6 +33,7 @@ Morten:
* Fix PV.
* Applied some much-needed TLC to fn-financial.c and fn-eng.c.
* Speed-up Gnumeric function calls.
* Killed a zillion problems pointed out by gcc 3.0 warnings.
Zbigniew:
* More work on plugin system.
......
2001-06-21 Morten Welinder <terra@diku.dk>
* src/summary.c: #include <string.h> for strlen.
* src/search.c (calculate_replacement): Warning killer.
* src/regression.c: #include <stdlib.h> for abs.
* src/plugin-loader-module.c: #include <string.h> for strcmp.
* src/formats.c (cell_format_fraction): Avoid accidental use of
trigraph.
* src/complete.c: #include <stdlib.h> for abort.
2001-06-21 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (border_mutate): New, toggles
......
2001-06-21 Morten Welinder <terra@diku.dk>
* src/summary.c: #include <string.h> for strlen.
* src/search.c (calculate_replacement): Warning killer.
* src/regression.c: #include <stdlib.h> for abs.
* src/plugin-loader-module.c: #include <string.h> for strcmp.
* src/formats.c (cell_format_fraction): Avoid accidental use of
trigraph.
* src/complete.c: #include <stdlib.h> for abort.
2001-06-21 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (border_mutate): New, toggles
......
2001-06-21 Morten Welinder <terra@diku.dk>
* src/summary.c: #include <string.h> for strlen.
* src/search.c (calculate_replacement): Warning killer.
* src/regression.c: #include <stdlib.h> for abs.
* src/plugin-loader-module.c: #include <string.h> for strcmp.
* src/formats.c (cell_format_fraction): Avoid accidental use of
trigraph.
* src/complete.c: #include <stdlib.h> for abort.
2001-06-21 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (border_mutate): New, toggles
......
2001-06-21 Morten Welinder <terra@diku.dk>
* src/summary.c: #include <string.h> for strlen.
* src/search.c (calculate_replacement): Warning killer.
* src/regression.c: #include <stdlib.h> for abs.
* src/plugin-loader-module.c: #include <string.h> for strcmp.
* src/formats.c (cell_format_fraction): Avoid accidental use of
trigraph.
* src/complete.c: #include <stdlib.h> for abort.
2001-06-21 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (border_mutate): New, toggles
......
......@@ -14,6 +14,8 @@
#include "auto-format.h"
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define DAY_SECONDS (3600*24)
......
......@@ -22,6 +22,8 @@
#include <sys/utsname.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
enum Value_Class {
VALUE_CLASS_NUMBER = 1,
......@@ -105,7 +107,7 @@ static translate_t translate_table[] = {
{ "0.00%", "P2" },
{ "0.00e+00", "S2" },
{ "# ?/?", "G" },
{ "# ??/??", "G" },
{ "# ?" "?/?" "?", "G" }, /* Don't accidentally use trigraphs here. */
{ "m/d/yy", "D4" },
{ "m/d/yy h:mm", "D4" },
{ "mm/dd/yy", "D4" },
......
......@@ -16,6 +16,7 @@
#include "sheet.h"
#include <string.h>
#include <stdlib.h>
/* Useful routines for multiple functions */
static gboolean
......
......@@ -19,6 +19,7 @@
#include <math.h>
#include <stdlib.h>
#include <string.h>
static guint
float_hash (const gnum_float *d)
......
......@@ -24,6 +24,7 @@
#include <gal/util/e-util.h>
#include <stdio.h>
#include <stdlib.h>
#define PARENT_TYPE (gtk_object_get_type ())
#define ACC(o) (COMPLETE_CLASS (GTK_OBJECT (o)->klass))
......
......@@ -121,7 +121,7 @@ cell_format_percent [] = {
static char const * const
cell_format_fraction [] = {
"# ?/?",
"# ??/??",
"# ?" "?/?" "?", /* Don't accidentally use trigraph. */
NULL
};
......
2001-06-21 Morten Welinder <terra@diku.dk>
* fn-stat.c: #include <string.h> for memset.
* fn-lookup.c: #include <stdlib.h> for abs.
* fn-information.c (translate_table): Fix accidental use of
trigraph.
#include <stdlib.h> for abs and <string.h> for strcmp.
* fn-date.c: #include <string.h> for strcmp and <stdlib.h> for
abort.
2001-06-15 Jody Goldberg <jgoldberg@home.com>
* fn-database.c (criteria_test_*) : protect against NULL.
......
......@@ -14,6 +14,8 @@
#include "auto-format.h"
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define DAY_SECONDS (3600*24)
......
......@@ -22,6 +22,8 @@
#include <sys/utsname.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
enum Value_Class {
VALUE_CLASS_NUMBER = 1,
......@@ -105,7 +107,7 @@ static translate_t translate_table[] = {
{ "0.00%", "P2" },
{ "0.00e+00", "S2" },
{ "# ?/?", "G" },
{ "# ??/??", "G" },
{ "# ?" "?/?" "?", "G" }, /* Don't accidentally use trigraphs here. */
{ "m/d/yy", "D4" },
{ "m/d/yy h:mm", "D4" },
{ "mm/dd/yy", "D4" },
......
......@@ -16,6 +16,7 @@
#include "sheet.h"
#include <string.h>
#include <stdlib.h>
/* Useful routines for multiple functions */
static gboolean
......
......@@ -19,6 +19,7 @@
#include <math.h>
#include <stdlib.h>
#include <string.h>
static guint
float_hash (const gnum_float *d)
......
......@@ -18,6 +18,7 @@
#include "plugin-service.h"
#include "plugin-loader.h"
#include "plugin-loader-module.h"
#include <string.h>
struct _GnumericPluginLoaderModule {
GnumericPluginLoader loader;
......
......@@ -10,6 +10,7 @@
#include <glib.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "regression.h"
#define ALLOC_MATRIX(var,dim1,dim2) \
......
......@@ -286,8 +286,10 @@ calculate_replacement (SearchReplace *sr, const char *src, const regmatch_t *pm)
if (is_upper) {
unsigned char *p = (unsigned char *)res;
while (*p)
*p++ = toupper (*p);
while (*p) {
*p = toupper (*p);
p++;
}
} else if (is_capital) {
gboolean up = TRUE;
unsigned char *p = (unsigned char *)res;
......
......@@ -6,13 +6,14 @@
*
* (C) 1999 Michael Meeks
*/
#include <stdio.h>
#include <time.h>
#include <config.h>
#include <ctype.h>
#include <glib.h>
#include <stdio.h>
#include <time.h>
#include "summary.h"
#include "gutils.h"
#include <ctype.h>
#include <string.h>
/*
* NOTE:
......@@ -134,8 +135,8 @@ summary_item_as_text (const SummaryItem *sit)
case SUMMARY_TIME:
time = (time_t)sit->v.time.tv_sec;
ch_time = ctime(&time);
ch_time[strlen(ch_time)-1] = '\0';
ch_time = ctime (&time);
ch_time[strlen (ch_time) - 1] = '\0';
return g_strdup (ch_time);
default:
......
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