diff options
Diffstat (limited to 'src/libicalvcal/vobject.c')
-rw-r--r-- | src/libicalvcal/vobject.c | 45 |
1 files changed, 2 insertions, 43 deletions
diff --git a/src/libicalvcal/vobject.c b/src/libicalvcal/vobject.c index 10d0cf5a..9b2484fe 100644 --- a/src/libicalvcal/vobject.c +++ b/src/libicalvcal/vobject.c @@ -1,34 +1,8 @@ /*************************************************************************** -(C) Copyright 1996 Apple Computer, Inc., AT&T Corp., International +SPDX-FileCopyrightText: 1996 Apple Computer, Inc., AT&T Corp., International Business Machines Corporation and Siemens Rolm Communications Inc. -For purposes of this license notice, the term Licensors shall mean, -collectively, Apple Computer, Inc., AT&T Corp., International -Business Machines Corporation and Siemens Rolm Communications Inc. -The term Licensor shall mean any of the Licensors. - -Subject to acceptance of the following conditions, permission is hereby -granted by Licensors without the need for written agreement and without -license or royalty fees, to use, copy, modify and distribute this -software for any purpose. - -The above copyright notice and the following four paragraphs must be -reproduced in all copies of this software and any software including -this software. - -THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS AND NO LICENSOR SHALL HAVE -ANY OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS OR -MODIFICATIONS. - -IN NO EVENT SHALL ANY LICENSOR BE LIABLE TO ANY PARTY FOR DIRECT, -INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT -OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - -EACH LICENSOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO ANY WARRANTY OF NONINFRINGEMENT OR THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. +SPDX-License-Identifier: LicenseRef-APPLEMIT The software is provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by the government are subject to restrictions set forth in @@ -84,8 +58,6 @@ struct StrItem { const char** fieldedProp; - - /*---------------------------------------------------------------------- The following functions involve with memory allocation: newVObject @@ -144,7 +116,6 @@ void deleteStr(const char *p) free((void*)p); } - static StrItem* newStrItem(const char *s, StrItem *next) { StrItem *p = (StrItem*)malloc(sizeof(StrItem)); @@ -160,7 +131,6 @@ static void deleteStrItem(StrItem *p) free((void*)p); } - /*---------------------------------------------------------------------- The following function provide accesses to VObject's value. ----------------------------------------------------------------------*/ @@ -259,7 +229,6 @@ int vObjectValueType(VObject *o) return (int)VALUE_TYPE(o); } - /*---------------------------------------------------------------------- The following functions can be used to build VObject. ----------------------------------------------------------------------*/ @@ -457,8 +426,6 @@ VObject* addPropSizedValue(VObject *o, const char *p, const char *v, return addPropSizedValue_(o,p,dupStr(v,size),size); } - - /*---------------------------------------------------------------------- The following pretty print a VObject ----------------------------------------------------------------------*/ @@ -698,7 +665,6 @@ void cleanStrTbl() } } - struct PreDefProp { const char *name; const char *alias; @@ -937,7 +903,6 @@ static const struct PreDefProp propNames[] = { { 0,0,0,0 } }; - static const struct PreDefProp* lookupPropInfo(const char* str) { /* brute force for now, could use a hash table here. */ @@ -951,7 +916,6 @@ static const struct PreDefProp* lookupPropInfo(const char* str) return 0; } - const char* lookupProp_(const char* str) { int i; @@ -965,7 +929,6 @@ const char* lookupProp_(const char* str) return lookupStr(str); } - const char* lookupProp(const char* str) { int i; @@ -981,7 +944,6 @@ const char* lookupProp(const char* str) return lookupStr(str); } - /*---------------------------------------------------------------------- APIs to Output text form. ----------------------------------------------------------------------*/ @@ -1116,7 +1078,6 @@ static void initMemOFile(OFile *fp, char *s, int len) fp->fail = 0; } - static int writeBase64(OFile *fp, unsigned char *s, long len) { long cur = 0; @@ -1190,8 +1151,6 @@ static void writeQPString(OFile *fp, const char *s) } } - - static void writeVObject_(OFile *fp, VObject *o); static void writeValue(OFile *fp, VObject *o, unsigned long size,int quote) |