[2876] in BarnOwl Developers
[barnowl/barnowl] d3941a: Use g_strjoinv in owl_global_set_startupargs
daemon@ATHENA.MIT.EDU (noreply@github.com)
Fri Feb 4 15:54:55 2011
Date: Fri, 4 Feb 2011 12:54:53 -0800
To: barnowl-dev@mit.edu
From: noreply@github.com
Branch: refs/heads/master
Home: https://github.com/barnowl/barnowl
Commit: d3941a01cb492fb3533b38832bc7e5afe9064bf2
https://github.com/barnowl/barnowl/commit/d3941a01cb492fb3533b38832bc7e5afe9064bf2
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M global.c
M owl.c
Log Message:
-----------
Use g_strjoinv in owl_global_set_startupargs
It's much nicer than dealing with string lengths, although it does mean
we lose const-correctness because glib just gives up on that with lists
of strings. Also make a copy of the argument list because getopt_long
messes around with argument lists anyway.
Commit: 65c753ef93ac3d532dbc45a70e27a7211166e645
https://github.com/barnowl/barnowl/commit/65c753ef93ac3d532dbc45a70e27a7211166e645
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M tester.c
M util.c
Log Message:
-----------
Use a GPtrArray to manage the growing list in owl_parseline
It's much nicer than dealing with piles of owl_realloc. Also ensure that
our argvs are NULL-terminated so we may used the various *v glib
functions.
Commit: fc7481a95686c8d33884f8169e032ff0919eb62f
https://github.com/barnowl/barnowl/commit/fc7481a95686c8d33884f8169e032ff0919eb62f
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M zephyr.c
Log Message:
-----------
strndup is pretty awesome and doesn't involve adding 5
Commit: dfe5829ce82029e042eebf2adbcbef9042731247
https://github.com/barnowl/barnowl/commit/dfe5829ce82029e042eebf2adbcbef9042731247
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M commands.c
Log Message:
-----------
Be more accurate in allocating argument vector in owl_command_view
50 is a pretty random number.
Commit: d3c318b302b614e2dd871854e076ea0455477083
https://github.com/barnowl/barnowl/commit/d3c318b302b614e2dd871854e076ea0455477083
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M fmtext.c
Log Message:
-----------
Don't stick random NULs when waddnstr exists
Commit: 7e111f4408b99cd75667d6a99ec6e061fdfbd546
https://github.com/barnowl/barnowl/commit/7e111f4408b99cd75667d6a99ec6e061fdfbd546
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M fmtext.c
M owl.h
Log Message:
-----------
Replace owl_fmtext's buffer management with GString
reallocs are hard. Let's go shopping^Wuse GString!
Commit: 9de316d1f49106095ed0f35b0482b74d57eaad42
https://github.com/barnowl/barnowl/commit/9de316d1f49106095ed0f35b0482b74d57eaad42
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M functions.c
Log Message:
-----------
No need to NULL-terminate argument vectors
owl_parseline does it for us now.
Commit: df3a1f46e924bf7f43b5cdc027dd50c55fac679e
https://github.com/barnowl/barnowl/commit/df3a1f46e924bf7f43b5cdc027dd50c55fac679e
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M zephyr.c
Log Message:
-----------
Replace realloc logic in owl_zephyr_getsubs with GString
Commit: 0290b2a4cd040d102677f0e68f12d969d8e98def
https://github.com/barnowl/barnowl/commit/0290b2a4cd040d102677f0e68f12d969d8e98def
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M util.c
Log Message:
-----------
Use GString instead of allocating a giant buffer in owl_parseline
Commit: c6b178299d11350b3d68bd3ee323523f02602b7f
https://github.com/barnowl/barnowl/commit/c6b178299d11350b3d68bd3ee323523f02602b7f
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M zwrite.c
Log Message:
-----------
Use g_strjoinv in parsing zwrite lines
Commit: e3c8332fa85642544dba1222912b77cf6e32ce8c
https://github.com/barnowl/barnowl/commit/e3c8332fa85642544dba1222912b77cf6e32ce8c
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M cmd.c
Log Message:
-----------
Use GString in owl_cmddict_execute_argv
While we're at it, provide a correctly quoted command-line.
Commit: 4d24650f1cf9eb23cc96f30f90f4880a91447aac
https://github.com/barnowl/barnowl/commit/4d24650f1cf9eb23cc96f30f90f4880a91447aac
Author: David Benjamin <davidben@mit.edu>
Date: 2011-02-04 (Fri, 04 Feb 2011)
Changed paths:
M cmd.c
M style.c
M text.c
Log Message:
-----------
Make owl_text_indent return a new string
You can't really use it correctly as it is.