Paul Beckingham
d27cb75ec1
util: Corrected comment
2016-05-08 16:36:25 -04:00
Paul Beckingham
2d20f4d57b
Cleanup: Converted all sprintf to snprintf
2016-02-25 00:19:38 -05:00
Paul Beckingham
549b970e49
Cleanup: Removed redundant processing of OS name
2016-02-24 23:43:23 -05:00
Kent R. Spillner
933b2d8ebe
OpenBSD also provides uuid support directly in its libc, same as FreeBSD.
2016-01-15 12:35:10 -05:00
Paul Beckingham
641d232dea
Copyright: Updated to 2016
2015-12-31 15:06:43 -05:00
Paul Beckingham
5c8b7148b4
Task: Moved include to top of list, per flint++ recommendation
2015-11-01 19:59:10 -05:00
Paul Beckingham
182b5427cd
Lexer: Migrated trim(), trimLeft() and trimRight() from text to Lexer
2015-10-30 11:17:23 -04:00
Paul Beckingham
51def4b12b
Lexer: Migrated commify, ucFirst and lowerCase from text to Lexer
2015-10-30 10:57:14 -04:00
Paul Beckingham
5110a83efa
Cleanup: Corrected object initialization using {}
2015-10-16 08:22:03 -04:00
Paul Beckingham
0772f7ea36
Code Cleanup: Removed unnecessary include
2015-10-03 19:28:40 -04:00
Paul Beckingham
27fd8910ae
TW-1655: Inform "No changes made." when quitting early due to signal
...
- Thanks to Daniel Shahaf.
2015-08-14 17:20:16 -04:00
Paul Beckingham
5914418fb1
Test: Corrected util.cpp/confirm calls to check std::cin::eof
2015-07-29 22:37:59 -04:00
Paul Beckingham
70e4d16768
util: Sends all read input to debug output
2015-07-24 12:51:52 -04:00
Paul Beckingham
18046ae92d
util: Deliberately initializing confirmation responses inside the loop
2015-07-24 12:49:11 -04:00
Paul Beckingham
ff88d9da16
Bug: ::execute concatenates output
...
- The ::execute function concatenates output to the std::string provided, which
is almost never wanted. Now it clears first.
2015-05-25 09:22:14 -04:00
Paul Beckingham
7bbc794d3a
C++11: N2672 Initializer lists
...
- Modified code to use the more compact and readable initializer lists.
2015-05-24 13:03:02 -04:00
Wilhelm Schuermann
8800ad33cf
Util: Minor formatting cleanup of execute()
2015-05-13 20:59:59 +02:00
Paul Beckingham
e74c6963a9
C++11: Cleaned up program framework with range-based for
2015-05-11 17:50:53 -04:00
Paul Beckingham
c346cf9395
Portability: Use fcntl instead of flock
...
- POSIX file locking mechanism, eliminating platform-specific code.
2015-05-02 11:47:39 -04:00
Wilhelm Schuermann
af772f4c49
Util
...
- Closed dangling pipes in execute (), resolving problems when a hook script
forks.
2015-02-22 14:03:30 -05:00
Paul Beckingham
528e72062b
Hooks
...
- Fixed the ::execute function used by Hooks and CmdCalendar to run commands,
by following the convention:
"The first argument, by convention, should point to the file name associated
with the file being executed."
(man execvp)
2015-02-07 14:08:58 -05:00
Paul Beckingham
41003fc78b
Code Cleanup
...
- Removed whitespace at EOL.
2015-01-17 19:05:09 -05:00
Wilhelm Schuermann
d2928dc4e4
TW-1516 Hook input not ended with EOF
...
- Made execute() send EOF when all input is written.
- Minor code cleanup.
2015-01-17 19:04:31 -05:00
Paul Beckingham
b7ad091d00
Updated copyright to 2015
2015-01-01 00:00:41 -05:00
Paul Beckingham
9a95696872
Code Cleanup
...
- Improved white space for readability and style compliance.
2014-11-28 12:15:00 -05:00
Paul Beckingham
8ca096689c
Util
...
- Minor formatting.
2014-10-06 23:10:19 -04:00
Wilhelm Schuermann
d5648b511c
Util
...
- Added includes to make FreeBSD happy.
- Added more error handling.
2014-10-03 14:15:11 -04:00
Wilhelm Schuermann
1fa4c8ff7b
Util
...
- Reimplemented execute(), this time (hopefully) deadlock-proof.
- Added error handling.
2014-10-02 14:50:47 -04:00
Paul Beckingham
5b7e6df00b
Util
...
- The execute() function needed to fill the STDIN pipe before the fork, not
after the fork, so the data is ready before the child process reads.
2014-09-14 17:43:19 -04:00
Paul Beckingham
e15907f3f1
Code Cleanup
...
- Removed unused uti.cpp indentTree function.
2014-09-07 17:32:46 -04:00
Paul Beckingham
adee92a6b9
Code Cleanup
...
- Removed unused util.cpp escape function.
2014-09-07 17:27:50 -04:00
Paul Beckingham
66bb5b3906
Code Cleanup
...
- Removed unused util.cpp encode and decode functions.
2014-09-07 17:25:47 -04:00
Paul Beckingham
bffc7a2ac8
Code Cleanup
...
- Removed unused util.cpp combine function.
2014-09-07 17:14:03 -04:00
Paul Beckingham
4aa79dccfa
Code Cleanup
...
- Removed unused util.cpp round_up_to and burndown_size functions.
2014-09-07 17:10:06 -04:00
Paul Beckingham
4f54578241
Code Cleanup
...
- Removed unused util.cpp compressIds function.
2014-09-07 16:57:05 -04:00
Paul Beckingham
8a31ccabdc
Code Cleanup
...
- Removed unused util.cpp delay function.
2014-09-07 16:48:42 -04:00
Paul Beckingham
be104ee7c4
Code Cleanup
...
- Removed unused util.cpp confirm3 function.
2014-09-07 16:46:20 -04:00
Paul Beckingham
7c8432d162
Code Cleanup
...
- util.cpp execute was assuming execvp was returning before freeing memory,
which is a waste of time.
2014-09-06 22:28:04 -04:00
Paul Beckingham
ebd7bf99f0
Portability
...
- Moved stdio.h to be (almost) first in the include order, to prevent and other
include from in turn including stdio.h without first defining _WITH_GETLINE.
2014-08-31 00:05:08 -04:00
Paul Beckingham
7a765b186e
Portability
...
- Changed include ordering, for FreeBSD.
2014-08-30 23:44:51 -04:00
Paul Beckingham
df744d5c98
Code Cleanup
...
- Removed unused util.cpp ::execute variant.
2014-08-30 23:43:58 -04:00
Paul Beckingham
284146162f
Portability
...
- Added _WITH_GETLINE for FreeBSD.
2014-08-30 23:38:11 -04:00
Paul Beckingham
07b7fe4541
Util
...
- Added new 'execute' function that provides input and captures output.
2014-08-30 23:31:23 -04:00
Paul Beckingham
820c327a81
Util
...
- Made arg vector const.
- Applied coding conventions.
2014-08-30 23:27:49 -04:00
Paul Beckingham
16fc71e2ef
Code Cleanup
...
- Readability.
2014-04-16 16:56:45 -04:00
Paul Beckingham
523dce8f32
Code Cleanup
...
- Standardized headers.
2014-02-01 14:33:37 -05:00
Paul Beckingham
8ed92ca498
Copyright
...
- Bumped copyright to 2014, ready for release.
2014-01-01 13:32:22 -05:00
Paul Beckingham
04e0df6965
FreeBSD
...
- Converted __FreeBSD__ to FREEBSD for consistency.
2013-09-14 11:51:56 -04:00
Pietro Cerutti
da7cc6eed7
Fix uuid on FreeBSD
...
In FreeBSD, just as in DARWIN, uuid functions are in libc and no external libuuid is required.
The API is quite different from Linux's though, so a different implementation of uuid () (util.cpp) is needed.
2013-09-14 11:38:47 -04:00
Martin Natano
fcfd50bd25
require libuuid
...
- require libuuid at build time and remove insufficiently seeded
replacement for uuid()
2013-07-20 15:52:42 -04:00