1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-25 06:03:31 +01:00

Rearranged the structure of the WINGs subdirectory.

Created Documentation, Examples and Tests subdirectories.

Run update-autoconf after this update.
This commit is contained in:
dan
2000-09-13 20:19:05 +00:00
parent 4ad4480c55
commit 7832b2a4cf
26 changed files with 94 additions and 39 deletions

View File

@@ -0,0 +1,3 @@
Makefile Makefile.in
.psrc .inslog2 tca.map tca.log
*.rpt

View File

@@ -0,0 +1,6 @@
## automake input file for WINGs - Documentation
AUTOMAKE_OPTIONS = no-dependencies
EXTRA_DIST = wm.png wm.html

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -0,0 +1,3 @@
Makefile Makefile.in
.psrc .inslog2 tca.map tca.log
*.rpt

View File

@@ -0,0 +1,27 @@
## automake input file for WINGs - Examples
AUTOMAKE_OPTIONS = no-dependencies
noinst_PROGRAMS = connect fontl puzzle
LDADD= $(top_builddir)/WINGs/libWINGs.a $(top_builddir)/wrlib/libwraster.la \
@LIBRARY_SEARCH_PATH@ @GFXLIBS@ @XLIBS@ \
-lm @LIBPL@
fontl_DEPENDENCIES = $(top_builddir)/WINGs/libWINGs.a
puzzle_DEPENDENCIES = $(top_builddir)/WINGs/libWINGs.a
connect_DEPENDENCIES = $(top_builddir)/WINGs/libWUtil.a
connect_LDADD = $(top_builddir)/WINGs/libWUtil.a @LIBRARY_SEARCH_PATH@ \
@NETLIBS@ @LIBPL@
INCLUDES = -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
-DRESOURCE_PATH=\"$(datadir)/WINGs\" @HEADER_SEARCH_PATH@ -DDEBUG

View File

@@ -2,7 +2,7 @@
AUTOMAKE_OPTIONS = no-dependencies
SUBDIRS = Resources
SUBDIRS = . Documentation Resources Examples Tests
@@ -12,9 +12,6 @@ include_HEADERS = WINGs.h WUtil.h WINGsP.h
bin_SCRIPTS = get-wings-flags get-wutil-flags
noinst_PROGRAMS = wtest wmquery wmfile fontl testmywidget testcolorpanel\
connect puzzle testtext
lib_LIBRARIES = libWINGs.a libWUtil.a
@@ -23,16 +20,7 @@ LDADD= libWINGs.a $(top_builddir)/wrlib/libwraster.la\
-lm @LIBPL@
testmywidget_SOURCES = testmywidget.c mywidget.c mywidget.h
wtest_DEPENDENCIES = libWINGs.a
testtext_DEPENDENCIES = libWINGs.a
connect_LDADD = libWUtil.a @LIBRARY_SEARCH_PATH@ @NETLIBS@ @LIBPL@
EXTRA_DIST = logo.xpm BUGS wm.png upbtn.xpm wm.html
EXTRA_DIST = BUGS
# wbutton.c
libWINGs_a_SOURCES = \

3
WINGs/Tests/.cvsignore Normal file
View File

@@ -0,0 +1,3 @@
Makefile Makefile.in
.psrc .inslog2 tca.map tca.log
*.rpt

24
WINGs/Tests/Makefile.am Normal file
View File

@@ -0,0 +1,24 @@
## automake input file for WINGs - Tests
AUTOMAKE_OPTIONS = no-dependencies
noinst_PROGRAMS = wtest wmquery wmfile testmywidget testcolorpanel testtext
LDADD= $(top_builddir)/WINGs/libWINGs.a $(top_builddir)/wrlib/libwraster.la \
@LIBRARY_SEARCH_PATH@ @GFXLIBS@ @XLIBS@ \
-lm @LIBPL@
testmywidget_SOURCES = testmywidget.c mywidget.c mywidget.h
wtest_DEPENDENCIES = $(top_builddir)/WINGs/libWINGs.a
testtext_DEPENDENCIES = $(top_builddir)/WINGs/libWINGs.a
EXTRA_DIST = logo.xpm upbtn.xpm
INCLUDES = -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
-DRESOURCE_PATH=\"$(datadir)/WINGs\" @HEADER_SEARCH_PATH@ -DDEBUG

View File

@@ -1082,7 +1082,7 @@ int main(int argc, char **argv)
testDragAndDrop(scr);
testFontPanel(scr);
#if 0
#if 0
testScrollView(scr);
testButton(scr);

View File

@@ -352,7 +352,7 @@ extern const WMHashTableCallbacks WMStringPointerHashCallbacks;
*
* Cons:
* A little slower [O(n)] for insertion/deletion of elements that
* arent in the end
* aren't in the end
* Element indexes with large difference will cause large holes
*/
#if 0

View File

@@ -20,27 +20,27 @@ typedef struct W_ArrayBag {
} W_ArrayBag;
static int getItemCount(WMBag *bag);
static int getItemCount(WMBag *bag);
static int appendBag(WMBag *bag, WMBag *appendedBag);
static int putInBag(WMBag *bag, void *item);
static int insertInBag(WMBag *bag, int index, void *item);
static int removeFromBag(WMBag *bag, void *item);
static int deleteFromBag(WMBag *bag, int index);
static void* getFromBag(WMBag *bag, int index);
static int firstInBag(WMBag *bag, void *item);
static int countInBag(WMBag *bag, void *item);
static void* replaceInBag(WMBag *bag, int index, void *item);
static void* getFromBag(WMBag *bag, int index);
static int firstInBag(WMBag *bag, void *item);
static int countInBag(WMBag *bag, void *item);
static void* replaceInBag(WMBag *bag, int index, void *item);
static int sortBag(WMBag *bag, int (*comparer)(const void*, const void*));
static void emptyBag(WMBag *bag);
static void freeBag(WMBag *bag);
static void mapBag(WMBag *bag, void (*function)(void*, void*), void *data);
static int findInBag(WMBag *bag, int (*match)(void*));
static void* first(WMBag *bag, void **ptr);
static void* last(WMBag *bag, void **ptr);
static void* next(WMBag *bag, void **ptr);
static void* previous(WMBag *bag, void **ptr);
static void* iteratorAtIndex(WMBag *bag, int index, WMBagIterator *ptr);
static int indexForIterator(WMBag *bag, WMBagIterator ptr);
static void emptyBag(WMBag *bag);
static void freeBag(WMBag *bag);
static void mapBag(WMBag *bag, void (*function)(void*, void*), void *data);
static int findInBag(WMBag *bag, int (*match)(void*));
static void* first(WMBag *bag, void **ptr);
static void* last(WMBag *bag, void **ptr);
static void* next(WMBag *bag, void **ptr);
static void* previous(WMBag *bag, void **ptr);
static void* iteratorAtIndex(WMBag *bag, int index, WMBagIterator *ptr);
static int indexForIterator(WMBag *bag, WMBagIterator ptr);
static W_BagFunctions arrayFunctions = {
@@ -69,7 +69,7 @@ static W_BagFunctions arrayFunctions = {
};
#define ARRAY ((W_ArrayBag*)bag->data)
#define ARRAY ((W_ArrayBag*)(bag->data))
#define I2O(a, i) ((a)->base + i)
@@ -235,7 +235,6 @@ getFromBag(WMBag *bag, int index)
}
static int
firstInBag(WMBag *bag, void *item)
{