Blame examples/.codingcheck

Packit Service c5cf8c
#
Packit Service c5cf8c
# We allow these routines for the example programs 
Packit Service c5cf8c
%exampleRoutines = ( 
Packit Service c5cf8c
	'printf' => sys, 'fprintf' => sys , 'sprintf' => sys, 'vprintf' => sys,
Packit Service c5cf8c
	'strcpy' => sys, 'strncpy' => sys, 'strcat' => sys, 
Packit Service c5cf8c
	'malloc' => sys, 'free' => sys, 'calloc' => sys, 'strdup' => sys,
Packit Service c5cf8c
	'assert' => sys,
Packit Service c5cf8c
	);
Packit Service c5cf8c
&PushAllowFuncNames( "exampleRoutines", "tree", "add" );
Packit Service c5cf8c
Packit Service c5cf8c
# Allow #ifdef DEBUG in the examples
Packit Service c5cf8c
%exampleDefines = ( 'DEBUG' => 1 );
Packit Service c5cf8c
if (defined(&PushDefinesNames)) {
Packit Service c5cf8c
   &PushDefinesNames( "exampleDefines", "tree", "add" );
Packit Service c5cf8c
}
Packit Service c5cf8c
Packit Service c5cf8c
#
Packit Service c5cf8c
# Tell the preamble code not to complain about missing mode comments
Packit Service c5cf8c
&PreambleCheckMode( 0 );
Packit Service c5cf8c
Packit Service c5cf8c
1;