5 #include "../inc/config.h"
13 init0(mrcImageStackInfo* info)
15 info->fptIn = stdin; info->fptInList = stdin; info->flagIn = 0;
16 info->fptOut = NULL; info->flagOut = 0;
17 info->fptconfigFile = NULL; info->flagconfigFile = 0;
18 info->mode = 0; info->flagmode = 0;
22 init1(mrcImageStackInfo* info)
27 info->fptInList = fileOpen(info->InList, "r");
28 fseek(info->fptInList, 0L, SEEK_SET);
30 while(NULL!=stringGetFromFile(s, "", info->fptInList, stdout, 1)) {
33 info->fptIn = (FILE**)memoryAllocate(i*sizeof(FILE*), "in init1");
34 info->In = (char**)memoryAllocate(i*sizeof(char*), "in init1");
36 fseek(info->fptInList, 0L, SEEK_SET);
38 while(NULL!=stringGetFromFile(s, "", info->fptInList, stdout, 1)) {
39 info->In[i] = stringGetNthWord(s, 1, " ,\t");
45 stringGetFromFile(s, "Out", stdin, stdout, 0);
46 info->Out = stringGetNthWord(s, 1, " ,\t");
50 info->fptOut = fileOpen(info->Out, "w");
53 if(info->flagconfigFile) {
54 info->fptconfigFile = fileOpen(info->configFile, "r");
63 #include "bootstrap.h"
65 #include "datamanip.h"
66 extern void func_usage_additions(void);
67 extern void func_free_args(kexit_status status, kaddr client_data);
68 extern void func_get_args(kform* pane);
71 func_usage_additions(void)
75 func_free_args(kexit_status status, kaddr client_data)
79 func_get_args(kform* pane)
83 khorosInit(int argc, char* argv[])
89 eospath = getenv("EOS_HOME");
90 sprintf(panepath, "%s/src/Tools/mrcImage/mrcImageStack/src/mrcImageStack.pane", eospath);
91 khoros_initialize(argc, argv, "EOS");
92 fpt = fopen(panepath, "r"); if(NULL!=fpt) {
94 kclui_initialize(panepath, KGEN_NONE, "EOS", "mrcImageStack",