/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/libvqdr/function/function_token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2024-12-21 22:39:17 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20241221223917-jbt2ylyz9nxjss49
various changes
[utils/utils.vala]
* Removed uneeded int32_abs function

[utils/stack]
* more informative error when trying to pop an empty stack.

[utils/random.vala]
* added c_names to functions (probobly not needed).

[utils/pair.vala]
* Made compact
* made FreeFunc delegates unowned to fix error
* added constructor Pair.with_free_func ().

[utils/named_vector.vala]
* made class compact.

[utils/meson.build]
* Reordered files in list
* added logger.vala.

[utils/logger.vala]
* Added fast and easy logger class.

[utils/fast_number.vala]
* added a bunch of cname CCode attributes.

[general]
* Spelling in comments and functions.

[meson.build]
* Made dependancies easier to read
* added vala posix dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
    
86
86
    
87
87
    /**
88
 
     * Ititialise the right functon token by it's name.
 
88
     * Initialise the right function token by it's name.
89
89
     * 
90
90
     * @param token Token of the Function.
91
91
     * @param position Token position.
94
94
    public static FunctionToken? init_token (string token, int32 position) {
95
95
      
96
96
      if (_allowed_functions == null) {
97
 
        // Intialise the HashMap if it is not created.
 
97
        // Initialise the HashMap if it is not created.
98
98
        _allowed_functions = new Gee.HashMap<string, Type?> ();
99
99
        
100
100
        Entry[] entries = {