Lines Matching +full:last +full:- +full:level
2 * Copyright (c) 1998-2001 Proofpoint, Inc. and its suppliers.
4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
9 * forth in the LICENSE file which can be found at the top level of
18 SM_RCSID("@(#)$Id: trace.c,v 8.39 2013-11-22 20:51:57 ca Exp $")
24 ** TtSETUP -- set up for trace package.
27 ** vect -- pointer to trace vector.
28 ** size -- number of flags in trace vector.
29 ** defflags -- flags to set if no value given.
54 ** tToldflag -- process an old style trace flag
57 ** s -- points to a [\0, \t] terminated string,
71 unsigned int first, last; local
77 i = i * 10 + (*s++ - '0');
81 ** Maybe we should complain if out-of-bounds values are used.
88 /* find last flag to set */
89 if (*s == '-')
93 i = i * 10 + (*s - '0');
99 last = i;
101 /* find the level to set it to */
107 i = i * 10 + (*s - '0');
112 first = tTsize - 1;
113 if (last >= tTsize)
114 last = tTsize - 1;
117 while (first <= last)
128 ** tTnewflag -- process a new style trace flag
131 ** s -- Points to a non-empty [\0, \t] terminated string,
146 int level; local
155 level = 0;
158 level = level * 10 + (*s - '0');
161 if (level < 0)
162 level = 0;
166 level = 1;
169 sm_debug_addsetting_x(sm_strndup_x(pat, endpat - pat), level);
179 ** TtFLAG -- process an external trace flag list.
182 ** s -- the trace flag.
187 ** <flag> ::= <categories> | <categories> "." <level>
188 ** <categories> ::= <int> | <int> "-" <int> | <pattern>
199 ** sets/clears old-style trace flags.
200 ** registers new-style trace flags with the libsm debug package.