Activity for Awka

  • Lee Saville Lee Saville posted a comment on discussion Help

    I have a script I'm trying to convert BEGIN { SPECIAL1 = 0 SPECIAL2 = 0 SPECIAL3 = 0 SPECIAL4 = 0 SPECIAL5 = 0 } { # Spec1Auth if ($49 !~ /^[[:space:]]?$/) { SPECIAL1 = 1 } # Spec2Auth if ($53 !~ /^[[:space:]]?$/) { SPECIAL1 = 1 } # Spec3Auth if ($57 !~ /^[[:space:]]?$/) { SPECIAL1 = 1 } # Spec4Auth if ($61 !~ /^[[:space:]]?$/) { SPECIAL1 = 1 } # Spec5Auth if ($65 !~ /^[[:space:]]?$/) { SPECIAL1 = 1 } } END { if (SPECIAL1 == 1) { print "SPECIAL1 PRESENT!" } if (SPECIAL2 == 1) { print "SPECIAL2 PRESENT!"...

  • Roland Illig Roland Illig created ticket #46

    detection of stdio.h functions fails

  • Roland Illig Roland Illig created ticket #45

    da.c:184:23: error: array subscript has type 'char'

  • James James posted a comment on ticket #28

    Awka has an issue (I think) correctly initialising local variables in functions when they are not correctly defined. "Correctly defined" meaning as per the spec, where local variables are part of the argument list. The problem seems to show up in the recursive calling of functions, so bump() is causing the error. Change the function definition to function bump(array,n,max,val, tmp) { which defines the tmp var as being a local variable (the extra space just for readability and differentiating between...

  • Ben Veal Ben Veal modified a comment on discussion Help

    Did you remember to use the -f flag before the input filename? It works for me when...

  • Ben Veal Ben Veal posted a comment on discussion Help

    I get the same error message when running awka on parsecsv.awk from the comparisons...

1
MongoDB Logo MongoDB