~ubuntu-branches/ubuntu/wily/evolution-data-server/wily

« back to all changes in this revision

Viewing changes to libedataserver/e-sexp.c

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2015-07-20 13:34:59 UTC
  • mfrom: (1.1.126) (1.2.48 sid)
  • Revision ID: package-import@ubuntu.com-20150720133459-g6y46hnu5ewtoz08
Tags: 3.16.4-0ubuntu2
debian/patches/0001-Bug-752373-Monthly-events-do-not-recur-correctly.patch:
Cherry-pick patch from upstream to fix events not recurring correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
 
1
/* A simple, extensible s-exp evaluation engine
 
2
 *
2
3
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
3
4
 *
4
 
 * A simple, extensible s-exp evaluation engine.
5
 
 *
6
 
 * Author :
7
 
 *  Michael Zucchi <notzed@ximian.com>
8
 
 *
9
 
 * This library is free software you can redistribute it and/or modify it
 
5
 * This library is free software: you can redistribute it and/or modify it
10
6
 * under the terms of the GNU Lesser General Public License as published by
11
7
 * the Free Software Foundation.
12
8
 *
13
9
 * This library is distributed in the hope that it will be useful, but
14
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
 
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16
 
 *for more details.
 
11
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 
12
 * for more details.
17
13
 *
18
14
 * You should have received a copy of the GNU Lesser General Public License
19
 
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 
15
 * along with this library. If not, see <http://www.gnu.org/licenses/>.
 
16
 *
 
17
 * Authors: Michael Zucchi <notzed@ximian.com>
20
18
 */
21
19
 
22
20
/*
216
214
        case ESEXP_RES_UNDEFINED:
217
215
                break;
218
216
        default:
219
 
                g_assert_not_reached ();
 
217
                g_return_if_reached ();
220
218
        }
221
219
        e_memchunk_free (f->result_chunks, t);
222
220
}
1235
1233
        terms = g_malloc (size * sizeof (*terms));
1236
1234
        l = list;
1237
1235
        for (i = size - 1; i >= 0; i--) {
1238
 
                g_assert (l);
1239
 
                g_assert (l->data);
 
1236
                g_return_val_if_fail (l, NULL);
 
1237
                g_return_val_if_fail (l->data, NULL);
1240
1238
                terms[i] = l->data;
1241
1239
                l = g_slist_next (l);
1242
1240
        }
1315
1313
 
1316
1314
                str = g_scanner_cur_value (gs).v_identifier;
1317
1315
 
1318
 
                g_assert (str != NULL);
 
1316
                g_return_val_if_fail (str != NULL, NULL);
1319
1317
                if (!(strlen (str) == 1 && (str[0] == 't' || str[0] == 'f'))) {
1320
1318
                        e_sexp_fatal_error (
1321
1319
                                f, "Invalid format for a boolean value");