/usr/include/sfcCommon/genericlist.h is in libsfcutil0-dev 1.0.1-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | /*
* genericList.h
*
* (C) Copyright IBM Corp. 2005
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
* CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
*
* You can obtain a current copy of the Eclipse Public License from
* http://www.opensource.org/licenses/eclipse-1.0.php
*
* Author: Keith Pomakis <pomaki@pobox.com>
* Contributions: Adrian Schuur <schuur@de.ibm.com>
*
* Description:
*
* list implementation.
*
*/
/************************************************************************
*************************************************************************
** **
** Generic List Library **
** **
** by Keith Pomakis **
** kppomaki@jeeves.uwaterloo.ca **
** **
** Spring, 1994 **
** **
*************************************************************************
************************************************************************/
#ifndef GENERIC_LIST_DEFINED
#define GENERIC_LIST_DEFINED
#include "utilft.h"
#include <string.h>
typedef struct GLE_struct {
void *pointer;
struct GLE_struct *previous;
struct GLE_struct *next;
} Generic_list_element;
typedef struct {
Generic_list_element *current;
Generic_list_element pre_element,
post_element,
deleted_element;
int (*lt) (void *a, void *b);
unsigned int num_of_elements;
} Generic_list_info;
typedef struct {
Generic_list_info *info;
} Generic_list;
#define Generic_stack Generic_list
#define Generic_queue Generic_list
/****************************************************************************/
/*
* Stack operations
*/
#define initialize_stack initialize_list
#define destroy_stack destroy_list
#define push add_to_beginning
#define pop remove_from_beginning
#define peek_at_top peek_at_beginning
#define copy_stack copy_list
/*
* Queue operations
*/
#define initialize_queue initialize_list
#define destroy_queue destroy_list
#define enqueue add_to_end
#define dequeue remove_from_beginning
#define dequeue_all remove_all
#define peek_at_head peek_at_beginning
#define peek_at_tail peek_at_end
#define copy_queue copy_list
#endif /* GENERIC_LIST_DEFINED */
/* MODELINES */
/* DO NOT EDIT BELOW THIS COMMENT */
/* Modelines are added by 'make pretty' */
/* -*- Mode: C; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
/* vi:set ts=2 sts=2 sw=2 expandtab: */
|