Mercurial > octave-nkf
comparison liboctave/kpse.cc @ 11501:331fcc41ca23
data member initialization fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Jan 2011 03:04:51 -0500 |
parents | 6ccf1130f23c |
children | 12df7854fa7c |
comparison
equal
deleted
inserted
replaced
11500:7aeb4eb7403f | 11501:331fcc41ca23 |
---|---|
310 we never need a NULL string in the middle of the list, and an extra | 310 we never need a NULL string in the middle of the list, and an extra |
311 NULL/NULL element always at the end is inconsequential. */ | 311 NULL/NULL element always at the end is inconsequential. */ |
312 | 312 |
313 struct str_llist_elt | 313 struct str_llist_elt |
314 { | 314 { |
315 str_llist_elt (void) : str (), moved (0), next (0) { } | |
316 | |
317 ~str_llist_elt (void) { } | |
318 | |
315 std::string str; | 319 std::string str; |
316 int moved; | 320 int moved; |
317 struct str_llist_elt *next; | 321 struct str_llist_elt *next; |
318 }; | 322 }; |
319 | 323 |
1691 it via variable expansion, but not now, maybe not ever: | 1695 it via variable expansion, but not now, maybe not ever: |
1692 ${PKFONTS-${TEXFONTS-/usr/local/lib/texmf/fonts//}}. */ | 1696 ${PKFONTS-${TEXFONTS-/usr/local/lib/texmf/fonts//}}. */ |
1693 | 1697 |
1694 struct kpse_format_info_type | 1698 struct kpse_format_info_type |
1695 { | 1699 { |
1700 kpse_format_info_type (void) | |
1701 : type (), path (), raw_path (), path_source (), override_path (), | |
1702 client_path (), cnf_path (), default_path (), suffix () | |
1703 { } | |
1704 | |
1705 ~kpse_format_info_type (void) { } | |
1706 | |
1696 std::string type; /* Human-readable description. */ | 1707 std::string type; /* Human-readable description. */ |
1697 std::string path; /* The search path to use. */ | 1708 std::string path; /* The search path to use. */ |
1698 std::string raw_path; /* Pre-$~ (but post-default) expansion. */ | 1709 std::string raw_path; /* Pre-$~ (but post-default) expansion. */ |
1699 std::string path_source; /* Where the path started from. */ | 1710 std::string path_source; /* Where the path started from. */ |
1700 std::string override_path; /* From client environment variable. */ | 1711 std::string override_path; /* From client environment variable. */ |
2079 the dir_links call, that's not enough -- without this path element | 2090 the dir_links call, that's not enough -- without this path element |
2080 caching as well, the execution time doubles. */ | 2091 caching as well, the execution time doubles. */ |
2081 | 2092 |
2082 struct cache_entry | 2093 struct cache_entry |
2083 { | 2094 { |
2095 cache_entry (void) : key (), value (0) { } | |
2096 | |
2097 ~cache_entry (void) { } | |
2098 | |
2084 std::string key; | 2099 std::string key; |
2085 str_llist_type *value; | 2100 str_llist_type *value; |
2086 }; | 2101 }; |
2087 | 2102 |
2088 static cache_entry *the_cache = 0; | 2103 static cache_entry *the_cache = 0; |