Commit ec7894a
committed
ParseXS: standard_typemap_locations(): rm cache
standard_typemap_locations() has a static variable, @tm_template,
which it populates with all the '../../typemap' etc paths on first call,
then reuses on subsequent calls.
This doesn't seem very useful, since standard_typemap_locations() is
typically only called once per run of xsubpp etc. And anyway,
regenerating those paths (which doesn't involve any IO) isn't costly. So
simplify the code by removing the cache.1 parent 9ef3303 commit ec7894a
1 file changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
116 | | - | |
117 | | - | |
| 113 | + | |
118 | 114 | | |
119 | 115 | | |
120 | 116 | | |
| |||
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
126 | | - | |
127 | | - | |
| 122 | + | |
| 123 | + | |
128 | 124 | | |
129 | | - | |
130 | 125 | | |
131 | | - | |
132 | 126 | | |
133 | 127 | | |
134 | 128 | | |
135 | 129 | | |
136 | 130 | | |
137 | 131 | | |
138 | | - | |
139 | 132 | | |
140 | 133 | | |
141 | 134 | | |
| |||
0 commit comments