Format with Smaug 1.6 FUSS

Posted by Jible on Tue 22 Nov 2005 09:29 PM — 2 posts, 10,381 views.

#0
We entered a snippet we got from called editor.0103.tgz http://cronel.mube.net/code.shtml
it's supposed to help add in the format command but we got all these errors can someone help?

boards.c:462: warning: declaration of `board' shadows a parameter
boards.c:238: warning: shadowed declaration is here
boards.c:466: parameter `quill' is initialized
boards.c:466: parameter `paper' is initialized
boards.c:466: parameter `tmpobj' is initialized
boards.c:467: parameter `ed' is initialized
boards.c:472: parameter `mfound' is initialized
boards.c:474: syntax error before "if"
boards.c:987: syntax error before "if"
boards.c:1303: syntax error before "do"
boards.c:1409: conflicting types for `word'
boards.c:1299: previous declaration of `word'
boards.c:1409: warning: redundant redeclaration of `word' in same scope
boards.c:1299: warning: previous declaration of `word'
boards.c:1411: syntax error before "for"
boards.c:1490: redeclaration of `board'
boards.c:462: `board' previously declared here
boards.c:1490: warning: declaration of `board' shadows a parameter
boards.c:462: warning: shadowed declaration is here
boards.c:1491: redeclaration of `pnote'
boards.c:461: `pnote' previously declared here
boards.c:1491: warning: declaration of `pnote' shadows a parameter
boards.c:461: warning: shadowed declaration is here
boards.c:1495: syntax error before "first_board"
boards.c:1551: syntax error before "argument"
boards.c:1888: redeclaration of `found'
boards.c:1545: `found' previously declared here
boards.c:1888: warning: declaration of `found' shadows a parameter
boards.c:1545: warning: shadowed declaration is here
boards.c:1889: redeclaration of `arg'
boards.c:460: `arg' previously declared here
boards.c:1889: warning: declaration of `arg' shadows a parameter
boards.c:460: warning: shadowed declaration is here
boards.c:1891: syntax error before "argument"
boards.c:1957: parameter `cnt_to' is initialized
boards.c:1957: parameter `cnt_from' is initialized
boards.c:1959: syntax error before "for"
make[1]: *** [o/act_info.o] Error 1
make[1]: *** Waiting for unfinished jobs....
distcc[31831] ERROR: compile on 10.10.200.10:10666/4 failed
Compiling o/build.o....
make[1]: *** [o/imc.o] Error 1
make: *** [all] Error 2
Australia Forum Administrator #1
Sounds like you have put things in the wrong place.

For example, in this test program:


#include <stdio.h>
#include <stdlib.h>

int test (int i)
  {
  int i;
  }

int main (void) {

}

Errors:


test.c: In function `test':
test.c:6: warning: declaration of `i' shadows a parameter



In other words, the local "i" shadows (covers up) the parameter "i".