Freeciv-3.1: /fast/freeciv/nightly/S3_1/utility/iterator.c File Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Functions
iterator.c File Reference
`#include "shared.h"`
`#include "iterator.h"`

Go to the source code of this file.

## Functions

static void | invalid_iter_next (struct iterator *it)
static void * | invalid_iter_get (const struct iterator *it)
static bool | invalid_iter_valid (const struct iterator *it)
struct iterator * | invalid_iter_init (struct iterator *it)

## Function Documentation

## ◆ invalid_iter_get()

static void * invalid_iter_get | ( | const struct iterator * | it | ) |

static

'get' function implementation for an "invalid" iterator.

Definition at line 34 of file iterator.c.

Referenced by invalid_iter_init().

## ◆ invalid_iter_init()

struct iterator * invalid_iter_init | ( | struct iterator * | it | ) |

Initializes the iterator vtable so that generic_iterate assumes that the iterator is invalid.

Definition at line 51 of file iterator.c.

Referenced by genhash_iter_init_common(), and startpos_iter_init().

## ◆ invalid_iter_next()

static void invalid_iter_next | ( | struct iterator * | it | ) |

static

'next' function implementation for an "invalid" iterator.

Definition at line 26 of file iterator.c.

Referenced by invalid_iter_init().

## ◆ invalid_iter_valid()

static bool invalid_iter_valid | ( | const struct iterator * | it | ) |

static

'valid' function implementation for an "invalid" iterator.

Definition at line 42 of file iterator.c.

Referenced by invalid_iter_init().