diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2013-05-04 21:39:27 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2013-05-04 21:39:27 +0000 |
commit | fec6336699f34758d3e6cb41b2edf902fedb9035 (patch) | |
tree | 8256c1dbf3ca7c9e58a3dbecf07cf826fb2e0ce2 /src/libicalss/icalssyacc.y | |
parent | 7dbffd7e2b0067e834801617c5c486e3177f6709 (diff) | |
download | libical-master.tar.gz |
libical-1.0HEADlibical-1.0master
Diffstat (limited to 'src/libicalss/icalssyacc.y')
-rw-r--r-- | src/libicalss/icalssyacc.y | 75 |
1 files changed, 37 insertions, 38 deletions
diff --git a/src/libicalss/icalssyacc.y b/src/libicalss/icalssyacc.y index af16177..03e1d92 100644 --- a/src/libicalss/icalssyacc.y +++ b/src/libicalss/icalssyacc.y @@ -1,31 +1,31 @@ %{ -/* -*- Mode: C -*- - ====================================================================== - FILE: icalssyacc.y - CREATOR: eric 08 Aug 2000 - - DESCRIPTION: - - $Id: icalssyacc.y,v 1.10 2008-01-14 00:35:26 dothebart Exp $ - $Locker: $ - -(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org - - This program is free software; you can redistribute it and/or modify - it under the terms of either: - - The LGPL as published by the Free Software Foundation, version - 2.1, available at: http://www.fsf.org/copyleft/lesser.html - - Or: - - The Mozilla Public License Version 1.0. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - The Original Code is eric. The Initial Developer of the Original - Code is Eric Busboom - - ======================================================================*/ +/* -*- Mode: C -*- */ +/* ====================================================================== */ +/* FILE: icalssyacc.y */ +/* CREATOR: eric 08 Aug 2000 */ +/* */ +/* DESCRIPTION: */ +/* */ +/* $Id: icalssyacc.y,v 1.10 2008-01-14 00:35:26 dothebart Exp $ */ +/* $Locker: $ */ +/* */ +/* (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org */ +/* */ +/* This program is free software; you can redistribute it and/or modify */ +/* it under the terms of either: */ +/* */ +/* The LGPL as published by the Free Software Foundation, version */ +/* 2.1, available at: http://www.fsf.org/copyleft/lesser.html */ +/* */ +/* Or: */ +/* */ +/* The Mozilla Public License Version 1.0. You may obtain a copy of */ +/* the License at http://www.mozilla.org/MPL/ */ +/* */ +/* The Original Code is eric. The Initial Developer of the Original */ +/* Code is Eric Busboom */ +/* */ +/* ====================================================================== */ /*#define YYDEBUG 1*/ #include <stdlib.h> #include <string.h> /* for strdup() */ @@ -51,13 +51,12 @@ static void set_logic(struct icalgauge_impl* impl,icalgaugelogic l); /* Don't know why I need this.... */ -/* TODO: older flex version produce whats here configured as OpenBSD */ -/* autoconf should figure out, and which flex version we should be newer than? */ -#ifndef __OpenBSD__ -int sslex(void *YYPARSE_PARAM); -#else -int sslex(); -#endif +/* older flex version (such as included in OpenBSD) takes a different calling syntax */ +#ifdef YYPARSE_PARAM +int sslex(void *YYPARSE_PARAM); +#else +int sslex(void); +#endif %} %union { @@ -141,8 +140,8 @@ static void ssyacc_add_where(struct icalgauge_impl* impl, char* str1, where->value = strdup(s); - /* Is there a period in str1 ? If so, the string specified both a - component and a property*/ + /* Is there a period in str1 ? If so, the string specified both a */ + /* component and a property */ if( (c = strrchr(str1,'.')) != 0){ compstr = str1; propstr = c+1; @@ -201,8 +200,8 @@ static void ssyacc_add_select(struct icalgauge_impl* impl, char* str1) where->comp = ICAL_NO_COMPONENT; where->prop = ICAL_NO_PROPERTY; - /* Is there a period in str1 ? If so, the string specified both a - component and a property*/ + /* Is there a period in str1 ? If so, the string specified both a */ + /* component and a property */ if( (c = strrchr(str1,'.')) != 0){ compstr = str1; propstr = c+1; |