"Fossies" - the Fresh Open Source Software Archive

Member "reportlab-3.5.23/src/rl_addons/renderPM/gt1/gt1-dict.h" (14 Mar 2013, 847 Bytes) of package /linux/privat/reportlab-3.5.23.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "gt1-dict.h" see the Fossies "Dox" file reference documentation.

    1 /* An implementation of PostScript dict data structures */
    3 /* You must also include gt1-namecontext.h, gt1-region.h, and gt1-value.h.
    4    The dicts are all allocated in regions. */
    6 /* For efficiency and type safety, this dict implementation holds
    7    values as defined in value.h, i.e. values suitable for a PostScript
    8    implementation. If you want to use this dict in other contexts,
    9    it would probably be best to duplicate the code. */
   11 typedef struct _Gt1DictEntry Gt1DictEntry;
   13 struct _Gt1DictEntry {
   14   Gt1NameId key;
   15   Gt1Value val;
   16 };
   18 /* the dict is sorted by key */
   19 struct _Gt1Dict {
   20   int n_entries;
   21   int n_entries_max;
   22   Gt1DictEntry *entries;
   23 };
   25 Gt1Dict *gt1_dict_new (Gt1Region *r, int size);
   27 Gt1Value *gt1_dict_lookup (Gt1Dict *dict, Gt1NameId key);
   29 void gt1_dict_def (Gt1Region *r, Gt1Dict *d, Gt1NameId key, Gt1Value *val);