aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-arg.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@src.gnome.org>2005-01-11 08:00:07 +0800
committerJP Rosevear <jpr@src.gnome.org>2005-01-11 08:00:07 +0800
commitfba011bf008443ee5130f1426aa65e11245cd84a (patch)
tree91793af1cfb21ec9bfea5579abb65ea6f73223b2 /camel/camel-arg.c
parentc60c4bf7c4590b850d589d79ac44d057323a429f (diff)
downloadgsoc2013-evolution-fba011bf008443ee5130f1426aa65e11245cd84a.tar.gz
gsoc2013-evolution-fba011bf008443ee5130f1426aa65e11245cd84a.tar.zst
gsoc2013-evolution-fba011bf008443ee5130f1426aa65e11245cd84a.zip
Kill dead files
svn path=/trunk/; revision=28342
Diffstat (limited to 'camel/camel-arg.c')
-rw-r--r--camel/camel-arg.c130
1 files changed, 0 insertions, 130 deletions
diff --git a/camel/camel-arg.c b/camel/camel-arg.c
deleted file mode 100644
index bcd79bab59..0000000000
--- a/camel/camel-arg.c
+++ /dev/null
@@ -1,130 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- *
- *
- * Author:
- * Michael Zucchi <notzed@ximian.com>
- *
- * Copyright 2002 Ximian, Inc. (www.ximian.com)
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public
- * License as published by the Free Software Foundation.
- *
- * This program 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
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <stdio.h>
-#include "camel-arg.h"
-
-int camel_argv_build(CamelArgV *tv)
-{
- register guint32 tag;
- register int i;
- register CamelArg *a;
- int more = TRUE;
-
- for (i=0;i<CAMEL_ARGV_MAX;i++) {
- a = &tv->argv[i];
-
- if ( (tag = va_arg(tv->ap, guint32)) == 0) {
- more = FALSE;
- break;
- }
-
- a->tag = tag;
-
- switch((tag & CAMEL_ARG_TYPE)) {
- case CAMEL_ARG_OBJ:
- a->ca_object = va_arg(tv->ap, void *);
- break;
- case CAMEL_ARG_INT:
- a->ca_int = va_arg(tv->ap, int);
- break;
- case CAMEL_ARG_DBL:
- a->ca_double = va_arg(tv->ap, double);
- break;
- case CAMEL_ARG_STR:
- a->ca_str = va_arg(tv->ap, char *);
- break;
- case CAMEL_ARG_PTR:
- a->ca_ptr = va_arg(tv->ap, void *);
- break;
- case CAMEL_ARG_BOO:
- a->ca_int = va_arg(tv->ap, int) != 0;
- break;
- default:
- printf("Error, unknown type, truncating result\n");
- more = FALSE;
- goto fail;
- }
-
- }
-fail:
- tv->argc = i;
-
- return more;
-}
-
-int camel_arggetv_build(CamelArgGetV *tv)
-{
- register guint32 tag;
- register int i;
- register CamelArgGet *a;
- int more = TRUE;
-
- for (i=0;i<CAMEL_ARGV_MAX;i++) {
- a = &tv->argv[i];
-
- if ( (tag = va_arg(tv->ap, guint32)) == 0) {
- more = FALSE;
- break;
- }
-
- a->tag = tag;
-
- switch((tag & CAMEL_ARG_TYPE)) {
- case CAMEL_ARG_OBJ:
- a->ca_object = va_arg(tv->ap, void **);
- *a->ca_object = NULL;
- break;
- case CAMEL_ARG_INT:
- case CAMEL_ARG_BOO:
- a->ca_int = va_arg(tv->ap, int *);
- *a->ca_int = 0;
- break;
- case CAMEL_ARG_DBL:
- a->ca_double = va_arg(tv->ap, double *);
- *a->ca_double = 0.0;
- break;
- case CAMEL_ARG_STR:
- a->ca_str = va_arg(tv->ap, char **);
- *a->ca_str = NULL;
- break;
- case CAMEL_ARG_PTR:
- a->ca_ptr = va_arg(tv->ap, void **);
- *a->ca_ptr = NULL;
- break;
- default:
- printf("Error, unknown type, truncating result\n");
- more = FALSE;
- goto fail;
- }
-
- }
-fail:
- tv->argc = i;
-
- return more;
-}
-