Stefan Rueger
114954fbf7
Simplify str_set_vid_pid_serno()
2026-06-18 12:07:37 +01:00
Stefan Rueger
05ba04e2f7
Add str_set_vid_pid_serno() function
2026-06-17 17:20:45 +01:00
stefanrueger
a6553e80d3
Sharpen test for bus/device number
2025-10-23 13:39:40 +02:00
stefanrueger
881c8f80aa
Provide str_busdev_eq() function
2025-10-21 13:58:24 +02:00
stefanrueger
a87303c5a4
Provide configs parameter for urboot:...
2025-04-25 18:24:44 +02:00
stefanrueger
13fcf55fe2
Provide urboot: autogenerated files
2025-04-22 20:46:44 +02:00
Stefan Rueger
43fc4ff81f
Silence compiler warnings
2024-08-23 23:30:08 +01:00
Stefan Rueger
b49fe93402
Enlarge set of special shell characters
2024-08-21 23:25:36 +01:00
Stefan Rueger
da4de26c5f
Provide str_quote_bash() and str_ccsharg()
2024-08-21 17:05:43 +01:00
Stefan Rueger
cdc0b9f0d8
Provide str_ccaddress()
2024-08-21 15:59:52 +01:00
Stefan Rueger
347ca085c3
Change spacing around parentheses
2024-08-18 15:29:52 +01:00
Stefan Rueger
61df966924
Reformat spacing/comments in src/strutil.c
2024-08-18 01:54:27 +01:00
Stefan Rueger
e230d8898e
Fix filename for stdout
2024-08-15 13:09:52 +01:00
Stefan Rueger
7d843c4b0c
Provide str_asciiname()
2024-08-07 00:23:59 +01:00
Stefan Rueger
ccc856533f
Provide str_ccpgmids() function
2024-08-04 19:50:43 +01:00
Stefan Rueger
1e1ec0bdad
Silence compiler warning
2024-08-01 01:25:44 +01:00
Stefan Rueger
cf0822bb71
Update look and feel
2024-08-01 01:17:24 +01:00
Stefan Rueger
f5117fffe0
Merge branch 'avrdudes:main' into signature
2024-07-31 20:47:20 +01:00
Stefan Rueger
823118c0ba
Make main avrdude run less verbose
2024-07-31 16:08:17 +01:00
Stefan Rueger
d58ad3365c
Move from callbacks to table-driven disassembly
2024-07-22 02:20:54 +01:00
Stefan Rueger
99bd83c186
Suppress overzealous compiler warnings
2024-07-14 19:27:04 +01:00
Stefan Rueger
43c915aca3
Skip parts with all 0xff/0x00 signature
2024-07-14 19:13:45 +01:00
Stefan Rueger
31bed52080
Consider prog_modes in str_ccmcunames_signature()
2024-07-14 17:59:40 +01:00
Stefan Rueger
dab725a343
Provide str_infilename() and str_outfilename()
2024-07-01 00:52:30 +01:00
Stefan Rueger
3722abccd4
Provide str_ccmcunames_signature()
2024-06-30 22:39:53 +01:00
Stefan Rueger
76353b8218
Provide str_is_in_list()
2024-06-25 14:33:00 +01:00
Stefan Rueger
9bf11fd67a
Make sigs argument of str_mcunames_signature() const
2024-06-23 20:38:20 +01:00
Stefan Rueger
b366078e6a
Provide str_mcunames_signature()
2024-06-19 00:27:26 +01:00
Stefan Rueger
9f8eeaa76d
Provide string trim functions
2024-06-17 10:53:57 +01:00
Stefan Rueger
693f5e60bd
Provide str_numc(str, c)
2024-06-16 23:06:12 +01:00
Stefan Rueger
55f6ee67c0
s/\bis_outside_int64_t\b/is_outside_int64/g
2024-05-18 01:36:51 +01:00
Stefan Rueger
3dcc51f5c1
Provide str_ccstrdup() to create a temporary string in closed-circuit space
2024-05-10 19:13:38 +01:00
Stefan Rueger
befcc6cf3d
Provide and use str_ccprintf() for temporary strings in closed-circuit space
2024-05-10 18:38:28 +01:00
Stefan Rueger
500ab6a460
Rope str_sprintf() into mmt_...() family of functions
2024-05-10 18:22:57 +01:00
Stefan Rueger
de82f8f7e9
Comment use of static variable as r/o cache
2024-05-10 17:58:50 +01:00
Stefan Rueger
0bc312a9cc
Rewrite str_interval() as str_ccinterval() removing static buffer
2024-05-10 17:56:27 +01:00
Stefan Rueger
366d9bb66e
Fix argument type for str_sprintf()
2024-05-10 17:18:27 +01:00
Stefan Rueger
e85ecfa503
Utilise is_memset() in avrcache/developer_opts
2024-05-10 13:07:22 +01:00
stefanrueger
b3175d0820
Utilise magic memory tree interface for strutil.c
2024-04-25 14:27:46 +00:00
stefanrueger
d5af013cc2
Provide str_frq() returning malloc'd frequency string with unit
2024-04-25 14:15:20 +00:00
Hans Ulrich Niedermann
9616b3709c
Look for generated ac_cfg.h in builddir first
...
As it can happen that there is a leftover `src/ac_cfg.h` when
running an out of tree cmake build (you might have run `cmake .`
or `./src/bootstrap`), the out of tree cmake build must look
for `ac_cfg.h` in its builddir first (e.g. `build_linux/src/`).
Otherwise the cmake build picks up and uses whatever data happens
to be in `src/ac_cfg.h`.
Both the MSVC and GCC C processors are documented to look in the
location of the `#include` directive for the included file first
for double quoted includes, so the old `#include "ac_cfg.h"` was
exactly the wrong thing to do. clang probably does the same, and
ISO C specifies the sequence of places to look for include files
as implementation defined.
So this changes all occurrences of `#include "ac_cfg.h"` to
`#include <ac_cfg.h>` which follows the sequence of `-I` or `/I`
directives as cmake builds add via `include_directories` or
`target_include_directories`.
Fixes: https://github.com/avrdudes/avrdude/issues/1706
2024-02-26 00:31:22 +01:00
stefanrueger
5277e384af
Harden against port string being NULL
2024-02-22 15:29:22 +13:00
Hans
62b15d205e
Suggest programmers using weighted Damerau-Levenshtein #1593
...
* Add Damerau-Levenshtein algorithm
* Provide weighted Damerau-Levenshtein distance
* Suggest programmers using weighted Damerau-Levenshtein distance
* Only suggest compatible programmers
* Accept unique initial string for programmer name
* Only suggest part-compatible programmers for initial partial matches
---------
Co-authored-by: stefanrueger <stefan.rueger@urclocks.com >
2023-12-18 14:03:21 +13:00
stefanrueger
7b64287fba
Provide str_matched_by(), str_casematched_by(), str_is_pattern()
2023-11-27 00:11:01 +13:00
Stefan Rueger
2be7f7e527
Refer to memory rather than memory type
2023-10-27 00:28:29 +01:00
Stefan Rueger
26aedba188
Rename memtype to memstr, memchr or mtype
...
The name memtype can mean different things in the AVRDUDE src.
Mostly it means the name string of the memory, eg, "flash" or
"eeprom"; sometimes it is a character designating a memory, eg, 'E'
for "eeprom"; and yet at other times it means a programmer-defined
memory type, eg, MTYPE_BOOT_FLASH. The occurrences of memtype in
the code have now neen renamed appropriately.
2023-10-25 00:05:25 +01:00
Hans
0be6568b76
Add serial port discovery ( #1498 )
...
Co-authored-by: Stefan Rueger <stefan.rueger@urclocks.com >
2023-09-22 23:21:57 +01:00
Stefan Rueger
99ac48f106
Add R-base numbers
2023-06-10 13:10:15 +01:00
Stefan Rueger
dc8268cc34
Provide str_fgets()
...
Reads a potentially long line and returns it in a malloc'd buffer.
2023-06-10 10:29:02 +01:00
Stefan Rueger
4a7d140b08
Move update_...() printing convenience functions to strutil.c and rename to str_...()
2023-05-31 22:50:27 +01:00