Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
6775a389
Commit
6775a389
authored
May 24, 2017
by
Uwe Schulzweida
Browse files
operatorPrintAll: remove old implementation.
parent
5d15c0d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules.cc
View file @
6775a389
...
...
@@ -1249,44 +1249,6 @@ void operatorPrintAll(void) {
}
std
::
cerr
<<
std
::
endl
;
/* old implementation for comparison only
for(auto alias : opalias){}
//-0----------
int i, j, nbyte, nop = 0;
const char *opernames[4096];
FILE *pout = stderr;
for ( i = 0; i < NumModules; i++ )
{
if ( Modules[i].mode )
{
j = 0;
while ( Modules[i].operators[j] )
opernames[nop++] = Modules[i].operators[j++];
}
}
// Add operator aliases
for ( i = 0; i < nopalias; i++ )
{
opernames[nop++] = opalias[i][0];
}
qsort(opernames, nop, sizeof(char *), cmpname);
nbyte = fprintf(pout, " ");
for ( i = 0; i < nop; i++ )
{
if ( nbyte > 85 )
{
fprintf(pout, "\n");
nbyte = fprintf(pout, " ");
}
nbyte += fprintf(pout, " %s", opernames[i]);
}
fprintf(pout, "\n");
*/
}
#ifdef CUSTOM_MODULES
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment