1 |
%{ |
%{ |
2 |
/* This file is part of GNU RADIUS. |
/* This file is part of GNU Radius. |
3 |
Copyright (C) 2000, 2001, Sergey Poznyakoff |
Copyright (C) 2000,2001,2002,2003 Sergey Poznyakoff |
4 |
|
|
5 |
This program is free software; you can redistribute it and/or modify |
GNU Radius is free software; you can redistribute it and/or modify |
6 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
7 |
the Free Software Foundation; either version 2 of the License, or |
the Free Software Foundation; either version 2 of the License, or |
8 |
(at your option) any later version. |
(at your option) any later version. |
9 |
|
|
10 |
This program is distributed in the hope that it will be useful, |
GNU Radius is distributed in the hope that it will be useful, |
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
GNU General Public License for more details. |
GNU General Public License for more details. |
14 |
|
|
15 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
16 |
along with this program; if not, write to the Free Software Foundation, |
along with GNU Radius; if not, write to the Free Software Foundation, |
17 |
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
18 |
|
|
19 |
#define RADIUS_MODULE_GRAM |
#define RADIUS_MODULE_GRAM |
20 |
|
|
|
#ifndef lint |
|
|
static char rcsid[] = |
|
|
"@(#) $Id$"; |
|
|
#endif |
|
21 |
#if defined(HAVE_CONFIG_H) |
#if defined(HAVE_CONFIG_H) |
22 |
# include <config.h> |
# include <config.h> |
23 |
#endif |
#endif |
354 |
%% |
%% |
355 |
|
|
356 |
int |
int |
357 |
yyerror(s) |
yyerror(char *s) |
|
char *s; |
|
358 |
{ |
{ |
359 |
fprintf(stderr, "%s:%d: %s\n", |
fprintf(stderr, "%s:%d: %s\n", |
360 |
source_filename, |
source_filename, |
396 |
} |
} |
397 |
|
|
398 |
int |
int |
399 |
subscript(var, attr_name, all, ret_var) |
subscript(Variable *var, char *attr_name, int all, Variable *ret_var) |
|
Variable *var; |
|
|
char *attr_name; |
|
|
int all; |
|
|
Variable *ret_var; |
|
400 |
{ |
{ |
401 |
DICT_ATTR *dict; |
DICT_ATTR *dict; |
402 |
VALUE_PAIR *pair; |
VALUE_PAIR *pair; |