diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-31 18:03:05 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-31 18:03:05 -0400 |
| commit | a0ac652cd1eebdc42425b34f1685f8cb20cb4eea (patch) | |
| tree | b41c99f8f0fa62eb03d1f5df44d2c501cd5f2976 /examples/log | |
| parent | a571ccffd795a595e990a3405dcf977aafc33c6c (diff) | |
Simplify quotes by limiting to `,',"
Diffstat (limited to 'examples/log')
| -rw-r--r-- | examples/log/log.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/log/log.tm b/examples/log/log.tm index 4b7893fd..2798b7ae 100644 --- a/examples/log/log.tm +++ b/examples/log/log.tm @@ -6,13 +6,13 @@ timestamp_format := CString("%F %T") logfiles : @|Path| func _timestamp(->Text) - c_str := C_code:CString( + c_str := C_code:CString` char *str = GC_MALLOC_ATOMIC(20); time_t t; time(&t); struct tm *tm_info = localtime(&t); strftime(str, 20, "%F %T", tm_info); str - ) + ` return c_str.as_text() func info(text:Text, newline=yes) |
