fix yab-ide for x86_64
This commit is contained in:
@@ -137,3 +137,35 @@ system("rm tmpmain.c")
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
tring);"
|
||||||
|
print #2 " return 0;"
|
||||||
|
print #2 " }"
|
||||||
|
print #2 " return 1;"
|
||||||
|
print #2 "}"
|
||||||
|
print #2 ""
|
||||||
|
print #2 ""
|
||||||
|
|
||||||
|
found = 0
|
||||||
|
|
||||||
|
while (found = 0)
|
||||||
|
line input #1 a$
|
||||||
|
if (not instr(a$, "static int mybind(char *bound)")) then
|
||||||
|
found = 0
|
||||||
|
else
|
||||||
|
found = 1
|
||||||
|
print #2 a$
|
||||||
|
end if
|
||||||
|
wend
|
||||||
|
|
||||||
|
while (not eof(1))
|
||||||
|
line input #1 a$
|
||||||
|
print #2 a$
|
||||||
|
wend
|
||||||
|
|
||||||
|
close #1
|
||||||
|
close #2
|
||||||
|
system("mv outmain.c main.c")
|
||||||
|
system("rm tmpmain.c")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
28
yab-IDE/src/yab-IDE.yab
Executable file → Normal file
28
yab-IDE/src/yab-IDE.yab
Executable file → Normal file
@@ -1176,7 +1176,7 @@ sub OpenMainWindow()
|
|||||||
layout "standard", "Stack"+str$(i)
|
layout "standard", "Stack"+str$(i)
|
||||||
|
|
||||||
textedit set "Text"+str$(i), "autocomplete-start", settingsACNumChar
|
textedit set "Text"+str$(i), "autocomplete-start", settingsACNumChar
|
||||||
handle = open(ideDir$+"/data/autocompletion")
|
handle = open(ideDir$+"data/autocompletion")
|
||||||
if(handle) then
|
if(handle) then
|
||||||
while(not eof(handle))
|
while(not eof(handle))
|
||||||
line input #handle tmp$
|
line input #handle tmp$
|
||||||
@@ -1185,7 +1185,7 @@ sub OpenMainWindow()
|
|||||||
close(handle)
|
close(handle)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
handle = open(ideDir$+"/data/color1")
|
handle = open(ideDir$+"data/color1")
|
||||||
if(handle) then
|
if(handle) then
|
||||||
while(not eof(handle))
|
while(not eof(handle))
|
||||||
line input #handle tmp$
|
line input #handle tmp$
|
||||||
@@ -1193,7 +1193,7 @@ sub OpenMainWindow()
|
|||||||
wend
|
wend
|
||||||
close(handle)
|
close(handle)
|
||||||
endif
|
endif
|
||||||
handle = open(ideDir$+"/data/color2")
|
handle = open(ideDir$+"data/color2")
|
||||||
if(handle) then
|
if(handle) then
|
||||||
while(not eof(handle))
|
while(not eof(handle))
|
||||||
line input #handle tmp$
|
line input #handle tmp$
|
||||||
@@ -1201,7 +1201,7 @@ sub OpenMainWindow()
|
|||||||
wend
|
wend
|
||||||
close(handle)
|
close(handle)
|
||||||
endif
|
endif
|
||||||
handle = open(ideDir$+"/data/color3")
|
handle = open(ideDir$+"data/color3")
|
||||||
if(handle) then
|
if(handle) then
|
||||||
while(not eof(handle))
|
while(not eof(handle))
|
||||||
line input #handle tmp$
|
line input #handle tmp$
|
||||||
@@ -1209,7 +1209,7 @@ sub OpenMainWindow()
|
|||||||
wend
|
wend
|
||||||
close(handle)
|
close(handle)
|
||||||
endif
|
endif
|
||||||
handle = open(ideDir$+"/data/color4")
|
handle = open(ideDir$+"data/color4")
|
||||||
if(handle) then
|
if(handle) then
|
||||||
while(not eof(handle))
|
while(not eof(handle))
|
||||||
line input #handle tmp$
|
line input #handle tmp$
|
||||||
@@ -1217,7 +1217,7 @@ sub OpenMainWindow()
|
|||||||
wend
|
wend
|
||||||
close(handle)
|
close(handle)
|
||||||
endif
|
endif
|
||||||
handle = open(ideDir$+"/data/color5")
|
handle = open(ideDir$+"data/color5")
|
||||||
if(handle) then
|
if(handle) then
|
||||||
while(not eof(handle))
|
while(not eof(handle))
|
||||||
line input #handle tmp$
|
line input #handle tmp$
|
||||||
@@ -3868,20 +3868,19 @@ x=system("mkdir "+DataDir$+"/yab_work")
|
|||||||
system("mkdir ~/config/settings/yab")
|
system("mkdir ~/config/settings/yab")
|
||||||
y=system("ls "+DataDir$+"/yab_work/BuildFactory > /dev/null")
|
y=system("ls "+DataDir$+"/yab_work/BuildFactory > /dev/null")
|
||||||
y=y+system("ls "+DataDir$+"/yab_work/Programs > /dev/null")
|
y=y+system("ls "+DataDir$+"/yab_work/Programs > /dev/null")
|
||||||
|
system("cp -ur "+ideDir$+"BuildFactory "+DataDir$+"/yab_work")
|
||||||
system("cp -ur "+ideDir$+"/BuildFactory "+DataDir$+"/yab_work")
|
|
||||||
handle=open(DataDir$+"/yab_work/BuildFactory/srcfiles","r")
|
handle=open(DataDir$+"/yab_work/BuildFactory/srcfiles","r")
|
||||||
|
|
||||||
while(not eof(#handle))
|
while(not eof(#handle))
|
||||||
input #handle a$
|
input #handle a$
|
||||||
system("cp -u "+ideDir$+"/src/"+a$+" "+DataDir$+"/yab_work/BuildFactory/"+a$)
|
system("cp -u "+ideDir$+"src/"+a$+" "+DataDir$+"/yab_work/BuildFactory/"+a$)
|
||||||
end while
|
end while
|
||||||
close handle
|
close handle
|
||||||
system("cp -ur "+ideDir$+"/src/column "+DataDir$+"/yab_work/BuildFactory")
|
system("cp -ur "+ideDir$+"src/column "+DataDir$+"/yab_work/BuildFactory")
|
||||||
|
|
||||||
if x=0 or y>0 then
|
if x=0 or y>0 then
|
||||||
|
|
||||||
system("cp -ur "+ideDir$+"/BuildFactory "+DataDir$+"/yab_work")
|
system("cp -ur "+ideDir$+"BuildFactory "+DataDir$+"/yab_work")
|
||||||
system("cp -ur "+ideDir$+"Programs "+DataDir$+"/yab_work")
|
system("cp -ur "+ideDir$+"Programs "+DataDir$+"/yab_work")
|
||||||
system ("cp -ur "+ideDir$+"img "+DataDir$+"/yab_work/Programs")
|
system ("cp -ur "+ideDir$+"img "+DataDir$+"/yab_work/Programs")
|
||||||
system("cp -ur "+ideDir$+"Programs/libs/* /boot/home/config/settings/yab")
|
system("cp -ur "+ideDir$+"Programs/libs/* /boot/home/config/settings/yab")
|
||||||
@@ -3890,15 +3889,15 @@ if x=0 or y>0 then
|
|||||||
|
|
||||||
while(not eof(#handle))
|
while(not eof(#handle))
|
||||||
input #handle a$
|
input #handle a$
|
||||||
system("cp -u "+ideDir$+"/src/"+a$+" "+DataDir$+"/yab_work/BuildFactory/"+a$)
|
system("cp -u "+ideDir$+"src/"+a$+" "+DataDir$+"/yab_work/BuildFactory/"+a$)
|
||||||
end while
|
end while
|
||||||
close handle
|
close handle
|
||||||
|
|
||||||
system("cp -ur "+ideDir$+"/src/column "+DataDir$+"/yab_work/BuildFactory")
|
system("cp -ur "+ideDir$+"src/column "+DataDir$+"/yab_work/BuildFactory")
|
||||||
end if
|
end if
|
||||||
|
|
||||||
x=1
|
x=1
|
||||||
open #1, ideDir$+"/src/YabMain.cpp","r"
|
open #1, ideDir$+"src/YabMain.cpp","r"
|
||||||
open #2, DataDir$+"/yab_work/BuildFactory/parts/YabMain.cpp.end","w"
|
open #2, DataDir$+"/yab_work/BuildFactory/parts/YabMain.cpp.end","w"
|
||||||
|
|
||||||
while(not eof(#1))
|
while(not eof(#1))
|
||||||
@@ -3976,3 +3975,4 @@ if (GetFileName$(globalAllNames$(i)) = CurrentSelection$) OpenProjectDir$ = Get
|
|||||||
next
|
next
|
||||||
return OpenProjectDir$
|
return OpenProjectDir$
|
||||||
end sub
|
end sub
|
||||||
|
end sub
|
||||||
|
|||||||
Reference in New Issue
Block a user