Changeset bf4997 in git for Singular/iplib.cc


Ignore:
Timestamp:
Mar 26, 2001, 11:35:58 PM (23 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b36d3da67429c33f1ca29da748ec25b382515a07
Parents:
4fc824e31426994063664cd4b353fe70dbedb203
Message:
*hannes: casts


git-svn-id: file:///usr/local/Singular/svn/trunk@5345 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    r4fc824e rbf4997  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iplib.cc,v 1.83 2001-03-26 19:40:50 Singular Exp $ */
     4/* $Id: iplib.cc,v 1.84 2001-03-26 21:35:58 Singular Exp $ */
    55/*
    66* ABSTRACT: interpreter: LIB and help
     
    3636#include "mod_raw.h"
    3737
    38 static char *iiConvName(char *p);
     38static char *iiConvName(const char *p);
    3939#ifdef HAVE_LIBPARSER
    4040void yylprestart (FILE *input_file );
     
    10301030  int iiAddCproc(char *libname, char *procname, BOOLEAN pstatic,
    10311031                 BOOLEAN(*func)(leftv res, leftv v));
    1032   int (*fktn)(int(*iiAddCproc)(char *libname, char *procname,
     1032  typedef int (*fktn_t)(int(*iiAddCproc)(char *libname, char *procname,
    10331033                               BOOLEAN pstatic,
    10341034                               BOOLEAN(*func)(leftv res, leftv v)));
     1035  fktn_t fktn;
    10351036  idhdl pl;
    10361037  char *plib = iiConvName(newlib);
     
    10441045
    10451046
    1046   if(IsCmd(plib, &token))
     1047  if(IsCmd(plib, token))
    10471048  {
    10481049    Werror("'%s' is resered identifier\n", plib);
     
    10841085  else
    10851086  {
    1086     fktn = dynl_sym(IDPACKAGE(pl)->handle, "mod_init");
     1087    fktn = (fktn_t)dynl_sym(IDPACKAGE(pl)->handle, "mod_init");
    10871088    if( fktn!= NULL) (*fktn)(iiAddCproc);
    10881089    else Werror("mod_init: %s\n", dynl_error());
     
    11201121//#endif
    11211122
    1122 static char *iiConvName(char *libname)
     1123static char *iiConvName(const char *libname)
    11231124{
    11241125  char *tmpname = omStrDup(libname);
Note: See TracChangeset for help on using the changeset viewer.