Changeset 4853
- Timestamp:
- 12/08/08 09:09:02 (4 years ago)
- Location:
- trunk/src/target/opkg
- Files:
-
- 3 edited
-
libopkg/active_list.h (modified) (1 diff)
-
tests/Makefile.am (modified) (2 diffs)
-
tests/opkg_active_list_test.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/opkg/libopkg/active_list.h
r4852 r4853 26 26 char walked; 27 27 struct active_list *depended; 28 } __attribute__((packed));28 }; 29 29 30 30 struct active_list * active_list_next(struct active_list *head, struct active_list *ptr); -
trunk/src/target/opkg/tests/Makefile.am
r4428 r4853 2 2 3 3 #noinst_PROGRAMS = opkg_hash_test opkg_extract_test 4 noinst_PROGRAMS = libopkg_test 4 noinst_PROGRAMS = libopkg_test opkg_active_list_test 5 5 6 6 #opkg_hash_test_LDADD = $(top_builddir)/libbb/libbb.la $(top_builddir)/libopkg/libopkg.la … … 12 12 #opkg_extract_test_CFLAGS = $(ALL_CFLAGS) -I$(top_srcdir) 13 13 14 opkg_active_list_test_LDADD = $(top_builddir)/libopkg/active_list.o 15 opkg_active_list_test_SOURCES = opkg_active_list_test.c 16 opkg_active_list_test_CFLAGS = $(ALL_CFLAGS) -I$(top_srcdir) 17 14 18 libopkg_test_LDADD = $(top_builddir)/libopkg/libopkg.la 15 19 libopkg_test_SOURCE = libopkg_test.c -
trunk/src/target/opkg/tests/opkg_active_list_test.c
r4852 r4853 1 /* opkg_active_list.c - the opkg package management system 1 2 2 /* 3 ïŒ--A---B----C----D-----E----F 4 | |__k---L 5 | |_ N 6 |__ G ---H ---I---J 7 |_M |_O 3 Tick Chen <tick@openmoko.com> 8 4 9 Then the sequence will be 10 G M H I O J A B K N L C D E F 5 Copyright (C) 2008 Openmoko 6 7 This program is free software; you can redistribute it and/or 8 modify it under the terms of the GNU General Public License as 9 published by the Free Software Foundation; either version 2, or (at 10 your option) any later version. 11 12 This program is distributed in the hope that it will be useful, but 13 WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 General Public License for more details. 11 16 */ 17 12 18 13 19 #include <stdlib.h> 14 20 #include <libopkg/active_list.h> 21 #include <active_list.h> 15 22 #include <stdio.h> 16 23 … … 18 25 char *str; 19 26 struct active_list list; 20 } __attribute__((packed));27 }; 21 28 22 29 struct active_test *active_test_new(char *str) { … … 34 41 } 35 42 43 /* 44 ïŒ--A---B----C----D-----E----F 45 | |__k---L 46 | |_ N 47 |__ G ---H ---I---J 48 |_M |_O 49 50 Then the sequence will be 51 G M H I O J A B K N L C D E F 52 */ 36 53 void make_list(struct active_list *head) { 37 54 struct active_test *A = active_test_new("A");
Note: See TracChangeset
for help on using the changeset viewer.
