MCPcopy Create free account
hub / github.com/Singular/Singular / StringSetS

Function StringSetS

libpolys/reporter/reporter.cc:128–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void StringSetS(const char *st)
129{
130 feBuffer_save[feBuffer_cnt]=feBuffer;
131 feBuffer=(char*)omAlloc0(INITIAL_PRINT_BUFFER);
132 feBufferLength_save[feBuffer_cnt]=feBufferLength;
133 feBufferLength=INITIAL_PRINT_BUFFER;
134 feBufferStart_save[feBuffer_cnt]=feBufferStart;
135 feBufferStart=feBuffer;
136 feBuffer_cnt++;
137 assume(feBuffer_cnt<8);
138 int l=strlen(st);
139 long more;
140 if (l>feBufferLength)
141 {
142 more = ((l + (4*1024-1))/(4*1024))*(4*1024);
143 feBuffer=(char *)omReallocSize((ADDRESS)feBuffer,feBufferLength,
144 more);
145 feBufferLength=more;
146 }
147 strcpy(feBuffer,st);
148 feBufferStart=feBuffer+l;
149}
150
151char * StringEndS()
152{

Callers 15

nrnXExtGcdFunction · 0.85
StringMethod · 0.85
StringAsPrintedMethod · 0.85
getwidMethod · 0.85
pprintMethod · 0.85
hnfMethod · 0.85
nnWriteLongFunction · 0.85
n_PrintFunction · 0.85
nrzMultFunction · 0.85
nrzXExtGcdFunction · 0.85
nrzQuotRemFunction · 0.85
nrzAddFunction · 0.85

Calls 1

omAlloc0Function · 0.85

Tested by 15

PrintFunction · 0.68
mainFunction · 0.68
_2SFunction · 0.68
setUpWorldMethod · 0.68
_2SFunction · 0.68
_2SFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68