Comments (10)
Probably a date string formatter somewhere
from tilp_and_gfm.
Indeed, the header comment can only be 42 bytes long. At the very least, the "dated " part should go away, which would save 6 bytes, but yeah, additionally, switching to one of the ISO8601 date formats in the direct or indirect clients of tifiles_comment_set_single_sn()
can be done.
from tilp_and_gfm.
(This issue should probably be moved to tilibs)
Is it using localtime
? I did a very quick search but I'm not sure where the time comment is actually being written. (Also, why are the files all C++ when the code looks exactly like C code? If it really is for a future port to C++, then I would say that energy should be spent on fixing some code smells)
from tilp_and_gfm.
- the main callers of
tifiles_comment_set_single_sn()
, which is the modern version oftifiles_comment_set_single()
, are in libticalcs. I'll move this issue to tilibs later, even if there's a caller in GFM as well; - the time comment is written by
tifiles_comment_set_sn()
, at the beginning of the file you linked; - the files in tilibs are indeed C-like code compiled as C++ (well, except for the iconv... thing in libticonv), in order to benefit from the stricter typing of C++, at first. No plans for a full-blown port to C++;
- I've already fixed a number of code smells, in that very file and others (adding bounded versions of a number of APIs, removing many occurrences of TRYF & TRYC macros containing return, etc.), but I'm always all ears for suggestions :)
from tilp_and_gfm.
Oh my suspicion was right, it was using the obsolete and accursed ctime
.
I can try to assist with cleaning up code, though admittedly I have no familiarity with the codebase and I may end up doing more harm than good (maybe I will lose interest in my calculator in a month)
from tilp_and_gfm.
What would you like to clean up ? I wouldn't want to restrain you, but it makes sense to avoid work duplication or collisions generating patch conflicts :)
Note that the experimental2 branch contains more cleanups and improvements, so that's where the work ought to happen. experimental3 doesn't work well for the time being.
from tilp_and_gfm.
from tilp_and_gfm.
from tilp_and_gfm.
Indeed :)
Sources of magic numbers include outsized buffers (e.g. 64 bytes for a 42-byte comment) and size bounds for a number of file types. Are these the ones which bother you ?
from tilp_and_gfm.
Yes. In fact there is enough room to even put the TILP / tilib version as a comment. Not sure if that is useful.
from tilp_and_gfm.
Related Issues (20)
- trying to transfer MirageOs produces an issue stating "Invalid Parameter" HOT 3
- Free software license HOT 3
- Build fails on Manjaro: Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 274. HOT 4
- Double-clicking empty device list causes Segmentation fault HOT 3
- Errors connecting to TI-84 Plus CE HOT 6
- Updating an app with TiLP hangs & times out while calculator is on "Defragmenting" screen HOT 2
- Unable to restore CRASH.82B file to TI-82 on tilp HOT 1
- Feature Request: Dark Theme HOT 3
- File transfer (TX) does not work on TI-92: Files never actually save to the device. HOT 2
- Win32: The procedure entry point deflateSetHeader could not be located in the dynamic link library libgio-2.0-0.dll
- ./install_tilp.sh fails on OSX Ventura 13.3 HOT 3
- ./install_tilp.sh fails on OSX Ventura 13.3 ARM HOT 2
- Cannot download specific variables from TI-92 II HOT 1
- [GFM] macOS: segfault on gtk_file_chooser_set_current_name
- dependency libglade2-0 will be removed from Debian: deprecated and unmaintained upstream HOT 1
- Transmission error on sending large files to TI85 using Silver-link on Ubuntu linux 22.04
- Tilp: Coredump on unsupported library versions HOT 4
- CMake Does not install Desktop Files HOT 8
- GTK3 branch builds GTK2 by default HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tilp_and_gfm.