Revision 0f3306a56ebffc3140f662a0b87ab06b4e0363af authored by Emmanuele Bassi on 15 November 2016, 13:34:44 UTC, committed by Emmanuele Bassi on 15 November 2016, 13:34:44 UTC
Instead of copying strings around, we can box them using the g_ref_* API and add reference counting to the char array. Reference counted strings can be used with any string utility function.
1 parent 43ed42e
File | Mode | Size |
---|---|---|
collate | ||
gobject | ||
refcount | ||
.gitignore | -rw-r--r-- | 952 bytes |
Makefile.am | -rw-r--r-- | 4.3 KB |
assert-msg-test.c | -rw-r--r-- | 92 bytes |
assert-msg-test.gdb | -rw-r--r-- | 62 bytes |
asyncqueue-test.c | -rw-r--r-- | 5.8 KB |
atomic-test.c | -rw-r--r-- | 1.7 KB |
bit-test.c | -rw-r--r-- | 2.8 KB |
casefold.txt | -rw-r--r-- | 10.6 KB |
casemap.txt | -rw-r--r-- | 81.6 KB |
child-test.c | -rw-r--r-- | 4.3 KB |
completion-test.c | -rw-r--r-- | 2.5 KB |
cxx-test.C | -rw-r--r-- | 114 bytes |
datetime.c | -rw-r--r-- | 1.1 KB |
dirname-test.c | -rw-r--r-- | 3.1 KB |
env-test.c | -rw-r--r-- | 3.5 KB |
file-test.c | -rw-r--r-- | 6.2 KB |
gen-casefold-txt.pl | -rwxr-xr-x | 2.0 KB |
gen-casemap-txt.pl | -rwxr-xr-x | 8.1 KB |
gio-ls.c | -rw-r--r-- | 2.8 KB |
gio-test.c | -rw-r--r-- | 9.6 KB |
iochannel-test-infile | -rw-r--r-- | 62 bytes |
iochannel-test.c | -rw-r--r-- | 3.9 KB |
libmoduletestplugin_a.c | -rw-r--r-- | 1.9 KB |
libmoduletestplugin_b.c | -rw-r--r-- | 1.9 KB |
mainloop-test.c | -rw-r--r-- | 9.0 KB |
makefile.msc.in | -rw-r--r-- | 2.7 KB |
mapping-test.c | -rw-r--r-- | 6.6 KB |
memchunks.c | -rw-r--r-- | 16.9 KB |
module-test.c | -rw-r--r-- | 5.6 KB |
onceinit.c | -rw-r--r-- | 10.0 KB |
qsort-test.c | -rw-r--r-- | 589 bytes |
relation-test.c | -rw-r--r-- | 3.8 KB |
run-assert-msg-test.sh | -rwxr-xr-x | 1.1 KB |
run-collate-tests.sh | -rwxr-xr-x | 873 bytes |
slice-color.c | -rw-r--r-- | 4.8 KB |
slice-concurrent.c | -rw-r--r-- | 3.3 KB |
slice-test.c | -rw-r--r-- | 9.6 KB |
slice-threadinit.c | -rw-r--r-- | 5.7 KB |
sources.c | -rw-r--r-- | 5.0 KB |
spawn-test-win32-gui.c | -rw-r--r-- | 3.1 KB |
spawn-test.c | -rw-r--r-- | 7.1 KB |
testgdate.c | -rw-r--r-- | 15.8 KB |
testgdateparser.c | -rw-r--r-- | 1.9 KB |
testglib.c | -rw-r--r-- | 48.5 KB |
thread-test.c | -rw-r--r-- | 11.0 KB |
threadpool-test.c | -rw-r--r-- | 11.4 KB |
timeloop-basic.c | -rw-r--r-- | 4.2 KB |
timeloop.c | -rw-r--r-- | 4.5 KB |
type-test.c | -rw-r--r-- | 3.6 KB |
unicode-caseconv.c | -rw-r--r-- | 3.0 KB |
unicode-collate.c | -rw-r--r-- | 2.5 KB |
unicode-encoding.c | -rw-r--r-- | 9.4 KB |
unicode-normalize.c | -rw-r--r-- | 4.3 KB |
utf8.txt | -rw-r--r-- | 3.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...