A
Size: a a a
A
M(
nim c -r --gc:arc --opt:size --checks:off --assertions:off --debuginfo:off --stackTrace:off --lineTrace:off test.nim
M(
M(
M(
import strutils
let txt = """opt router 192.168.0.1
static_lease 11:22:33:44:55:66 192.168.0.1"""
proc extractConfig() =
var lan_ip = ""
for line in txt.splitLines():
let splitted = line.split(" ")
if (splitted[0] == "opt") and (splitted[1] == "router"):
lan_ip = splitted[2]
echo lan_ip
echo splitted[2] # Without this line everything works
echo "Running"
extractConfig()
M(
M(
M(
M(
M(
import strutils
let txt = """opt router 192.168.0.1
static_lease 11:22:33:44:55:66 192.168.0.1"""
proc extractConfig() =
var lan_ip = ""
for line in txt.splitLines():
let splitted = line.split(" ")
if (splitted[0] == "opt") and (splitted[1] == "router"):
lan_ip = splitted[2]
echo lan_ip
echo splitted[2] # Without this line everything works
echo "Running"
extractConfig()
M(
import strutils
let txt = @["opt 192.168.0.1", "static_lease 192.168.0.1"]
proc extractConfig() =
var lan_ip = ""
for line in txt:
let splitted = line.split(" ")
if splitted[0] == "opt":
lan_ip = splitted[1]
echo lan_ip
echo splitted[1] # Without this line everything works
extractConfig()
M(
V
M(
M(
M(
M(
M(
M(