• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/wget-1.12/src/

Lines Matching defs:to

26 grants you additional permission to convey the resulting work.
31 /* The only entry point to this module is map_html_tags(), which see. */
35 - Allow hooks for callers to process contents outside tags. This
36 is needed to implement handling <style> and <script>. The
38 tags are, but this is not enough, because one would also want to
40 <script> you *don't* want to skip comments!)
48 inefficient and buggy. It also contained some very complex code to
49 remember a list of parser states, because it was supposed to be
57 attribute's value was a URL to be returned. Any other property of
58 HTML, such as <base href=...>, or strange way to specify a URL,
59 such as <meta http-equiv=Refresh content="0; URL=..."> had to be
60 crudely hacked in -- and the caller had to be aware of these hacks.
63 After Wget 1.5.1 was released, I set out to write a third HTML
64 parser. The objectives of the new parser were to: (1) provide a
65 clean way to analyze HTML lexically, (2) separate interpretation of
79 Due to time and other constraints, this parser was not integrated
86 gets called with the pointer to a structure describing the tag and
90 still need Wget headers to compile. */
143 allocated on the stack, and moved to the heap if it needs to be
144 larger than originally expected. map_html_tags() uses it to store
154 char *contents; /* pointer to the contents. */
162 to restore the pool to the initial
167 /* Initialize the pool to hold INITIAL_SIZE bytes of storage. */
179 /* Grow the pool to accomodate at least SIZE new bytes. If the pool
180 already has room to accomodate SIZE bytes of data, this is a no-op. */
186 /* Append text in the range [beg, end) to POOL. No zero-termination
197 /* Append one character to the pool. Can be used to zero-terminate
211 restores `contents' and `size' to their original, pre-malloc
226 DO_REALLOC, this macro grows BASEVAR as necessary to take
231 the initial chunk, and only resort to heap allocation if you
261 other words an entity needs to be terminated by either a
273 to "<foo", but "&lt,foo" to "<,foo". */
364 /* Decode the HTML character entity at *PTR, considering END to be end
367 ASCII entity is seen, it is returned, and *PTR is moved to the end
438 /* Copy the text in the range [BEG, END) to POOL, optionally
469 /* Grow the pool, then copy the text to the pool character by
473 It's safe (and necessary) to grow the pool in advance because
477 char *to;
481 to = pool->contents + pool->tail;
489 *to++ = entity;
491 *to++ = *from++;
496 *to++ = *from++;
500 assert (to - (pool->contents + pool->tail) <= end - beg);
502 /* Make POOL's tail point to the position following the string
504 pool->tail = to - pool->contents;
509 /* Just copy the text to the pool. */
523 /* Originally we used to adhere to rfc 1866 here, and allowed only
561 before the first comment. Additionally, this function attempts to
591 /* It looked like a good idea to write this as a state machine, but
726 return the pointer to the character after the substring. If the
734 look at the preceding characters and try to find a match. */
789 to read the next character. If this is not possible, go to finish. */
818 MAPFUN will be called with two arguments: pointer to an initialized
827 just as well, but this is just an optimization designed to avoid
838 /* storage for strings passed to MAPFUN callback; if 256 bytes is
899 declaration. Real declarations are much less likely to
937 the loop below to properly advance over the tag's attributes. */
957 /* A slash at this point means the tag is about to be
986 /* Minimized attribute syntax allows `=' to be omitted.
989 useful to Wget, we need to support them, so that the
1011 is most likely that someone forgot to close
1012 the quote. In that case, we back out to
1041 /* According to SGML, a name token should consist only
1075 needs to correctly advance over the attribute. */