---------------------------------------------------------------------*/ * @brief initialisation of arithmetic structured data @retval 0 on success **/ ---------------------------------------------------------------------*/
| 9973 | **/ |
| 9974 | /*---------------------------------------------------------------------*/ |
| 9975 | int iiInitArithmetic() |
| 9976 | { |
| 9977 | //printf("iiInitArithmetic()\n"); |
| 9978 | memset(&sArithBase, 0, sizeof(sArithBase)); |
| 9979 | iiInitCmdName(); |
| 9980 | /* fix last-identifier */ |
| 9981 | #if 0 |
| 9982 | /* we expect that gentable allready did every thing */ |
| 9983 | for(sArithBase.nLastIdentifier=sArithBase.nCmdUsed-1; |
| 9984 | sArithBase.nLastIdentifier>0; sArithBase.nLastIdentifier--) { |
| 9985 | if(sArithBase.sCmds[sArithBase.nLastIdentifier].tokval>=0) break; |
| 9986 | } |
| 9987 | #endif |
| 9988 | //Print("L=%d\n", sArithBase.nLastIdentifier); |
| 9989 | |
| 9990 | //iiArithAddCmd(szName, nAlias, nTokval, nToktype); |
| 9991 | //iiArithAddCmd("mygcd", 1, GCD_CMD, CMD_2); |
| 9992 | |
| 9993 | //iiArithAddCmd("Top", 0,-1,0); |
| 9994 | |
| 9995 | |
| 9996 | //for(i=0; i<sArithBase.nCmdUsed; i++) { |
| 9997 | // printf("CMD[%03d] %s, %d, %d, %d\n", i, |
| 9998 | // sArithBase.sCmds[i].name, |
| 9999 | // sArithBase.sCmds[i].alias, |
| 10000 | // sArithBase.sCmds[i].tokval, |
| 10001 | // sArithBase.sCmds[i].toktype); |
| 10002 | //} |
| 10003 | //iiArithRemoveCmd("Top"); |
| 10004 | //iiArithAddCmd("mygcd", 2, GCD_CMD, CMD_2); |
| 10005 | //iiArithRemoveCmd("mygcd"); |
| 10006 | //iiArithAddCmd("kkk", 1, 1234, CMD_1); |
| 10007 | return 0; |
| 10008 | } |
| 10009 | |
| 10010 | int iiArithFindCmd(const char *szName) |
| 10011 | { |