GithubHelp home page GithubHelp logo

risc-os-community / libezini Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 0.0 366 KB

This is a RISC OS port of EzINI a small and easy to use ANSI C library implementing INI file reading and writing.

License: GNU Lesser General Public License v3.0

HTML 63.85% CSS 9.04% JavaScript 11.48% C 11.77% Markdown 1.72% Shell 2.14%
riscos risc-os c library ini arm wandboard pandaboard imx6 beagleboard omap4 omap5 raspberry-pi iyonix riscpc rool-dde gcc hacktoberfest

libezini's Introduction

LibEzINI

This is a RISC OS port of EzINI a small and easy to use ANSI C library implementing INI file reading and writing. This library is intended to be easy to use and build upon. It is small in size, thus not as feature complete as other libraries, but should be sufficient to meet most requirements.

Build the lib

To build from the source just git clone this repo and then go to LibEzINI -> src directory.

Using GCC

To build these files with GNU make and gcc, simply double click on the file called MkGCC, before you do that make sure that your RISC OS device Filer has seen where your copy of !GCC is (usually in Apps.Development).

Using ROOL DDE

To build these files with ROOL DDE, simply click on the file called MkDDE, before you do that please make sure your RISC OS device Filer has executed the !SetPaths from DDE which should be placed in AcornC/C++ directory.

Using LibEzINI in your code

Have a look at the file called sample in src.c, it demonstrates the usage of LibEzINI functions.

(section, key, value) triples are stored in entry structures (ini_entry_t) and multiple entry structures may be linked together in an entry list (ini_entry_list_t).

Read an INI file by calling GetEntryFromFile until it returns 0.

Write an INI file by using AddEntryToList to build an entry list, then call MakeINIFile to make a file from the entry list. Call FreeList when you are done.

Feedback

Feedback is always welcome!

In case of problems

For any issue you may encounter please use the Issues option here on GitHub. You can find it at the top of the page. Please do not try to contact us directly, the RISC OS Community handles all the communications here on GitHub.

Requesting new features

As for the problems reporting please use the Issues option here on GitHub also to request new features.

Contributing

We welcome improvements and new ideas, before you submit your changes please have a look at the Contributing Guidelines here

Official EzINI Documentation

See https://michaeldipperstein.github.io/ezini/

License

The original EzINI is released under LGPLv3, so is LibEzINI port here.

Contributors

Michael - The EzINI original author

Paolo - RISC OS Porting

libezini's People

Contributors

pzaino avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libezini's Issues

Add test code that uses !ConfX generated INI files

Background

For this issue you simply need to add new tests that consume !ConfX generated INI files to ensure that LibEzINI can be used to process !ConfX generated configuration files.

Do not commit directly to the main branch, instead create your own branch or fork, add your changes and test them, then request for a PR to develop branch.

Multiple PRs are ok for this task. :)

Definition of Done

  • Add new test code in Tests that compiles with both GCC and DDE
  • Your added test code has to ingest and process correctly !ConfX generated INI files (you can pre-generate them and include them with your PR)
  • Code should compile out of the box, no missing dependencies are allowed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.