Deleted Added
full compact
stab.c (64562) stab.c (71345)
1/*
1/*
2 * Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
2 * Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
5 * Copyright (c) 1988, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set
9 * forth in the LICENSE file which can be found at the top level of
10 * the sendmail distribution.
11 *
12 */
13
14#ifndef lint
3 * All rights reserved.
4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
5 * Copyright (c) 1988, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set
9 * forth in the LICENSE file which can be found at the top level of
10 * the sendmail distribution.
11 *
12 */
13
14#ifndef lint
15static char id[] = "@(#)$Id: stab.c,v 8.40.16.2 2000/06/05 21:46:59 gshapiro Exp $";
15static char id[] = "@(#)$Id: stab.c,v 8.40.16.3 2000/10/09 02:46:12 gshapiro Exp $";
16#endif /* ! lint */
17
18#include <sendmail.h>
19
20/*
21** STAB -- manage the symbol table
22**
23** Parameters:

--- 239 unchanged lines hidden (view full) ---

263 ENVELOPE *e;
264{
265 register STAB **shead;
266 register STAB *s;
267
268 if (e == NULL)
269 return;
270
16#endif /* ! lint */
17
18#include <sendmail.h>
19
20/*
21** STAB -- manage the symbol table
22**
23** Parameters:

--- 239 unchanged lines hidden (view full) ---

263 ENVELOPE *e;
264{
265 register STAB **shead;
266 register STAB *s;
267
268 if (e == NULL)
269 return;
270
271 class = bitidx(class);
271 for (shead = SymTab; shead < &SymTab[STABSIZE]; shead++)
272 {
273 for (s = *shead; s != NULL; s = s->s_next)
274 {
275 int m;
276 char *p;
277
278 if (s->s_type == ST_CLASS &&
272 for (shead = SymTab; shead < &SymTab[STABSIZE]; shead++)
273 {
274 for (s = *shead; s != NULL; s = s->s_next)
275 {
276 int m;
277 char *p;
278
279 if (s->s_type == ST_CLASS &&
279 bitnset(class & 0xff, s->s_class) &&
280 bitnset(class, s->s_class) &&
280 (m = macid(s->s_name, NULL)) != '\0' &&
281 (p = macvalue(m, e)) != NULL)
282 {
283 /*
284 ** HACK ALERT: Unfortunately, 8.10 and
285 ** 8.11 reused the ${if_addr} and
286 ** ${if_family} macros for both the incoming
287 ** interface address/family (getrequests())

--- 33 unchanged lines hidden (view full) ---

321void
322copy_class(src, dst)
323 int src;
324 int dst;
325{
326 register STAB **shead;
327 register STAB *s;
328
281 (m = macid(s->s_name, NULL)) != '\0' &&
282 (p = macvalue(m, e)) != NULL)
283 {
284 /*
285 ** HACK ALERT: Unfortunately, 8.10 and
286 ** 8.11 reused the ${if_addr} and
287 ** ${if_family} macros for both the incoming
288 ** interface address/family (getrequests())

--- 33 unchanged lines hidden (view full) ---

322void
323copy_class(src, dst)
324 int src;
325 int dst;
326{
327 register STAB **shead;
328 register STAB *s;
329
330 src = bitidx(src);
331 dst = bitidx(dst);
329 for (shead = SymTab; shead < &SymTab[STABSIZE]; shead++)
330 {
331 for (s = *shead; s != NULL; s = s->s_next)
332 {
333 if (s->s_type == ST_CLASS &&
332 for (shead = SymTab; shead < &SymTab[STABSIZE]; shead++)
333 {
334 for (s = *shead; s != NULL; s = s->s_next)
335 {
336 if (s->s_type == ST_CLASS &&
334 bitnset(src & 0xff, s->s_class))
337 bitnset(src, s->s_class))
335 setbitn(dst, s->s_class);
336 }
337 }
338}
338 setbitn(dst, s->s_class);
339 }
340 }
341}