… | |
… | |
1144 | |
1144 | |
1145 | /* |
1145 | /* |
1146 | * Allocate and return the pointer to an empty artifactlist structure. |
1146 | * Allocate and return the pointer to an empty artifactlist structure. |
1147 | */ |
1147 | */ |
1148 | static artifactlist * |
1148 | static artifactlist * |
1149 | get_empty_artifactlist (void) |
1149 | get_empty_artifactlist () |
1150 | { |
1150 | { |
1151 | return salloc0<artifactlist> (); |
1151 | return salloc0<artifactlist> (); |
1152 | } |
1152 | } |
1153 | |
1153 | |
1154 | /* |
1154 | /* |
1155 | * Allocate and return the pointer to an empty artifact structure. |
1155 | * Allocate and return the pointer to an empty artifact structure. |
1156 | */ |
1156 | */ |
1157 | static artifact * |
1157 | static artifact * |
1158 | get_empty_artifact (void) |
1158 | get_empty_artifact () |
1159 | { |
1159 | { |
1160 | return salloc0<artifact> (); |
1160 | return salloc0<artifact> (); |
1161 | } |
1161 | } |
1162 | |
1162 | |
1163 | /* |
1163 | /* |
… | |
… | |
1176 | |
1176 | |
1177 | /* |
1177 | /* |
1178 | * Builds up the lists of artifacts from the file in the libdir. |
1178 | * Builds up the lists of artifacts from the file in the libdir. |
1179 | */ |
1179 | */ |
1180 | void |
1180 | void |
1181 | init_artifacts (void) |
1181 | init_artifacts () |
1182 | { |
1182 | { |
1183 | static int has_been_inited = 0; |
1183 | static int has_been_inited = 0; |
1184 | char filename[MAX_BUF]; |
1184 | char filename[MAX_BUF]; |
1185 | artifact *art = NULL; |
1185 | artifact *art = NULL; |
1186 | artifactlist *al; |
1186 | artifactlist *al; |