コード例 #1
0
ファイル: test_fixed_usps.c プロジェクト: jeremycole/libmygis
int main(int argc, char **argv)
{
  FIXED *fixed;
  RECORD *record;

  DBUG_ENTER("main");
  DBUG_PROCESS(argv[0]);
  DBUG_PUSH("d:t");

  if(!(fixed = fixed_init(0)))
  {
    fprintf(stderr, "Couldn't allocate FIXED\n");
    exit(1);
  }

  fixed_options(fixed)->gap = 1;

  fixed_file_def(fixed, usps_state, 36);

  fixed_dump(fixed);

  fixed_open(fixed, argv[1], 'r');
  while(record = fixed_read_next(fixed))
  {
    record_dump(record);
    record_free(record);
  }

  fixed_close(fixed);

  fixed_free(fixed);

  DBUG_RETURN(0);
}
コード例 #2
0
ファイル: continuation.c プロジェクト: simonask/snow
void snow_continuation_cleanup(SnContinuation* cc)
{
	ASSERT(!cc->running);
	
	fixed_free(&stack_alloc, cc->stack_lo);
	cc->stack_lo = NULL;
	cc->stack_hi = NULL;
}