[Kst] extragear/graphics/kst/kst/datasources/dirfile

Barth Netterfield netterfield at physics.utoronto.ca
Wed Jan 4 22:41:28 CET 2006


Ummm....

IIRC, getdata casts the field name into a long long int, in order to avoid 
strncmps in searching for the field names... hence the not-actually-arbitrary 
16 character max field name length.

Please revert, or verify that I am wrong.

cbn

On January 4, 2006 03:51 pm, Ted Kisner wrote:
> SVN commit 494364 by tskisner:
>
> Change the annoyingly small limits on the length of a field name to
> something that is reasonably large (but still arbitrary).
>
>  M  +3 -3      getdata_struct.h
>
>
> --- trunk/extragear/graphics/kst/kst/datasources/dirfile/getdata_struct.h
> #494363:494364 @@ -15,9 +15,9 @@
>  #ifndef GETDATA_STRUCT_H
>  #define GETDATA_STRUCT_H
>
> -#define FIELD_LENGTH 16
> -#define MAX_FILENAME_LENGTH 180
> -#define MAX_LINE_LENGTH 180
> +#define FIELD_LENGTH 50
> +#define MAX_FILENAME_LENGTH 250
> +#define MAX_LINE_LENGTH 250
>  #define MAX_LINCOM 3
>  #define MAX_IN_COLS 15
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst


More information about the Kst mailing list