• R/O
  • HTTP
  • SSH
  • HTTPS

List of commits

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A D package containing my single-file modules


RSS
Rev. Time Author
73e531b 2023-03-23 14:51:39 nemophila

directories: Small fixes for POSIX

7b57c67 2023-03-23 14:47:46 nemophila

directories: Add ProjectDirectories structure

ab2abdb 2023-03-23 14:47:24 nemophila

directories: Add UserDirectories structures

3d03c3a 2023-03-23 14:46:45 nemophila

directories: Begin change of API

While porting this to work on Windows, I realised there is a bit of a
difference to how configuration and data directories are handled
compared to Linux.

On Linux, a configuration directory for a program may look like

$XDG_CONFIG_HOME/program_name

Whereas on Windows, it'd be something like:

%APPDATA$\Company\Program Name\

On macOS (IIRC) they use the reverse domain notation.

So the API is going to be changed to help accomidate these differences.

20c781f 2023-03-23 13:30:43 nemophila

directories: Add support for windows (data)

Internally this will return the RoamingAppData directory, a local
version will be implemented soon.

a5bf2c2 2023-03-23 11:37:56 nemophila

directories: Small fixes for Posix

Error occurred due to some changes in commit
ce504b0122c7bd5445c583130a29afc8de8edd7a

ce504b0 2023-03-23 11:33:33 nemophila

directories: Add support for Windows (home dir)

1bc04dd 2023-03-19 17:14:32 nemophila

configparser: implement write method

50f6d67 2023-03-19 17:11:33 nemophila

configparser: remove file checks in read

These exceptions will already be thrown (with proper errno setting)
by Phobos.

fe5f33a 2023-03-19 17:08:08 nemophila

configparser: compare against lowercase option

When reading a file, the option names are converted to lowercase to
avoid any ambiguities when trying to retrieve a value from an option.

Here we were just comparing against user input which could be in any
letter case.

This will fix occurrences of NoOptionException when calling get or
hasOption with an option in a different letter case than all lowercase.

Bump configparser.d to 0.3 due to change in behaviour.

7efd914 2023-03-19 15:24:14 nemophila

trash: Fix compiling on Linux

Fix a compiler warning about unreachable code. By default, dub
treats these (and any) warnings as errors.

214ba2a 2023-03-19 15:22:07 nemophila

trash: Add basic support for Windows

It doesn't support the 'pathInTrash' option since there doesn't seem to
be a way of obtaining this information in a reasonable way.
(The unreasonable way is iterating over every item in the Recycle Bin,
hoping to find ours).

93311c4 2023-03-14 14:05:45 nemophila

configparser: Implement strict parsing

Add a ''strict'' parameter to the ConfigParser constructor that allows
the caller to prevent duplicate sections or options being parsed when
reading config files.

This allows people to specify e.g. a user-specific config file to parse,
then parse a default file to provide a fallback without overwriting the
user-specific settings.

a79740e 2023-03-13 19:28:55 nemophila

Set package name to mlib for all modules

7fe0c35 2023-03-11 13:05:25 nemophila

Initial commit