int main( int argc, char **argval ) { JOB_DATA job_data; long long cnt = 0; signal( SIGINT, sig_int_handler ); #ifndef _HAVE_MSG_NOSIGNAL_ signal( SIGPIPE, SIG_IGN ); #endif parse_cmd_line( argc, argval, &job_data ); create_payload( &job_data ); if ( job_data.verbose ) { print_job_data( job_data ); } /* if */ cnt = flood_forked( job_data ); //printf( "%s[%d]: Sent %lld packets.\n\n", APPNAME, (int)getpid(), cnt ); free_job_data( &job_data ); drop_hash(); return cnt > 0; } /* main */
void pdfout_data_drop (fz_context *ctx, pdfout_data *data) { switch (data->type) { case SCALAR: drop_scalar (ctx, to_scalar (ctx, data)); break; case ARRAY: drop_array (ctx, to_array (ctx, data)); break; case HASH: drop_hash (ctx, to_hash (ctx, data)); break; default: abort (); } }