Changeset d906dc in git for Singular/blackbox.cc


Ignore:
Timestamp:
Jun 4, 2019, 2:33:32 PM (5 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d4cec6ab781a81162945ff680935242fcccc952a
Parents:
56ff8efc45f5392a6e465782a66a5df5a54180f01708fac9cfbd392cceea00167eaa2746d291cd98
Message:
Merge branch 'spielwiese' into stable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/blackbox.cc

    r56ff8ef rd906dc  
    224224  }
    225225}
     226
     227struct blackbox_list *getBlackboxTypes()
     228{
     229        int i = 0;
     230        void **l = (void **)omalloc(blackboxTableCnt * sizeof(void *));
     231        struct blackbox_list *list_struct = (struct blackbox_list *) omalloc(sizeof(struct blackbox_list));
     232        list_struct->count = blackboxTableCnt;
     233        list_struct->list = l;
     234
     235        for (i = blackboxTableCnt-1; i >= 0 ;i--)
     236        {
     237                if (blackboxName[i]!=NULL) {
     238                        l[i] = (void *)omStrDup(blackboxName[i]);
     239                        //Print("type %d: %s\n",i,blackboxName[i]);
     240                } else {
     241                        l[i] = NULL;
     242                }
     243        }
     244        return list_struct;
     245}
Note: See TracChangeset for help on using the changeset viewer.