Panu Matilainen
35052b9623
Add an enhanced argvSplitString() function for splitting strings to argv's
...
- Returns the newly created argv instead of useless "this always returns 0"
- By default make a "real" split, including empty strings
- Flags argument allows controlling behavior, for now only flag is to
preserve argvSplit() behavior but leaves room for future enhancements
such as quoted splitting etc
2010-03-15 11:54:55 +02:00
Panu Matilainen
0c15e5feb3
Include <stdlib.h> as necessary instead of system.h
...
- also loose the related ancient compatibility goo
2010-01-05 15:04:20 +02:00
Jindrich Novy
194b6a5c2a
Check arg in argvJoin() before dereferencing
2009-06-23 11:02:51 +02:00
Jindrich Novy
e22ee46476
Remove alloca() from argv.c
2008-04-28 15:42:18 +02:00
Panu Matilainen
2c0f7b54ad
Add argvJoin() for combining an argv array into a string
2008-04-18 14:59:03 +03:00
Panu Matilainen
900cbb7d79
Add argvAddNum() for adding integers to ARGV_t arrays
2008-04-14 16:21:40 +03:00
Panu Matilainen
08375fa2bc
Add argvNew() to create an empty argv array
...
- yes it's silly ;)
2008-04-14 15:58:10 +03:00
Panu Matilainen
a70823b998
argvPrint() doesn't modify argv, make it const
2008-04-07 12:35:37 +03:00
Panu Matilainen
4e0ab74d8d
Add ARGI_const_t, use where appropriate
2008-04-07 12:34:07 +03:00
Panu Matilainen
c29adcee80
ARGV_t const pendantry
...
- const on typedef'ed ARGV_t doesn't mean a thing, add a new,
(exec* compatible) ARGV_const_t and use where appropriate consistently in
argv.h, rpmcli.h etc
- popt's argv const is the wrong way around for exec() family, add explicit
ARGV_t casts on popGetArgs() uses where needed
- compiler silence, aaahh...
2008-04-07 12:19:58 +03:00
Panu Matilainen
d728ec28dc
Remove ARGstr_t typedef, it serves no purpose
...
- argv strings are just regular strings, the structure is what's special
2008-04-07 12:19:41 +03:00
Panu Matilainen
9ce13e09ef
Switch to <rpm/foo.h> style for public headers
...
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Ralf Corsépius
abeea80a38
Use #include <x.h> syntax to include public headers.
2007-11-23 06:46:19 +01:00
Ralf Corsépius
f507baed1f
Include "argv.h" instead of <argv.h>.
2007-10-28 06:43:04 +01:00
Panu Matilainen
154a7f7603
Move _free() into system.h for now
...
- get rid of dozen _free() definitions
- get _free() out of public headers
2007-09-20 15:37:48 +03:00
Ralf Corsépius
f982bbaa79
Remove splint tags.
2007-09-11 16:48:54 +02:00
Panu Matilainen
049674696d
Remove const type-qualifiers from function return types everywhere.
...
They're meaningless in C and cause tonne of build warnings.
2007-07-10 12:15:43 +03:00
jbj
268376a208
Rescusitate doxygen file manifest.
...
CVS patchset: 5968
CVS date: 2002/12/24 17:06:35
2002-12-24 17:06:35 +00:00