MCPcopy Create free account
hub / github.com/NetHack/NetHack / get_previous

Function get_previous

win/X11/winmesg.c:265–276  ·  view source on GitHub ↗

* Return the element in the circular linked list just before the given * element. */

Source from the content-addressed store, hash-verified

263 * element.
264 */
265static struct line_element *
266get_previous(struct line_element *mark)
267{
268 struct line_element *curr;
269
270 if (!mark)
271 return (struct line_element *) 0;
272
273 for (curr = mark; curr->next != mark; curr = curr->next)
274 ;
275 return curr;
276}
277
278/*
279 * Set the information buffer size to count lines. We do this by creating

Callers 1

set_circle_bufFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected