lib/common/svgcolor_lib
lib/expr/exparse.c
lib/vpsc/pairingheap/.dirstamp
-plugin/core/ps.h
-plugin/lasi/ps.h
plugin/xlib/vimdot
## Binaries
+++ /dev/null
-#
-# /*************************************************************************
-# * Copyright (c) 2011 AT&T Intellectual Property
-# * All rights reserved. This program and the accompanying materials
-# * are made available under the terms of the Eclipse Public License v1.0
-# * which accompanies this distribution, and is available at
-# * http://www.eclipse.org/legal/epl-v10.html
-# *
-# * Contributors: Details at http://www.graphviz.org/
-# *************************************************************************/
-
-BEGIN { s = ARGV[1]; gsub (".*/", "", s); gsub("\\.","_",s); printf("static const char *%s[] = {\n",s); }
-/^#/ { print $0; next; }
- { gsub("\\\\","&&",$0); printf("\"%s\",\n",$0); }
-END { printf("(char*)0 };\n"); }
-# Generate ps.h from ps.txt
-add_custom_command(
- OUTPUT ps.h
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ps.txt
- COMMAND ${AWK_EXECUTABLE} -v RS="\\r*\\n" -f ${TOP_SOURCE_DIR}/awk/stringize.awk
- ${CMAKE_CURRENT_SOURCE_DIR}/ps.txt > ${CMAKE_CURRENT_BINARY_DIR}/ps.h
-)
-
add_library(gvplugin_core SHARED
# Header files
ps.h
gvrender_core_vml.c \
gvrender_core_pov.c \
gvrender_core_pic.c \
- gvloadimage_core.c \
- ps.txt
+ gvloadimage_core.c
libgvplugin_core_la_LDFLAGS = -version-info @GVPLUGIN_VERSION_INFO@
libgvplugin_core_la_SOURCES = $(libgvplugin_core_C_la_SOURCES)
$(top_builddir)/lib/cdt/libcdt.la \
$(top_builddir)/lib/xdot/libxdot.la
-gvrender_core_ps.o gvrender_core_ps.lo: ps.h
-
-ps.h : $(srcdir)/ps.txt
- $(AWK) -f $(top_srcdir)/awk/stringize.awk $(srcdir)/ps.txt > ps.h
-
if WITH_WIN32
libgvplugin_core_la_LDFLAGS += -no-undefined
libgvplugin_core_la_LIBADD += $(top_builddir)/lib/cgraph/libcgraph.la
endif
EXTRA_DIST = ps.h gvplugin_core.vcxproj*
-
-DISTCLEANFILES = ps.h
<TargetMachine>MachineX86</TargetMachine>
<AdditionalDependencies>cgraph.lib;gvc.lib;xdot.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
- <PreBuildEvent>
- <Command>awk -f $(SolutionDir)awk\stringize.awk ps.txt > ps.h</Command>
- </PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<TargetMachine>MachineX86</TargetMachine>
<AdditionalDependencies>cgraph.lib;gvc.lib;xdot.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
- <PreBuildEvent>
- <Command>awk -f $(SolutionDir)awk\stringize.awk ps.txt > ps.h</Command>
- </PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="ps.h" />
--- /dev/null
+#pragma once
+
+#include <stddef.h>
+
+static const char *ps_txt[] = {
+ "%%BeginProlog",
+ "/DotDict 200 dict def",
+ "DotDict begin",
+ "",
+ "/setupLatin1 {",
+ "mark",
+ "/EncodingVector 256 array def",
+ " EncodingVector 0",
+ "",
+ "ISOLatin1Encoding 0 255 getinterval putinterval",
+ "EncodingVector 45 /hyphen put",
+ "",
+ "% Set up ISO Latin 1 character encoding",
+ "/starnetISO {",
+ " dup dup findfont dup length dict begin",
+ " { 1 index /FID ne { def }{ pop pop } ifelse",
+ " } forall",
+ " /Encoding EncodingVector def",
+ " currentdict end definefont",
+ "} def",
+ "/Times-Roman starnetISO def",
+ "/Times-Italic starnetISO def",
+ "/Times-Bold starnetISO def",
+ "/Times-BoldItalic starnetISO def",
+ "/Helvetica starnetISO def",
+ "/Helvetica-Oblique starnetISO def",
+ "/Helvetica-Bold starnetISO def",
+ "/Helvetica-BoldOblique starnetISO def",
+ "/Courier starnetISO def",
+ "/Courier-Oblique starnetISO def",
+ "/Courier-Bold starnetISO def",
+ "/Courier-BoldOblique starnetISO def",
+ "cleartomark",
+ "} bind def",
+ "",
+ "%%BeginResource: procset graphviz 0 0",
+ "/coord-font-family /Times-Roman def",
+ "/default-font-family /Times-Roman def",
+ "/coordfont coord-font-family findfont 8 scalefont def",
+ "",
+ "/InvScaleFactor 1.0 def",
+ "/set_scale {",
+ " dup 1 exch div /InvScaleFactor exch def",
+ " scale",
+ "} bind def",
+ "",
+ "% styles",
+ "/solid { [] 0 setdash } bind def",
+ "/dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def",
+ "/dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind "
+ "def",
+ "/invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} "
+ "def} bind def",
+ "/bold { 2 setlinewidth } bind def",
+ "/filled { } bind def",
+ "/unfilled { } bind def",
+ "/rounded { } bind def",
+ "/diagonals { } bind def",
+ "/tapered { } bind def",
+ "",
+ "% hooks for setting color ",
+ "/nodecolor { sethsbcolor } bind def",
+ "/edgecolor { sethsbcolor } bind def",
+ "/graphcolor { sethsbcolor } bind def",
+ "/nopcolor {pop pop pop} bind def",
+ "",
+ "/beginpage { % i j npages",
+ " /npages exch def",
+ " /j exch def",
+ " /i exch def",
+ " /str 10 string def",
+ " npages 1 gt {",
+ " gsave",
+ " coordfont setfont",
+ " 0 0 moveto",
+ " (\\() show i str cvs show (,) show j str cvs show "
+ "(\\)) show",
+ " grestore",
+ " } if",
+ "} bind def",
+ "",
+ "/set_font {",
+ " findfont exch",
+ " scalefont setfont",
+ "} def",
+ "",
+ "% draw text fitted to its expected width",
+ "/alignedtext { % width text",
+ " /text exch def",
+ " /width exch def",
+ " gsave",
+ " width 0 gt {",
+ " [] 0 setdash",
+ " text stringwidth pop width exch sub text length div 0 "
+ "text ashow",
+ " } if",
+ " grestore",
+ "} def",
+ "",
+ "/boxprim { % xcorner ycorner xsize ysize",
+ " 4 2 roll",
+ " moveto",
+ " 2 copy",
+ " exch 0 rlineto",
+ " 0 exch rlineto",
+ " pop neg 0 rlineto",
+ " closepath",
+ "} bind def",
+ "",
+ "/ellipse_path {",
+ " /ry exch def",
+ " /rx exch def",
+ " /y exch def",
+ " /x exch def",
+ " matrix currentmatrix",
+ " newpath",
+ " x y translate",
+ " rx ry scale",
+ " 0 0 1 0 360 arc",
+ " setmatrix",
+ "} bind def",
+ "",
+ "/endpage { showpage } bind def",
+ "/showpage { } def",
+ "",
+ "/layercolorseq",
+ " [ % layer color sequence - darkest to lightest",
+ " [0 0 0]",
+ " [.2 .8 .8]",
+ " [.4 .8 .8]",
+ " [.6 .8 .8]",
+ " [.8 .8 .8]",
+ " ]",
+ "def",
+ "",
+ "/layerlen layercolorseq length def",
+ "",
+ "/setlayer {/maxlayer exch def /curlayer exch def",
+ " layercolorseq curlayer 1 sub layerlen mod get",
+ " aload pop sethsbcolor",
+ " /nodecolor {nopcolor} def",
+ " /edgecolor {nopcolor} def",
+ " /graphcolor {nopcolor} def",
+ "} bind def",
+ "",
+ "/onlayer { curlayer ne {invis} if } def",
+ "",
+ "/onlayers {",
+ " /myupper exch def",
+ " /mylower exch def",
+ " curlayer mylower lt",
+ " curlayer myupper gt",
+ " or",
+ " {invis} if",
+ "} def",
+ "",
+ "/curlayer 0 def",
+ "",
+ "%%EndResource",
+ "%%EndProlog",
+ "%%BeginSetup",
+ "14 default-font-family set_font",
+ "% /arrowlength 10 def",
+ "% /arrowwidth 5 def",
+ "",
+ "% make sure pdfmark is harmless for PS-interpreters other than Distiller",
+ "/pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse",
+ "% make '<<' and '>>' safe on PS Level 1 devices",
+ "/languagelevel where {pop languagelevel}{1} ifelse",
+ "2 lt {",
+ " userdict (<<) cvn ([) cvn load put",
+ " userdict (>>) cvn ([) cvn load put",
+ "} if",
+ "",
+ "%%EndSetup",
+ NULL,
+};
+++ /dev/null
-%%BeginProlog
-/DotDict 200 dict def
-DotDict begin
-
-/setupLatin1 {
-mark
-/EncodingVector 256 array def
- EncodingVector 0
-
-ISOLatin1Encoding 0 255 getinterval putinterval
-EncodingVector 45 /hyphen put
-
-% Set up ISO Latin 1 character encoding
-/starnetISO {
- dup dup findfont dup length dict begin
- { 1 index /FID ne { def }{ pop pop } ifelse
- } forall
- /Encoding EncodingVector def
- currentdict end definefont
-} def
-/Times-Roman starnetISO def
-/Times-Italic starnetISO def
-/Times-Bold starnetISO def
-/Times-BoldItalic starnetISO def
-/Helvetica starnetISO def
-/Helvetica-Oblique starnetISO def
-/Helvetica-Bold starnetISO def
-/Helvetica-BoldOblique starnetISO def
-/Courier starnetISO def
-/Courier-Oblique starnetISO def
-/Courier-Bold starnetISO def
-/Courier-BoldOblique starnetISO def
-cleartomark
-} bind def
-
-%%BeginResource: procset graphviz 0 0
-/coord-font-family /Times-Roman def
-/default-font-family /Times-Roman def
-/coordfont coord-font-family findfont 8 scalefont def
-
-/InvScaleFactor 1.0 def
-/set_scale {
- dup 1 exch div /InvScaleFactor exch def
- scale
-} bind def
-
-% styles
-/solid { [] 0 setdash } bind def
-/dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
-/dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind def
-/invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} def} bind def
-/bold { 2 setlinewidth } bind def
-/filled { } bind def
-/unfilled { } bind def
-/rounded { } bind def
-/diagonals { } bind def
-/tapered { } bind def
-
-% hooks for setting color
-/nodecolor { sethsbcolor } bind def
-/edgecolor { sethsbcolor } bind def
-/graphcolor { sethsbcolor } bind def
-/nopcolor {pop pop pop} bind def
-
-/beginpage { % i j npages
- /npages exch def
- /j exch def
- /i exch def
- /str 10 string def
- npages 1 gt {
- gsave
- coordfont setfont
- 0 0 moveto
- (\() show i str cvs show (,) show j str cvs show (\)) show
- grestore
- } if
-} bind def
-
-/set_font {
- findfont exch
- scalefont setfont
-} def
-
-% draw text fitted to its expected width
-/alignedtext { % width text
- /text exch def
- /width exch def
- gsave
- width 0 gt {
- [] 0 setdash
- text stringwidth pop width exch sub text length div 0 text ashow
- } if
- grestore
-} def
-
-/boxprim { % xcorner ycorner xsize ysize
- 4 2 roll
- moveto
- 2 copy
- exch 0 rlineto
- 0 exch rlineto
- pop neg 0 rlineto
- closepath
-} bind def
-
-/ellipse_path {
- /ry exch def
- /rx exch def
- /y exch def
- /x exch def
- matrix currentmatrix
- newpath
- x y translate
- rx ry scale
- 0 0 1 0 360 arc
- setmatrix
-} bind def
-
-/endpage { showpage } bind def
-/showpage { } def
-
-/layercolorseq
- [ % layer color sequence - darkest to lightest
- [0 0 0]
- [.2 .8 .8]
- [.4 .8 .8]
- [.6 .8 .8]
- [.8 .8 .8]
- ]
-def
-
-/layerlen layercolorseq length def
-
-/setlayer {/maxlayer exch def /curlayer exch def
- layercolorseq curlayer 1 sub layerlen mod get
- aload pop sethsbcolor
- /nodecolor {nopcolor} def
- /edgecolor {nopcolor} def
- /graphcolor {nopcolor} def
-} bind def
-
-/onlayer { curlayer ne {invis} if } def
-
-/onlayers {
- /myupper exch def
- /mylower exch def
- curlayer mylower lt
- curlayer myupper gt
- or
- {invis} if
-} def
-
-/curlayer 0 def
-
-%%EndResource
-%%EndProlog
-%%BeginSetup
-14 default-font-family set_font
-% /arrowlength 10 def
-% /arrowwidth 5 def
-
-% make sure pdfmark is harmless for PS-interpreters other than Distiller
-/pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse
-% make '<<' and '>>' safe on PS Level 1 devices
-/languagelevel where {pop languagelevel}{1} ifelse
-2 lt {
- userdict (<<) cvn ([) cvn load put
- userdict (>>) cvn ([) cvn load put
-} if
-
-%%EndSetup
libgvplugin_lasi_C_la_SOURCES = \
gvplugin_lasi.c \
gvrender_lasi.cpp \
- gvloadimage_lasi.c \
- $(top_srcdir)/plugin/core/ps.txt
+ gvloadimage_lasi.c
libgvplugin_lasi_la_LDFLAGS = -version-info @GVPLUGIN_VERSION_INFO@
libgvplugin_lasi_la_SOURCES = $(libgvplugin_lasi_C_la_SOURCES)
libgvplugin_lasi_la_LIBADD = \
$(top_builddir)/lib/gvc/libgvc.la @LASI_LIBS@ @PANGOCAIRO_LIBS@ @MATH_LIBS@
-gvrender_lasi.o gvrender_lasi.lo: ps.h
-
-ps.h : $(top_srcdir)/plugin/core/ps.txt
- $(AWK) -f $(top_srcdir)/awk/stringize.awk $(top_srcdir)/plugin/core/ps.txt > ps.h
-
if WITH_WIN32
libgvplugin_lasi_la_LDFLAGS += -no-undefined
endif
if WITH_DARWIN9
libgvplugin_lasi_la_LDFLAGS += -Wl,-exported_symbol,_gvplugin_lasi_LTX_library
endif
-
-EXTRA_DIST = ps.h
-
-DISTCLEANFILES = ps.h
-
#include <cgraph/agxbuf.h>
#include <common/const.h>
#include <common/utils.h>
-#include <ps.h>
+#include "../core/ps.h"
using namespace LASi;
using namespace std;