/* $Id: parser.c,v 1.24 2004/01/05 11:57:38 reinelt Exp $ * * row definition parser * * Copyright 1999, 2000 Michael Reinelt * * This file is part of LCD4Linux. * * LCD4Linux is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * LCD4Linux 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., 675 Mass Ave, Cambridge, MA 02139, USA. * * * $Log: parser.c,v $ * Revision 1.24 2004/01/05 11:57:38 reinelt * added %y tokens to make the Evaluator useable * * Revision 1.23 2003/11/11 04:40:20 reinelt * WIFI patch from Xavier Vello * * Revision 1.22 2003/10/12 06:08:28 nicowallmeier * imond/telmond support * * Revision 1.21 2003/10/05 17:58:50 reinelt * libtool junk; copyright messages cleaned up * * Revision 1.20 2003/09/01 04:09:35 reinelt * icons nearly finished, but MatrixOrbital only * * Revision 1.19 2003/06/21 05:46:18 reinelt * DVB client integrated * * Revision 1.18 2002/12/05 19:23:01 reinelt * fixed undefined operations found by gcc3 * * Revision 1.17 2002/08/19 04:41:20 reinelt * introduced bar.c, moved bar stuff from display.h to bar.h * * Revision 1.16 2001/03/16 16:40:17 ltoetsch * implemented time bar * * Revision 1.15 2001/03/14 13:19:29 ltoetsch * Added pop3/imap4 mail support * * Revision 1.14 2001/03/13 08:34:15 reinelt * * corrected a off-by-one bug with sensors * * Revision 1.13 2001/03/08 15:25:38 ltoetsch * improved exec * * Revision 1.12 2001/03/07 18:10:21 ltoetsch * added e(x)ec commands * * Revision 1.11 2001/03/02 10:18:03 ltoetsch * added /proc/apm battery stat * * Revision 1.10 2001/02/19 00:15:46 reinelt * * integrated mail and seti client * major rewrite of parser and tokenizer to support double-byte tokens * * Revision 1.9 2001/02/16 08:23:09 reinelt * * new token 'ic' (ISDN connected) by Carsten Nau * * Revision 1.8 2001/02/14 07:40:16 reinelt * * first (incomplete) GPO implementation * * Revision 1.7 2000/08/10 09:44:09 reinelt * * new debugging scheme: error(), info(), debug() * uses syslog if in daemon mode * * Revision 1.6 2000/05/21 06:20:35 reinelt * * added ppp throughput * token is '%t[iomt]' at the moment, but this will change in the near future * * Revision 1.5 2000/03/24 11:36:56 reinelt * * new syntax for raster configuration * changed XRES and YRES to be configurable * PPM driver works nice * * Revision 1.4 2000/03/19 08:41:28 reinelt * * documentation available! README, README.MatrixOrbital, README.Drivers * added Skeleton.c as a starting point for new drivers * * Revision 1.3 2000/03/18 10:31:06 reinelt * * added sensor handling (for temperature etc.) * made data collecting happen only if data is used * (reading /proc/meminfo takes a lot of CPU!) * released lcd4linux-0.92 * * Revision 1.2 2000/03/17 09:21:42 reinelt * * various memory statistics added * * Revision 1.1 2000/03/13 15:58:24 reinelt * * release 0.9 * moved row parsing to parser.c * all basic work finished * */ /* * exported fun
# Bastia - France (DVB-T transmitter of Bastia ( SerradiPigno ) )
# Bastia - France (signal DVB-T transmis depuis l'émetteur de SerradiPigno )
#
# ATTENTION ! Ce fichier a ete construit automatiquement a partir
# des frequences obtenues sur : http://www.tvnt.net/multiplex_frequences.htm
# en Avril 2006. Si vous constatez des problemes et voulez apporter des
# modifications au fichier, envoyez le fichier modifie a
# l'adresse linux-dvb@linuxtv.org (depot des fichiers d'init dvb)
# ou a l'auteur du fichier :
# Nicolas Estre <n_estre@yahoo.fr>
#
# T freq bw fec_hi fec_lo mod transmission-mode guard-interval hierarchy
#### Bastia - SerradiPigno ####
#R1
T 490000000 8MHz AUTO NONE QAM64 8k AUTO NONE
#R2
T 626000000 8MHz AUTO NONE QAM64 8k AUTO NONE
#R3
T 578000000 8MHz AUTO NONE QAM64 8k AUTO NONE
#R4
T 666000000 8MHz AUTO NONE QAM64 8k AUTO NONE
#R5
T 602000000 8MHz AUTO NONE QAM64 8k AUTO NONE
#R6
T 538000000 8MHz AUTO NONE QAM64 8k AUTO NONE
illegal '&%c' in <%s>", *s, string); } else { *p++=*s++; *p++=*s++; } break; case '\\': if (*(s+1)=='\\') { *p++='\\'; s++; } else { unsigned int c=0; int n; sscanf (s+1, "%3o%n", &c, &n); if (c==0 || c>255) { error ("WARNING: illegal '\\' in <%s>", string); } else { *p++=c; s+=n+1; } } break; default: if ((*p++=*s)!='\0') s++; } } while (*s); *p='\0'; return buffer; } int parse_gpo (char *string, int usage[]) { char *s=string; int token=-1; if (*s=='%') { if ((token=get_token (++s, &s, 0, usage))==-1) { error ("WARNING: unknown token <%%%c> in <%s>", *s, string); } } if (*s!='\0') { error ("WARNING: error while parsing <%s>", string); } return token; }