globalconst.h:#define MAX_NETLIST_LINE_LENGTH           255     /* maximum line
length for netlist files */

change this number to something appropriate for your netlist.
How was this netlist created?  because it seems that there is a bug
upstream that should be wrapping the lines at 255, and i'd say the
lines should be wrapped at 80 columns to promote readability

The code does show that if the last char, without a space is a \ the
line will be continued.

snip from line 1383 of src/file.c
<<< snip >>>
if (inputline[--len] != '\n')
            Message (_("Line length (%i) exceeded in netlist file.\n"
                       "additional characters will be ignored.\n"),
                     MAX_NETLIST_LINE_LENGTH);
          else
            inputline[len] = '\0';
        }
      continued = (inputline[len - 1] == '\\') ? True : False;
      if (continued)
        inputline[len - 1] = '\0';
      lines++;
      i = 0;
      while (inputline[i] != '\0')

<<< end snip >>>

Steve

On Sat, Dec 26, 2009 at 3:41 AM, Ineiev <[email protected]> wrote:
> On 12/26/09, Anthony Shanks <[email protected]> wrote:
>> When loading up a netlist file, PCB complains if a single line is over
>> 255 characters and cuts out the rest of the line. I have a net with
>> lots of components connected to it (gnd) and the line ends up being
>> way over 255 characters. The workaround I have done is to split the
>> net into two nets with identical names (both named gnd), but pcb also
>> doesn't play nice with this as it doesn't rat the nets properly to gnd
>> and it I manually connect the new nets together it complains about the
>> nets being short. Of course they are shorted but they have the same
>> name.
>
> Have you tried to split lines with `\'?
>
> Hope that helps,
> Ineiev
>
>
> _______________________________________________
> geda-user mailing list
> [email protected]
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
>


_______________________________________________
geda-user mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

Reply via email to