/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: 2022-06-01 12:30:01 UTC
  • mfrom: (52.1.3 int64)
  • Revision ID: gustav.hartvigsson@gmail.com-20220601123001-b5xs60wwym810hg1
Merged: lp:~gustav.hartvigsson/vqdr/int64

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    // We only store the type, as that is what is important.
19
19
    private static Gee.HashMap<string, Type?> _allowed_functions;
20
20
    
21
 
    protected const long UNDEFINED = long.MIN + 1; //+1 so that I can still use Long.MIN_VALUE.
 
21
    protected const int64 UNDEFINED = int64.MIN + 1; //+1 so that I can still use int64.MIN_VALUE.
22
22
    /** Right arrow */
23
23
    protected const string CH_RARR = "\u2192";
24
24
    /** Left arrow */
88
88
     * @param position Token position.
89
89
     * @return An instance representing the function, or @c null if not found.
90
90
     */
91
 
    public static FunctionToken? init_token (string token, int position) {
 
91
    public static FunctionToken? init_token (string token, int32 position) {
92
92
      
93
93
      if (_allowed_functions == null) {
94
94
        // Intialise the HashMap if it is not created.
144
144
    }
145
145
    
146
146
    protected FastNumber get_optional_child_raw_result (Context instance,
147
 
                                                  int index,
148
 
                                                  long default_result)
 
147
                                                  int32 index,
 
148
                                                  int64 default_result)
149
149
                                                  throws GLib.Error {
150
150
     Token? tmp_roll = get_child (index);
151
151