Changeset 73a0cd in git


Ignore:
Timestamp:
Mar 25, 2008, 4:04:42 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
701f0a0d4bc3ca76701b9d2a8148a2eb4b927dbb
Parents:
889f6ee1899e5ff13c842d4224c6cded2263cea4
Message:
*hannes: use common include files


git-svn-id: file:///usr/local/Singular/svn/trunk@10646 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/libparse.h

    r889f6e r73a0cd  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: libparse.h,v 1.17 2008-03-25 14:51:58 Singular Exp $ */
     6/* $Id: libparse.h,v 1.18 2008-03-25 15:04:42 Singular Exp $ */
    77/*
    88* ABSTRACT: lib parsing
    99*/
    10 #ifndef STANDALONE_PARSER
    1110#  include "structs.h"
    1211#  include "subexpr.h"
    13 #endif
    1412typedef enum { LOAD_LIB, GET_INFO } lp_modes;
    1513typedef enum { OLD_LIBSTYLE, NEW_LIBSTYLE } lib_style_types;
  • Singular/utils.cc

    r889f6e r73a0cd  
    33#include <stdlib.h>
    44#include <ctype.h>
     5#include "mod2.h"
    56#include "fegetopt.h"
     7#include "libparse.h"
    68#include "utils.h"
    79
     
    106108/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
    107109
    108 procinfo *iiInitSingularProcinfo(procinfov pi, char *libname,
    109                                  char *procname, int line, long pos,
    110                                  BOOLEAN pstatic = FALSE)
     110procinfo *iiInitSingularProcinfo(procinfov pi, const char *libname,
     111                                 const char *procname, int line, long pos,
     112                                 BOOLEAN pstatic /*= FALSE*/)
    111113{
    112114  pi->libname = (char *)malloc(strlen(libname)+1);
  • Singular/utils.h

    r889f6e r73a0cd  
    11/*
    22 */
    3 
    4 typedef short BOOLEAN;
    53
    64#ifndef FALSE
     
    1210#endif
    1311
    14 class procinfo;
    15 typedef procinfo *         procinfov;
    16 
    17 class proc_singular
    18 {
    19 public:
    20   long   proc_start;       // position where proc is starting
    21   long   def_end;          // position where proc header is ending
    22   long   help_start;       // position where help is starting
    23   long   help_end;         // position where help is starting
    24   long   body_start;       // position where proc-body is starting
    25   long   body_end;         // position where proc-body is ending
    26   long   example_start;    // position where example is starting
    27   long   proc_end;         // position where proc is ending
    28   int    proc_lineno;
    29   int    body_lineno;
    30   int    example_lineno;
    31   char   *body;
    32   long  help_chksum;
    33 };
    34 
    35 struct proc_object
    36 {
    37   int (*function)( void );
    38 };
    39 
    40 union uprocinfodata;
    41 
    42 union uprocinfodata
    43 {
    44 public:
    45   proc_singular  s;        // data of Singular-procedure
    46   struct proc_object    o; // pointer to binary-function
    47 };
    48 
    49 typedef union uprocinfodata procinfodata;
    50 
    51 typedef enum { LANG_NONE, LANG_SINGULAR, LANG_C, LANG_MAX } language_defs;
    52 
    53 class procinfo
    54 {
    55 public:
    56   char          *libname;
    57   char          *procname;
    58   language_defs language;
    59   short         ref;
    60   char          is_static;        // if set, proc not accessible for user
    61   procinfodata  data;
    62 };
    63 
    64 
    65 typedef void * idhdl;
    66 
Note: See TracChangeset for help on using the changeset viewer.