~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to lib/dict/dictll.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-07-30 12:56:49 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730125649-97sfj5li8axiseoo
Tags: 2009.07.22-179896-2
* Temporarily building without dumbnet, the recently uploaded
  new dumbnet upstream version broke down (Closes: #539006).
* Using more common name to store local debian additions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 
98
98
 
99
99
/*
100
 
XXX document the dict format:
101
 
 
102
 
     whitespaces <name> whitespaces '=' whitespaces <value> whitespaces comment
103
 
  or
104
 
     whitespaces <name> whitespaces '=' whitespaces '"' <value> '"' whitespaces comment
105
 
 
106
 
  where:
107
 
 
108
 
  . <name> does not contain any whitespace or = or pound
109
 
  . <value> does not contain any double-quote or pound
110
 
*/
 
100
 * The dictionary line format:
 
101
 *
 
102
 *    <ws> <name> <ws> = <ws> <value> <ws> <comment>
 
103
 * or
 
104
 *    <ws> <name> <ws> = <ws> " <quoted-value> " <ws> <comment>
 
105
 *
 
106
 * where
 
107
 *    <name> does not contain any whitespace or = or #
 
108
 *    <value> does not contain any double-quote or #
 
109
 *    <quoted-value> does not contain any double-quote
 
110
 *    <comment> begins with # and ends at the end of the line
 
111
 *    <ws> is a sequence spaces and/or tabs
 
112
 *    <comment> and <ws> are optional
 
113
 */
111
114
 
112
115
 
113
116
/*
390
393
 
391
394
   if (name) {
392
395
      /*
393
 
       * Double quote, pound, pipe, 0x7F, and all control characters but
 
396
       * Double quote, pipe, 0x7F, and all control characters but
394
397
       * tab --hpreg
395
 
       * XXX Why 7F? Why not also 84 and 85 and 90 which do funny things in a
396
 
       *     xterm?
 
398
       * 0x80 to 0xff are unescaped so characters in encodings
 
399
       * like UTF-8 will be displayed normally.
397
400
       */
398
401
      static int const toEscape[] = {
399
402
         1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1,
400
403
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
401
 
         0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 
404
         0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
402
405
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
403
406
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
404
407
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,