Julien Danjou
c00aa8fd5e
util: import a_strhash()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-05 14:44:38 +02:00
Julien Danjou
7cc0b13eae
wibox: move position handling to Lua
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:51:30 +02:00
Julien Danjou
324387bfed
util: remove useless asprintf macro
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 20:22:44 +02:00
Julien Danjou
9d48852fed
util: remove fd_set_close_on_exec()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-18 11:39:06 +02:00
Julien Danjou
d441254412
util: remove a_strsplit()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-07 18:00:55 +02:00
Julien Danjou
9a7381d02a
util: add fd_set_close_on_exec()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-02 13:41:06 +02:00
Maarten Maathuis
6e199bbd76
client, swindow: switch to a more convient definition of geometry
...
- In many places i see people correcting for border width and titlebars.
- This new definition is the equivilant of what used to be fullgeometry.
- The internal geometry is now contained to a few functions that few people ever touch.
- This should avoid confusion and make code easier.
- Also protect against several unsigned overflows.
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Julien Danjou
26da80f90a
draw: remove custom markup support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
f188c10fa4
util: precompute funcname in name_func_link
...
This will improve search a bit.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:41 +01:00
Julien Danjou
83eadb46cb
util: check asprintf return
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-10 10:36:39 +01:00
Julien Danjou
7d34f45ed6
util: document xmemdup()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 11:14:56 +02:00
Julien Danjou
5709435392
wibox: rework, merge titlebar
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-26 15:00:42 +02:00
Julien Danjou
2dfde8c181
util: remove off position
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-26 15:00:27 +02:00
Julien Danjou
69d06723df
util: import orientation
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-22 11:11:56 +02:00
Julien Danjou
c8bd181b27
util: strndup really stop and add null termination
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-26 18:07:50 +02:00
Vladimir Kirillov
6fc677c441
util: do not include alloca on OpenBSD
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-23 11:21:17 +02:00
Julien Danjou
8d7f69cf49
util: remove useless position Auto
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-19 17:34:44 +02:00
Konstantin
7ec624cc14
util: fix freebsd support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-25 19:55:19 +02:00
Julien Danjou
903e694611
util: add a_strsplit()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-08 14:07:34 +02:00
Julien Danjou
a816ce0440
util: position_tostr() return const
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-01 16:33:24 +02:00
Julien Danjou
425c8ea635
util: tokenize a_strtobool()
2008-06-23 18:06:00 +02:00
Pierre Habouzit
df89ea2887
Add type and memset safe alloca wrapper.
2008-06-23 16:40:43 +02:00
Julien Danjou
fa2648bf15
Revert "Use gcc to find places needing a a_tokenize call."
...
Not needed anymore.
This reverts commit 7b7af60dcd
.
2008-06-23 15:46:26 +02:00
Julien Danjou
ab5119732d
use more tokenizer, with len
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-23 14:01:33 +02:00
Julien Danjou
f0a01c6131
util: remove useless fuzzy
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-23 13:41:26 +02:00
Pierre Habouzit
7b7af60dcd
Use gcc to find places needing a a_tokenize call.
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-23 07:41:22 +02:00
Julien Danjou
46f03fd6a6
area_t: make it smaller, use arrays instead of lists.
...
Make area_t smaller so that it fits in an uint64_t using 4 {u,}int16_t's
for it. Note that xcb uses the very same structure, so we aren't loosing
any information while remaining very small.
This is better to use arrays in term of:
* memory access when iterating over area_t's;
* allocation because area_t's have no *next/*prev members anymore, which
makes it a tiny structure (8 octets);
* allocation because we allocate area_t's by vector of'em rather than one
by one.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-22 22:09:48 +02:00
Pierre Habouzit
e25a50774b
Add extensible buffers to awesome.
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-22 15:04:09 +02:00
Pierre Habouzit
848a0b1987
add {un,}likely macros
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-22 14:58:37 +02:00
Pierre Habouzit
f055e4a13b
Add p_grow.
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-22 13:30:39 +02:00
Julien Danjou
0fdc03faa4
util: rename eprint() to fatal()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-19 09:45:08 +02:00
Julien Danjou
5773f5eddb
util: remove useless compute_new_value_from_arg()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-19 09:43:08 +02:00
Julien Danjou
9e2ff3f893
[util] Rewrite a_strndup()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-29 09:45:10 +02:00
Julien Danjou
ff8603110a
[util] Add name_func_rlookup()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 16:53:37 +02:00
Julien Danjou
1f046b3c9f
[everything] Switch from libconfuse to Lua
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-20 18:01:15 +02:00
Julien Danjou
c57435c96d
[util] Add a_strtobool() function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:35 +02:00
Julien Danjou
ae1cea061c
[util] Add position_to_str()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:03 +02:00
Julien Danjou
e272000cc6
[util] Change Fuzzy type to fuzzy_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:03 +02:00
Julien Danjou
bd18eb2018
[util] Change Position type to position_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:03 +02:00
Julien Danjou
97dc830db5
[util/rules] Move Fuzzy from rules to util
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:02 +02:00
Nikos Ntarmos
ef60378754
[common] remove and getline and strndup usage
...
There is no getline() on FreeBSD, nor any strndup().
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-19 23:08:18 +02:00
Julien Danjou
098b5d40a5
Cosmetic
2008-03-23 15:52:22 +01:00
Julien Danjou
58402c9641
Add a_strcasecmp() function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:22 +01:00
Julien Danjou
54c2170178
Add Auto value to Position
2008-03-23 15:52:19 +01:00
Julien Danjou
ea88e324a0
First titlebar support
2008-03-23 15:52:18 +01:00
Julien Danjou
8c901c8b1e
Be more verbose about errors and warnings location
...
Print function name and line,
and also print a W: or E: in front of the warn/errors
2008-03-23 15:52:17 +01:00
Julien Danjou
780a9d087a
clean some stuff
2008-01-26 18:00:47 +01:00
Julien Danjou
668702b777
move list.h and util.[ch] to common/
2008-01-21 18:14:59 +01:00