/usr/include/singular/singular/Singular/attrib.h is in libsingular4-dev-common 1:4.1.0-p3+ds-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | #ifndef ATTRIB_H
#define ATTRIB_H
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/*
* ABSTRACT: attributes to leftv and idhdl
*/
#include <string.h>
#include <kernel/structs.h>
#include <omalloc/omallocClass.h>
class sattr;
typedef sattr * attr;
class sattr: public omallocClass
{
public:
inline void Init() { memset(this,0,sizeof(*this)); }
char * name;
void * data;
attr next;
int atyp; /* the type of the attribut, describes the data field
*/
void Print();
attr Copy(); /* copy all arguments */
void * CopyA(); /* copy the data of this attribute */
attr set(char * s, void * data, int t); /* eats s, data */
attr get(const char * s);
void kill(const ring r);
void killAll(const ring r);
};
//void * atGet(idhdl root,const char * name);
//void * atGet(leftv root,const char * name);
void * atGet(idhdl root,const char * name, int t, void *defaultReturnValue = NULL);
void * atGet(leftv root,const char * name, int t);
void atSet(idhdl root,char * name,void * data,int typ);
void atSet(leftv root,char * name,void * data,int typ);
void at_KillAll(idhdl root,const ring r);
void at_KillAll(leftv root,const ring r);
#define atKillAll(H) at_KillAll(H,currRing)
void at_Kill(idhdl root,const char * name,const ring r);
#define atKill(H,A) at_Kill(H,A,currRing)
BOOLEAN atATTRIB1(leftv res,leftv a);
BOOLEAN atATTRIB2(leftv res,leftv a,leftv b);
BOOLEAN atATTRIB3(leftv res,leftv a,leftv b,leftv c);
BOOLEAN atKILLATTR1(leftv res,leftv a);
BOOLEAN atKILLATTR2(leftv res,leftv a,leftv b);
#endif
|