aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
authorArturo Espinosa Aldama <arturo@nuclecu.unam.mx>1998-04-15 10:40:24 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-15 10:40:24 +0800
commit0e5cfe78a5161e1c98e69f4670552e0d381b3d30 (patch)
tree058ef3f23121fbd5c87361a951c02b611c384529 /calendar/cal-util
parent3161696e57f03b5ebc859907725f6836f4220667 (diff)
downloadgsoc2013-evolution-0e5cfe78a5161e1c98e69f4670552e0d381b3d30.tar
gsoc2013-evolution-0e5cfe78a5161e1c98e69f4670552e0d381b3d30.tar.gz
gsoc2013-evolution-0e5cfe78a5161e1c98e69f4670552e0d381b3d30.tar.bz2
gsoc2013-evolution-0e5cfe78a5161e1c98e69f4670552e0d381b3d30.tar.lz
gsoc2013-evolution-0e5cfe78a5161e1c98e69f4670552e0d381b3d30.tar.xz
gsoc2013-evolution-0e5cfe78a5161e1c98e69f4670552e0d381b3d30.tar.zst
gsoc2013-evolution-0e5cfe78a5161e1c98e69f4670552e0d381b3d30.zip
New widget for the year view. added required compilation of the new files.
1998-04-14 Arturo Espinosa Aldama <arturo@nuclecu.unam.mx> * gncal-year-view.[hc]: New widget for the year view. * Makefile.am: added required compilation of the new files. svn path=/trunk/; revision=134
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/calobj.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c
index 5d997dec5d..237017a6f9 100644
--- a/calendar/cal-util/calobj.c
+++ b/calendar/cal-util/calobj.c
@@ -134,7 +134,7 @@ static void
ignore_space(char **str)
{
while (**str && isspace (**str))
- *str++;
+ str++;
}
static void
@@ -182,12 +182,11 @@ weekdaylist (iCalObject *o, char **str)
static void
ocurrencelist (iCalObject *o, char **str)
{
- char *p, *q;
- int value = 0;
+ char *p;
ignore_space (str);
p = *str;
- if (!isdigit (*str))
+ if (!isdigit (*p))
return;
if (!(*p >= '1' && *p <= '5'))
@@ -218,11 +217,11 @@ daynumber (iCalObject *o, char **str)
while (**str && isdigit (**str)){
val = val * 10 + (**str - '0');
- *str++;
+ str++;
}
if (**str == '+')
- *str++;
+ str++;
if (**str == '-')
val *= -1;
@@ -314,7 +313,6 @@ enddate (iCalObject *o, char **str)
static int
load_recurrence (iCalObject *o, char *str)
{
- char c;
enum RecurType type;
int interval = 0;
@@ -374,6 +372,9 @@ load_recurrence (iCalObject *o, char *str)
case RECUR_YEARLY_BY_DAY:
load_recur_yearly_day (o, &str);
break;
+ default:
+ g_warning ("Unimplemented recurrence type %d", (int) type);
+ break;
}
duration (o, &str);
enddate (o, &str);
@@ -393,7 +394,6 @@ ical_object_create_from_vobject (VObject *o, const char *object_name)
iCalObject *ical;
VObject *vo;
VObjectIterator i;
- int syntax_error;
ical = g_new0 (iCalObject, 1);
@@ -515,12 +515,10 @@ ical_object_create_from_vobject (VObject *o, const char *object_name)
/* FIXME: rrule */
if (has (o, VCRRuleProp))
- syntax_error = load_recurrence (ical, str_val (vo)) == 0;
-
- if (syntax_error){
- ical_object_destroy (ical);
- return NULL;
- }
+ if (!load_recurrence (ical, str_val (vo))) {
+ ical_object_destroy (ical);
+ return NULL;
+ }
return ical;
}